* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #1b4332;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2d6a4f;
    padding: 1rem 5%;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo span {
    color: #95d5b2;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    padding: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #95d5b2;
}

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(45, 106, 79, 0.7), rgba(45, 106, 79, 0.7)),
                url('https://images.unsplash.com/photo-1466611653911-954ffec136ce?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: #95d5b2;
    color: #1b4332;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
}

/* Grid layout */
.container {
    padding: 50px 5%;
    max-width: 1200px;
    margin: auto;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.subject-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid #2d6a4f;
    transition: transform 0.3s;
}

.subject-card:hover {
    transform: translateY(-10px);
}

.subject-card a {
    display: block;
    margin-top: 15px;
    color: #2d6a4f;
    font-weight: bold;
    text-decoration: none;
}

/* Mobil-optimering */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Her kan du senere tilføje en mobil-menu */
    }
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Specifikt for Matematik-siden */
.small-hero {
    height: 30vh;
}

.formula-box {
    background: #e9ecef;
    padding: 20px;
    text-align: center;
    font-size: 1.5rem;
    border-radius: 8px;
    margin: 20px 0;
    color: #2d6a4f;
    font-weight: bold;
}

.calc-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 30px auto;
}

.input-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.input-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#calc-btn {
    width: 100%;
    cursor: pointer;
    border: none;
}

.result-display {
    margin-top: 20px;
    padding: 15px;
    background: #2d6a4f;
    color: white;
    border-radius: 5px;
    text-align: center;
    font-size: 1.2rem;
}

#y-result {
    font-weight: bold;
    color: #95d5b2;
}

/* Specifikt for Fysik-siden */
.fysik-hero {
    /* Du kan tilføje et specifikt fysik-billede her hvis du vil */
    background: linear-gradient(rgba(45, 106, 79, 0.8), rgba(45, 106, 79, 0.8)),
                url('https://images.unsplash.com/photo-1581093588401-fbb62a02f120?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
}

.experiment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .experiment-grid {
        grid-template-columns: 1fr;
    }
}

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 30px 0;
    position: relative;
    height: 60vh; /* Grafens højde */
    width: 100%;
}

.data-analysis {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #2d6a4f;
    margin-top: 20px;
}

/* Specifikt for Kemi-siden */
.kemi-hero {
    background: linear-gradient(rgba(45, 106, 79, 0.8), rgba(45, 106, 79, 0.8)),
                url('https://images.unsplash.com/photo-1532187875605-2fe35851146a?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
}

.reaction-box {
    background-color: #1b4332;
    color: #95d5b2;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
}

.card-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.kemi-card {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.kemi-card ul {
    padding-left: 20px;
}

/* Quiz styling */
.quiz-container {
    background: #f1f8e9;
    padding: 30px;
    border-radius: 15px;
    border: 2px dashed #2d6a4f;
    text-align: center;
}

.quiz-options {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.quiz-btn {
    padding: 10px 20px;
    background: #2d6a4f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.quiz-btn:hover {
    background: #40916c;
}

#quiz-feedback {
    margin-top: 15px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
    }
}
/* Styling af datatabel */
.data-results {
    margin-top: 40px;
}

.table-container {
    overflow-x: auto; /* Gør at man kan scrolle sidelæns på mobilen */
    margin: 20px 0;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #2d6a4f;
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
}

tr:hover {
    background-color: #f1f8e9;
}

.highlight-row {
    background-color: #f9f9f9;
    font-style: italic;
}

.total-row {
    background-color: #d8f3dc;
    font-weight: bold;
    color: #1b4332;
    font-size: 1.1rem;
}

.table-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
}
/* Specifikt til Mol-tabellen */
.mol-table th {
    background-color: #1b4332; /* Lidt mørkere grøn for at adskille den */
}

.result-row {
    background-color: #e8f5e9;
    font-family: 'Courier New', monospace; /* Giver det et mere matematisk look */
}

.theory-note {
    background: #f8f9fa;
    padding: 15px;
    border-left: 5px solid #2d6a4f;
    margin-top: 10px;
    font-style: italic;
}
/* Specifikt for boble-tabellen */
.bubble-table .total-row {
    background-color: #4caf50; /* Den grønne farve fra dit Excel-ark */
    color: black;
}

.analysis-box {
    background-color: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #4caf50;
    margin-top: 15px;
}

.bubble-table td, .bubble-table th {
    text-align: center; /* Bobler er nemmere at læse når de er centreret */
}
.graph-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.graph-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.fysik-hero {
    background: linear-gradient(rgba(45, 106, 79, 0.8), rgba(45, 106, 79, 0.8)),
                url('https://images.unsplash.com/photo-1593941707882-a5bba14938c7?auto=format&fit=crop&w=1350&q=80');
}

.section-divider {
    margin: 60px 0;
    border: 0;
    height: 1px;
    background: #ddd;
}

.graph-caption {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    color: #2d6a4f;
}

.chart-container-large {
    height: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.math-hero {
    background: linear-gradient(rgba(45, 106, 79, 0.8), rgba(45, 106, 79, 0.8)),
                url('https://images.unsplash.com/photo-1509228468518-180dd48219d8?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
}

.math-section {
    margin-bottom: 50px;
}

.analysis-box ol {
    margin-left: 25px;
    line-height: 2;
}

.formula-box {
    font-size: 1.3rem;
    padding: 25px;
    background: #1b4332;
    color: #95d5b2;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.calc-card h3 {
    margin-bottom: 10px;
    color: #2d6a4f;
}
