* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; 
}

body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 
        "header"
        "navbar"
        "intro"
        "content"
        "footer";
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}


header {
    grid-area: header;
    padding: 20px;
    background-color: #333;
    color: white;
    text-align: center; 
    display: flex;
    align-items: center;
    justify-content: center; 
    height: 80px; 
    position: relative; 
}


.dropdown {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: none;
}

.dropbtn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}


.navbar {
    display: none;
    grid-area: navbar;
    background-color: #333;
    padding: 10px;
    text-align: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 15px;
    display: inline-block;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}


.intro {
    grid-area: intro;
    padding: 20px;
    text-align: center;
    max-width: 1000px; 
    margin: 0 auto; 
}


.content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto; 
}


.image {
    width: 500px; 
    height: 300px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}


#slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.text1, .text2 {
    padding: 10px;
    max-width: 1000px; 
    margin: 10px;
}


footer {
    grid-area: footer;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
}


@media only screen and (max-width: 600px) {
    .dropdown {
        display: block;
    }
}

@media only screen and (min-width: 600px) {
    .navbar {
        display: flex;
        justify-content: space-around;
    }

    .dropdown {
        display: none;
    }
}

@media only screen and (min-width: 769px) {
    body {
        grid-template-columns: 200px 1fr;
        grid-template-areas:
            "header header"
            "navbar intro"
            "navbar content"
            "footer footer"; 
    }

    .navbar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 200px;
        height: 100vh;
        padding-top: 80px;
    }

    .intro, .content {
        max-width: 1000px;
        padding: 20px;
        text-align: center;
        margin: 0 auto; 
    }

    footer {
        margin-left: 200px;
        margin-top: 30px;
    }
}
