html {
    font-size: 16px;
}

body {
    background-image: url("../weblap_kepek/hatter.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1rem;
}


.extra-margin {
    margin-top: 30px;
}

.main-nav {
    background-color: #dceefc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-nav .nav-link {
    color: #004080;
    font-weight: 600;
    margin: 0 1rem;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #004080;
    transition: all 0.3s ease-in-out;
}

.main-nav .nav-link:hover {
    color: #002244;
}

.main-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

.main-nav .nav-link:visited {
    color: #004080;
}

a:visited {
    color: #6c757d;
}

a:hover {
    color: #002244;
}

.main-nav .nav-link.active {
    color: #ff5722;
    font-weight: bold;
    text-decoration: underline;
}

header .container,
main .container,
footer .container {
    background-color: #f0f4f8;
    border: 2px solid #c8d6e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    color: #003366;
}


.carousel-item img {
    object-fit     : cover;
    object-position: center;
    height         : 55vh;
    overflow       : hidden;
}

footer video {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

header h1 {
    font-size: 2.5rem;
    font-family: 'Merriweather', Georgia, serif;
}

body h2 {
    font-size: 2rem;
    font-family: 'Merriweather', Georgia, serif;
}

@media (max-width: 768px) {
    body {
        font-size: 0.875rem;
    }

    header h1 {
        font-size: 1.75rem;
    }
    
    body h2 {
        font-size: 1.5rem;
    }
}