 body {
      font-family: sans-serif;
      margin: 0;
      padding: 0;
      background: #f9f9f9;
    }

    

    /* Top Navigation */
    .top-nav {
      background: lightcoral;
      padding: 15px 20px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      position: relative;
    }

    .nav-container {
      display: flex;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
    }

    .home-btn {
      background: rgba(255,255,255,0.2);
      border: none;
      color: white;
      padding: 10px 15px;
      border-radius: 6px;
      font-size: 16px;
      font-weight: bold;
      cursor: pointer;
      margin-right: 20px;
      transition: background 0.2s;
    }

    .home-btn:hover {
      background: rgba(255,255,255,0.3);
    }

    .nav-links {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .nav-links a {
      color: white;
      text-decoration: none;
      padding: 10px 15px;
      border-radius: 6px;
      transition: background 0.2s;
    }

    .nav-links a:hover {
      background: rgba(255,255,255,0.2);
    }

    .nav-links a.active {
      background: rgba(255,255,255,0.3);
      font-weight: bold;
    }

    /* Mobile menu toggle */
    .menu-toggle {
      display: none;
      background: none;
      border: none;
      color: white;
      font-size: 24px;
      cursor: pointer;
      margin-left: auto;
    }

  .nav-links {
  display: flex;
  gap: 20px;
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }
}

.mobile-brand {
  display: none;
  color: white;
}

@media (max-width: 768px) {
  .mobile-brand {
    display: block;
    color: white;
  }
}

