/* ==========================================================================
   General Body & Layout
   ========================================================================== */

body {
    margin: 0;
    background: #F5F5F5;
    font-family: 'Lato', sans-serif;
}

.main {
    max-width: 75%;
    margin: auto;
    background: white;
    padding: 5%;
}

/* ==========================================================================
   Top Navigation
   ========================================================================== */

.navbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;      /* vertically center items */
  background-color: white;
  font-size: 16px !important;
  font-family: sans-serif;
  padding: 0;               /* remove default spacing */
  position: relative;       /* for dropdown positioning */
}


.navbar a,
.dropdown .dropbtn {
  color: black;
  text-decoration: none;
  padding: 14px 16px;
  background-color: inherit;
  font-size: 16px !important;
  font-family: sans-serif;
  border: none;
  outline: none;
  cursor: pointer;
}

/* Hover effect */
.navbar a:hover,
.dropdown:hover .dropbtn {
  background-color: #f0f0f0;
}

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  font-size: 16px !important;
  font-family: sans-serif;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  flex-direction: column;
}

/* Dropdown links */
.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: black;
  text-align: left;
}

/* Hover on dropdown items */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: flex; /* vertical alignment */
}


/* ==========================================================================
   Image Grid Layout - Modern Flexbox Version
   ========================================================================== */

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.column {
    flex: 0 0 25%;            /* 4 columns */
    max-width: 25%;
    padding: 5px;
    box-sizing: border-box;
}

/* Tablet: 2 columns */
@media screen and (max-width: 999px) {
    .column {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Mobile: 1 column */
@media screen and (max-width: 600px) {
    .column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   Typography & Captions
   ========================================================================== */

h5 {
    font-size: 14px;
    text-align: center;
    margin: 5px 0;
}

/* ==========================================================================
   Hover Effects
   ========================================================================== */

.content {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.content:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.content img {
    border-radius: 10px;
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

.content:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   W3.CSS Replacements
   ========================================================================== */

.container {
    padding: 0 16px;          /* Equivalent to w3-container's 16px left/right padding */
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;           /* Centers the block horizontally */
}

/* For centering text/inline content (replaces w3-center) */
.text-center {
    text-align: center;
}

/* Optional: Add a bit more spacing if needed (like w3-section) */
.section {
    margin-top: 16px;
    margin-bottom: 16px;
}


/* ==========================================================================
   Ship Plan Table Layout
   ========================================================================== */

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #ddd;
  font-size: 11px;
}

th, td {
  text-align: left;
  padding: 16px;
}

tr:nth-child(even) {
  background-color: lightgray;
}

table.center {
  margin-left: auto; 
  margin-right: auto;
}

.plansection {
  background-color: crimson;
  width: 100%;
  color: white;
  border: 5px solid navy;
  padding: 10px;
}