/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #003e5d;
    color: #c2d5dc;
    text-align: center;
    font-size: 16px;
}

/* Responsive Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1 {
    font-weight: 300;
    font-size: 2.5rem;
    color: #FFFFFF;
    font-weight: bold;
    /* margin: 10px 0; */
}

h2 {
    font-weight: normal;
    font-size: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    font-family: "Lucida Grande", "Trebuchet MS", sans-serif;
    text-align: center
}

h3 {
    font-weight: 300;
    font-size: 2rem;
    margin: 30px 0;
    font-weight: bold;
}

/* Links */
a {
    color: #c2d5dc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFFFFF;
}

/* Form Elements */
input, button {
    font-family: inherit;
    font-size: 1rem;
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    max-width: 300px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 10px;
    }
}

/* Accessibility */
:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

/* Performance Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #002a3e;
        color: #e6f1f7;
    }

    a {
        color: #e6f1f7;
    }

    a:hover {
        color: #FFFFFF;
    }
}

#header {
    background-color: #003e5d;
    background-image: linear-gradient(135deg, #003e5d 0%, #004f74 100%);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

#header .container {
    padding: 20px 15px;
  }

  /* Conversion Section */
  .conversion-section {
    max-width: 900px;
    margin: 30px auto;
    background: rgba(0, 62, 93, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .conversion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
  }

  .conversion-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .conversion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .conversion-card label {
    display: block;
    color: #c2d5dc;
    margin-bottom: 8px;
    font-size: 14px;
  }

  .conversion-card input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #3191a7;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    transition: border-color 0.3s;
  }

  .conversion-card input:focus {
    outline: none;
    border-color: #4db8e6;
    box-shadow: 0 0 0 2px rgba(77, 184, 230, 0.2);
  }

  .conversion-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }

  .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-primary {
    background-color: #3191a7;
    color: white;
  }

  .btn-primary:hover {
    background-color: #3aa8c0;
    transform: translateY(-1px);
  }

  .btn-secondary {
    background-color: #4a4a4a;
    color: white;
  }


  /* Menu Styles */
  .menu-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1000px;
    margin: 20px auto;
  }

  .menu-section {
    flex: 1;
    min-width: 300px;
    text-align: center;
    background-color: rgba(0, 62, 93, 0.8);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .menu-section h3 {
    color: #fff;
    font-size: 16px;
    margin: 10px 0 15px 0;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 1px solid #3191a7;
    display: inline-block;
    padding: 0 15px 5px 15px;
  }

  .menu-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 10px auto;
    padding: 0 10px;
  }

  .menu-buttons a {
    display: inline-block;
    color: #FFFFFF;
    font-size: 14px;
    font-family: Verdana, sans-serif;
    background-color: #003e5d;
    padding: 6px 12px;
    margin: 2px;
    border: 1px solid #3191a7;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .menu-buttons a:hover {
    background-color: #004f74;
    transform: translateY(-2px);
  }

  @media screen and (max-width: 768px) {
    .menu-container {
      flex-direction: column;
      align-items: center;
    }
    
    .menu-section {
      width: 100%;
      max-width: 400px;
    }
    
    .menu-buttons {
      justify-content: center;
    }
    
    .menu-buttons a {
      padding: 6px 10px;
      font-size: 13px;
    }
  }

#main {
    background-color: #003651;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #3191a7;
    background-image: url(../images/menu-bg.gif);
    background-repeat: repeat-x;
    background-position: left top;
    line-height: 22px;
    padding-top: 50px;
    padding-bottom: 100px;
    margin-right: auto;
    margin-left: auto;
  }

  #main img {
    float: right;
    display: block;
    margin: 30px;
  }

  #main .container {
    width: auto;
  }

  #footer {
    font-size: 12px;
    padding-top: 30px;
    padding-bottom: 15px;
    clear: both;
  }

  #footer ul {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
    text-align: center;
  }

  #footer li {
    display: inline;
    padding-right: 4px;
    padding-left: 4px;
    color: #3191a7;
    line-height: 15px;
  }

  #footer li a {
    color: #3191a7;
    text-decoration: none;
  }

  #footer li a:hover {
    color: #146884;
  }

  .clear {
    clear: both;
  }

  .divide {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #074c6a;
    margin-top: 20px;
    margin-bottom: 20px;
    clear: both;
  }

  p {
    text-align: center;
    font-family: "Lucida Grande", "Trebuchet MS", sans-serif;
    font-size: 15px;
  }

  table,
  td,
  th,
  tr {
    margin-left: auto;
    margin-right: auto;
    font-family: "Lucida Grande", "Trebuchet MS", sans-serif;
    font-size: 20px;
    text-align: center;
    padding: 5px;
  }

  td {
    border: 1px solid #C0C0C0;
    padding: 10px;
  }