.mobile-logo {
  color: white;
  font-family: sans-serif;
  font-weight: bold;
  background: rgba(255,255,255,0.3);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 6px;
  transition: background 0.2s;
  
}



    /* Mobile drawer */
    .mobile-drawer {
      display: none;
      position: fixed;
      top: 0;
      left: -300px;
      width: 300px;
      height: 100vh;
      background: lightcoral;
      z-index: 1000;
      transition: left 0.3s ease;
      padding: 20px;
      box-sizing: border-box;
    }

    .mobile-drawer.open {
      left: 0;
    }

    .drawer-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 999;
    }

    .drawer-overlay.open {
      display: block;
    }

    .drawer-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
    }

    .drawer-title {
      color: white;
      font-size: 20px;
      font-weight: bold;
      margin: 0;
    }

    .close-drawer {
      background: none;
      border: none;
      color: white;
      font-size: 24px;
      cursor: pointer;
    }

    .drawer-links {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .drawer-links a, .drawer-links button {
      color: white;
      text-decoration: none;
      padding: 15px;
      border-radius: 6px;
      background: rgba(255,255,255,0.1);
      border: none;
      font-size: 16px;
      cursor: pointer;
      transition: background 0.2s;
      text-align: left;
    }

    .drawer-links a:hover, .drawer-links button:hover {
      background: rgba(255,255,255,0.2);
    }

    .drawer-links a.active, .drawer-links button.active {
      background: rgba(255,255,255,0.3);
      font-weight: bold;
    }

    /* Main content */
    .main-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 40px;
    }

    /* Media queries */
    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .menu-toggle {
        display: block;
      }

      .mobile-drawer {
        display: block;
      }

      .main-content {
        padding: 20px;
      }
    }

    .calculator {
      background: lightcoral;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

    .procent-calculator {
    background: lightcoral;
    padding: 20px;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.procent-calculator h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
    text-align: center;
}

.calculation-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.calculation-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.calculation-section input[type="number"] {
    width: 80px;
    height: 40px;
    font-size: 16px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #eee;
    margin: 0 2px;
}

.calculation-section input[type="number"]:focus {
    outline: none;
    border-color: lightcoral;
    background-color: white;
}

.calculation-section button {
    width: auto;
    height: 40px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0 15px;
    margin-top: 10px;
}

.calculation-section button:hover {
    background-color: #d0d0d0;
}

.result {
    margin-top: 15px;
    padding: 10px;
    background-color: #eee;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #333;
    min-height: 20px;
    text-align: center;
}

.clear-btn {
    width: auto;
    height: 40px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0 20px;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.clear-btn:hover {
    background-color: #d0d0d0;
}

/* Media queries */
@media (max-width: 768px) {
    .procent-calculator {
        margin: 10px;
        padding: 15px;
    }
    
    .calculation-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .calculation-section h3 {
        font-size: 16px;
    }
    
    .calculation-section input[type="number"] {
        width: 70px;
        height: 35px;
        font-size: 16px;
    }
    
    .calculation-section button {
        height: 35px;
        font-size: 16px;
        width: 100%;
    }
    
    .clear-btn {
        height: 35px;
        font-size: 16px;
        width: 100%;
    }
    
    .result {
        font-size: 16px;
    }
}


    .display {
      width: 240px;
      height: 60px;
      font-size: 32px;
      text-align: right;
      padding: 10px;
      border: 1px solid #ccc;
      margin-bottom: 10px;
      border-radius: 6px;
      background-color: #eee;
      overflow: hidden;
      white-space: nowrap;
      direction: ltr;
    }

    .display.limit {
      background-color: #ffcccc;
    }

    .button-row {
      display: flex;
      gap: 10px;
      margin-bottom: 10px;
    }

    button {
      width: 50px;
      height: 50px;
      font-size: 18px;
      border: none;
      border-radius: 6px;
      background-color: #f0f0f0;
      cursor: pointer;
      transition: background 0.2s;
    }

    button:hover {
      background-color: #d0d0d0;
    }

    .wide {
      width: 110px;
    }

    .info-box {
      max-width: 300px;
      background: white;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      margin-top: 20px;
  
    }

    .info-box h2 {
      margin-top: 0;
      margin-bottom: 10px;
      color: #333;
      font-size: 20px;
    }

    .info-box p {
      margin: 0;
      line-height: 1.5;
      color: #666;
      font-size: 16px;
    }

    h3 a {
  color: inherit; /* Behåller rubrikens färg */
  text-decoration: none; /* Tar bort understreck */
}

h3 a:hover {
  color: lightgrey;

}

/* Footer */
.footer {
    background: lightcoral;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    position: relative;
    margin-top: auto;
}
.footer-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}
.footer-links {
    display: flex;
    gap: 12px;
    align-items: center;
}
.footer-links a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background 0.2s;
}
.footer-links a:hover {
    background: rgba(255,255,255,0.2);
}
.footer-copyright {
    color: white;
    font-size: 16px;
    opacity: 0.9;
}

 .result {
            margin-top: 15px;
            padding: 10px;
            background-color: #eee;
            border-radius: 6px;
            border: 1px solid #ccc;
            font-size: 16px;
            color: #333;
            min-height: 20px;
            text-align: center;
        }

        .result-section {
            background: white;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            display: none;
        }

        .result-section.show {
            display: block;
        }

        .result-section h3 {
            margin-top: 0;
            margin-bottom: 15px;
            color: #333;
            font-size: 18px;
            text-align: center;
        }

        .bmi-result {
            text-align: center;
            margin-bottom: 15px;
        }

        .bmi-value {
            font-size: 24px;
            font-weight: bold;
            color: lightcoral;
            margin-bottom: 5px;
        }

        .bmi-category {
            font-size: 18px;
            font-weight: bold;
            padding: 8px 16px;
            border-radius: 6px;
            margin-bottom: 15px;
        }

        .category-undervikt {
            background-color: #e3f2fd;
            color: #1976d2;
        }

        .category-normalvikt {
            background-color: #e8f5e8;
            color: #2e7d32;
        }

        .category-overvikt {
            background-color: #fff3e0;
            color: #f57c00;
        }

        .category-fetma {
            background-color: #ffebee;
            color: #d32f2f;
        }

        .bmi-scale {
            background: #f5f5f5;
            padding: 15px;
            border-radius: 6px;
            border: 1px solid #ddd;
        }

        .bmi-scale h4 {
            margin-top: 0;
            margin-bottom: 10px;
            color: #333;
            font-size: 16px;
        }

        .scale-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            padding: 4px 0;
            font-size: 14px;
        }

        .scale-item:last-child {
            margin-bottom: 0;
        }

        .clear-btn {
            width: auto;
            height: 40px;
            font-size: 16px;
            border: none;
            border-radius: 6px;
            background-color: #f0f0f0;
            cursor: pointer;
            transition: background 0.2s;
            padding: 0 20px;
            margin-top: 10px;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        .clear-btn:hover {
            background-color: #d0d0d0;
        }
    
  
