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

body {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #666666;
    background-color: #fcfcfc;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 0.2rem;

    border-style: solid;
    border-width: 0.01rem;
    border-color: #f0f0f0;
    width: 90%;
    max-width: 27rem;

    border-radius: 1.5rem;
    position: sticky;
    top: 1rem;
    margin: 1rem auto 0 auto;
    z-index: 1000;
}

.navbar li {
    display: flex;
    border-color: #ffffff;
    border-style: solid;
    border-width: 0.01rem;
    border-radius: 1.5rem;
    list-style: none;
    padding: 0.7rem;
    width: 5rem;
    align-content: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    margin: 0 0.2rem;
}

.navbar .links {
    display: flex;
    justify-content: center;
    gap: 0.1rem;
    list-style: none;
    width: 100%;
}

.navbar .links a {
    color: #666666;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar li:hover {
    background-color: #eaeaea;
}

.about-button {
    background-color: #eaeaea;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666666;
}

.content {
    display: grid;
    grid-template-columns: 1fr 0.5fr 0.5fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    margin: 2rem;
}

.who-am-i {
    background-color: #ffffff;
    border-style: solid;
    border-color: #f0f0f0;
    border-radius: 1.5rem;
    border-width: 0.01rem;
    padding: 2rem;
    height: auto;
    grid-column: 1;
    grid-row: 1 / span 3;
}

.decorator-1 {
    background-color: #ffffff;
    border-style: solid;
    border-color: #f0f0f0;
    border-radius: 1.5rem;
    border-width: 0.01rem;;
    padding: 1rem;
    height: 15rem;
    max-height: 25rem;
    grid-column: 2;
    grid-row: 1;
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.decorator-1 .little-menu-bar {
    position: absolute;
    bottom: 1rem;
    width: 90%;
    background-color: #ffffffA6;
    backdrop-filter: blur(0.5rem);
    border: 0.01rem solid #f0f0f0CC;
    border-radius: 1.5rem;
    padding: 0.2rem;
    box-shadow: 0 0.25rem 0.9rem #0000000D;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.decorator-1:hover .little-menu-bar {
    opacity: 1;
    visibility: visible;
}

.decorator-1 .little-menu-bar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    width: 100%;
}

.decorator-1 .little-menu-bar li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem;
    border-radius: 1.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
}

.decorator-1 .little-menu-bar li:hover {
    background-color: #eaeaeaCC;
}

.carousel-photos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-photos img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-photos img.active {
    opacity: 1;
}

.decorator-2 {
    background-color: #1f1f1f;
    border-style: solid;
    border-color: #f0f0f0;
    border-radius: 1.5rem;
    border-width: 0.01rem;
    padding: 0.3rem;
    height: 100%;
    grid-column: 3;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decorator-3 {
    background-color: #ffffff;
    border-style: solid;
    border-color: #f0f0f0;
    border-radius: 1.5rem;
    border-width: 0.01rem;
    padding: 1rem;
    height: 15rem;
    max-height: 25rem;
    grid-column: 2;
    grid-row: 2;
}

.quote-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote {
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    text-align: center;
    padding: 1rem;
}

.quote.active {
    opacity: 1;
    z-index: 1;
}

.quote p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.quote .author {
    font-size: 0.9rem;
    font-style: normal;
    font-weight: bold;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.5rem; 
}

.map-wrapper iframe {
    width: 100%;
    height: calc(100% + 7rem);
    margin-top: -3.5rem; 
    border: none;
    transition: margin-top 0.3s ease, height 0.3s ease; 
}

.map-wrapper:hover iframe {
    margin-top: 0;
    height: calc(100% + 3.5rem);
}

.decorator-5 {
    background-color: #ffffff;
    border-style: solid;
    border-color: #f0f0f0;
    border-radius: 1.5rem;
    border-width: 0.01rem;
    padding: 1rem;
    height: 15rem;
    max-height: 25rem;
    grid-column: 2 / span 2;
    grid-row: 3;
}


@media (max-width: 768px) {
    .navbar {
        width: 90%;
        left: 5%;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar .links {
        display: none;
        grid-column: 1/-1;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding-top: 1rem;
    }

    .navbar .links.active {
        display: flex;
    }
    
    .content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
    }

    .who-am-i {
        grid-column: 1;
        grid-row: 1;
    }

    .decorator-1 {
        grid-column: 1;
        grid-row: 2;
    }

    .decorator-2 {
        grid-column: 1;
        grid-row: 3;
    }

    .decorator-3 {
        grid-column: 1;
        grid-row: 4;
    }

    .decorator-5 {
        grid-column: 1;
        grid-row: 6;
    }


}