/* css reset rule */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

/* Mobile*/

body {
    background-color: #0b1a10;
    color: #eaeaea;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background-color: rgba(0,0,0,0.7);
    text-align: center;
    padding: 24px;
    border-bottom: 4px solid #039013;
}

header h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: 2px;
}

nav {
    background-color: #039013;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

nav a {
    background-color: rgba(0,0,0,0.3);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    transition: 0.2s;
}

nav a:hover {
    background-color: white;
    color: #039013;
}

main {
    background-image: url(../hikerpic.jpg);
    background-size: cover;
    background-position: center;
    background-color: rgba(0,0,0,0.4);
    background-blend-mode: multiply;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.intro, .lnt, .gallery {
    background-color: rgba(0,0,0,0.5);
    border: 2px solid #039013;
    border-radius: 12px;
    padding: 16px;
}

h2 {
    text-align: center;
    margin-bottom: 12px;
}

.lnt ol {
    padding: 12px 0 0 12px;
}
.lnt a {
    color: red;
    font-weight: bold;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.gallery h2 {
    grid-column: 1 / -1;
}

.gallery figure {
    margin: 0;
}

.gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
}

.gallery figcaption {
    text-align: center;
    margin-top: 8px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

footer {
    background-color: rgba(0,0,0,0.7);
    text-align: center;
    padding: 20px;
    border-top: 4px solid #039013;
}

.hobby-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.hobby-table th,
.hobby-table td {
    border: 2px solid #039013;
    padding: 10px;
}

.hobby-table th {
    background-color: #039013;
}

.hobby-table a {
    color: #7CFC00;
}

/*Tablet*/

@media screen and (min-width: 768px) {

    nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        flex: 1 0 40%;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

}

/*Desktop*/

@media screen and (min-width: 1024px) {

    main {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .intro {
        flex: 2;
    }

    .lnt {
        flex: 1;
    }

    .gallery {
        flex: 0 0 100%;
        grid-template-columns: repeat(3, 1fr);
    }

}

   