@font-face {
    font-family: 'Lexend';
    src: url('fonts/Lexend-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

body {
    font-family: 'Lexend', sans-serif;
    font-size: clamp(16px, 1.2vw, 22px);

}

/* =========================
   NAVBAR
   ========================= */

.navbar {
    width: 100%;
    background: #222;
    border-bottom: 3px solid #444;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 10px;

    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;

    box-sizing: border-box;
}

.nav-link {
    display: block;

    padding: 12px 20px;

    background: #333;
    border: 2px solid #555;
    border-radius: 8px;

    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;

    transition: 0.2s ease;
}

.nav-link:hover {
    background: #444;
    border-color: #777;
    transform: translateY(-2px);
}

.nav-link:active {
    transform: translateY(0);
	background: #555;
    border-color: white;
}

@media (max-width: 600px) {
    .nav-container {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-container::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* =========================
   MAIN CONTENT
   ========================= */

h1,
h2,
h3 {
    text-align: center;
}

body {
    margin: auto;
    padding: 40px;
    background-color: #585f19;
    background-image: url("images/dpm.jpg");
    background-repeat: repeat;
}

nav {
    margin-bottom: 20px;
}

nav a {
    margin-right: 15px;
}

.outer {
    background-color: #70853a;
    padding: 20px;
}

.content {
    background-color: #d5c483;
    padding: 20px;
	margin-bottom: 20px;
}

.content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.imageBox {
	width: 100%;
	box-sizing: border-box;
	padding: 20px;
}

.imageBox img {
	display: block;
	width: 100%;
	height: auto;
}

/* =========================
   CHECKLIST GRID
   ========================= */
   
.checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    width: 100%;
}

.checklist label {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-height: 50px;
    padding: 10px 15px;
    box-sizing: border-box;

    background: #333;
    border-radius: 6px;

    color: white;
    cursor: pointer;
}

.checklist input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
   
/* =========================
   CARD GRID
   ========================= */

.cardGrid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

.cardGrid .card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    min-height: 150px !important;
    padding: 25px !important;
    box-sizing: border-box !important;

    background: #333 !important;
    border-radius: 10px !important;

    color: white !important;
    text-decoration: none !important;
    text-align: center !important;
}

.cardGrid .card h3 {
    color: white !important;
}

.cardGrid .card p {
    color: white !important;
}

.cardGrid .card:hover {
    background: #444 !important;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    .outer {
        padding: 10px;
    }

    .content {
        padding: 10px;
    }

    .cardGrid {
        grid-template-columns: 1fr;
    }

}

/* =========================
   GALLERY
   ========================= */
   
.imageGallery {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imageGallery img {
    max-width: 90%;
    max-height: 720px;
    width: auto;
    height: auto;
    display: block;
}

.galleryButton {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;

    width: 45px;
    height: 45px;

    font-size: 32px;
    line-height: 35px;

    cursor: pointer;
    z-index: 2;
}

.galleryButton:hover {
    background: rgba(0, 0, 0, 0.85);
}

.galleryButton.left {
    left: 10px;
}

.galleryButton.right {
    right: 10px;
}

@media (max-width: 600px) {

    .imageGallery img {
        max-width: 85%;
        max-height: 70vh;
    }

    .galleryButton {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .galleryButton.left {
        left: 5px;
    }

    .galleryButton.right {
        right: 5px;
    }

}