*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
    --header-height: 82px;
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: serif, sans-serif;
    background-color: rgba(218, 177, 218, 0.1);
}

body {
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
    min-height: 100vh;
}
@media (max-width: 480px) {
    :root {
        --header-height: 70px;
    }
}
/* HEADER / NAV */
.eliari {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.eliari a {
    text-decoration: none;
}

.eliari input[type="search"] {
    padding: 4px 8px;
    border: 1px solid purple;
    border-radius: 5px;
}

.eliari img {
    width: 35px;
    height: 35px;
    border: 2px solid purple;
    border-radius: 50%;
    object-fit: contain;
    background-color: whitesmoke;
}

.eliari img:hover {
    border: 2px solid black;
}

.eliari .material-symbols-outlined {
    font-size: 30px;
    background-color: whitesmoke;
}

.afford p {
    color: gold;
    background: gray;
    border: 2px solid purple;
    border-radius: 5px;
    padding: 2px;
}

.afford:hover p {
    background: whitesmoke;
    color: black;
    cursor: pointer;
}

.log {
    background: whitesmoke;
    border: 2px solid purple;
    border-radius: 5px;
    padding: 2px;
    margin-right: 10px;
}

.log:hover {
    background: lightgray;
}

.SignUp {
    float: right;
}

.SignUp a {
    font-family: cursive;
    font-size: 20px;
    text-decoration: none;
}

/* SECTION */
.auth-layout {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    border: 2px solid purple;
    border-radius: 5px;
    gap: 30px;
    box-sizing: border-box;
}

/* CENTER */
.bodySection {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background: linear-gradient(to top, rgba(218, 177, 218, 0.1), rgba(218, 177, 218, 0.5));
    padding: 10px;
    border: 2px solid purple;
    border-radius: 5px;
    box-sizing: border-box;
    
}

.slideshow-container {
    position: relative;  /* make container relative */
    width: 600px;
    height: 400px;
    margin: auto;

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;    /* crop anything outside */
}

.mySlides {
    display: none;
    position: relative;  /* needed for absolute caption */
    overflow: hidden;    /* ensure caption stays inside */
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Caption hidden by default */
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: #fff;
    font-size: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    border-radius: 0 0 8px 8px;
    pointer-events: none;  /* optional: prevent mouse interference */
}

/* Show caption on hover */
.mySlides:hover .caption {
    opacity: 1;
    transform: translateY(0);
}

/* SIDEBARS */
.about,
.details {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: serif, sans-serif;
    font-size: 16px;
}

.about img {
    width: 120px;
    height: auto;
}
.details img {
    width: 60px;
    height: auto;
}
footer {
    margin-top: auto;
}

/* TABLET */
@media (min-width: 481px) and (max-width: 769px) {
    .slideshow-container {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 3 / 4;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .slideshow-container {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .mySlides img {
        object-fit: contain; 
        background-color: white;
    }

    .caption {
        opacity: 1;
        transform: translateY(0);
        font-size: 14px;
        padding: 10px;
    }

    .auth-layout {
        flex-direction: column;
        justify-content: flex-start; 
        align-items: center;
        padding: 20px 10px;
        flex: none; 
    }

    .about,
    .details,
    .bodySection {
        width: 100%;
        flex: none;      
        margin: 10px 0;
        height: auto;  
        font-size: 16px;
    }
    .about {
        order: 1;
    }

    .bodySection {
        order: 2;
    }

    .details {
        order: 3;
    }
}

/* TEXT */
.aboutText {
    color: black;
    font-family: Arial, sans-serif;
    margin: 1em 0; 
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
