body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
     /* Prevent horizontal scrolling */
}

.container {
    max-width: 600px;
     /* Adjust width for padding and to prevent overflow */
    margin: 20px auto; /* Center the container */
    padding: 20px;
}

h1 {
    color: #333;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 5rem;
}

.tab-btn {
    background-color: #4caf50;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tab-btn:hover {
    background-color: #45a049;
}

.tab-btn.active {
    background-color: #45a049;
    transform: translateY(-3px);
}

.tab-content {
    display: none;
}

.conversion-input {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.input-group {
    margin: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input, select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.result {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.nav {
   
    background-color: #1A237E;
    display: flex;
    align-items: center;
  }
  .nav > .nav-header {
    flex: 0.95;
    padding-left: 1rem;
  }
  .nav > .nav-header > .nav-title {
    font-size: 22px;
    color: #fff;
  }
  .nav > .nav-list {
    display: flex;
    gap: 2rem;
  }
  .nav > .nav-list > li {
    list-style-type: none;
  }
  .nav > .nav-list > li a {
    text-decoration: none;
    color: #efefef;
    cursor: pointer;
  }
  .nav > #nav-check {
      display: none;
  }
  @media (max-width: 480px) {
    .nav {
      padding: 1rem;
    }
    .nav > .nav-btn {
      display: inline-block;
      position: absolute;
      right: 0;
      top: 0;
      padding-top: 0.2rem;
    }
    .nav > .nav-btn > label {
      display: inline-block;
      width: 50px;
      height: 50px;
      padding: 13px;
    }
    .nav > .nav-btn > label > span {
      display: block;
      width: 25px;
      height: 10px;
      border-top: 2px solid #eee;
    }
    .nav > .nav-list {
      position: absolute;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      width: 100%;
      background-color: #1A237E;
      height: 0;
      transition: all 0.3s ease-in;
      top: 40px;
      left: 0;
      overflow: hidden;
      z-index: 99;
    }
    .nav > .nav-list > li {
      width: 100%;
      margin-top: 1.5rem;
    }
    .nav > #nav-check:checked ~ .nav-list {
      height: calc(100vh - 50px);
    }
  }


  footer {
    background-color: #1A237E;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    
    height: 60px; /* Set a fixed height for the footer */
    position: relative; /* Change this to 'fixed' if you always want the footer at the bottom */
    bottom: 0;
    clear: both;
}

.sidebyside{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.convert-btn {
    background-color: #2196F3;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.convert-btn:hover {
    background-color: #0b7dda;
}

.card {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  padding: 20px;
  margin-top: 20px;
  border-radius: 4px;
}