:root {
    --color-1: #846542;
    --color-2: white;
    --margin: 10px;
}

*,
*:before,
*:after {
    -website-text-size-adjust: 100%;
    text-size-adjust: 100%;
    margin: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Authentic";
    src: url(fonts/AUTHENTICSans-90.woff2) format("woff2");
}


/* -------------- GENERAL ---------------*/

html {
    font-size: 12px;
}

body {
    font-family: "Spectral", serif;
    font-weight: 200;
    font-style: normal;
    color: var(--color-1);
    height: 100%;
}

body.noscroll {
    overflow: hidden;
}

.mobile{
    visibility: hidden;
}

.desktop{
    visibility:visible;
}

#image-display {
    display: none; /* Hide image initially */
    max-width: 100%; /* Ensure it doesn't overflow */
}
#image-display.visible {
    display: block; /* Show image after resizing */
}

/* --- Html/text elements ---*/
.landing p {
    line-height: 120%;
    font-size: 4.5rem;
    font-size: clamp(3rem, 1.5rem + 2.4vw, 4.5rem);
}

.landing .hover-word {
    font-style: italic;
}

.landing p em {
    font-size: 2rem;
    font-size: clamp(2rem, 1rem + 1.6vw, 3rem);
    font-style: italic;
}

/* --- Structure ---*/

.menu-box {
    position: fixed;
    bottom: var(--margin);
    right: var(--margin);
    display: inline-flex;
}

.menu-box p {
    padding-left: var(--margin);
}

.about {
    position: absolute;
    top: 0;
}

.container {
    padding: var(--margin);
}

/* -------------- LANDING PAGE ---------------*/

/* --- Onload animation---*/
#text-container span {
    display: inline-block;
    opacity: 0;
    transition: opacity 1s ease;
}

/* --- Hover words ---*/
.hover-image {
    display: none;
    position: absolute;
}

.hover-image img {
    width: 17vw;
}


/* --- Appearing text ---*/
.content-box {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.visible {
    opacity: 1;
    visibility: visible;
}

.content-box.landing {
    display: flex;
    height: 100vh;
    overflow: hidden;
    justify-content: center;
}

.content-box.about {
    position: fixed;
    background-color: var(--color-1);
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.landing-caption {
    position: absolute;
    bottom: var(--margin);
}

/* --- Button ---*/
button {
    display: inline-block;
    border: none;
    font-style: normal;
    color: var(--color-1);
    background-color: white;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
}

button img {
    width: 12vw;
}

/* -------------- ABOUT PAGE ---------------*/

/* --- Type ---*/


.right-middle-box p {
    line-height: 120%;
    font-size: 1.5rem;
    font-size: clamp(1.5rem, 1rem + 0.8vw, 2rem);
    padding-bottom: var(--margin);
}

.right-middle-box h1 {
    line-height: 120%;
    font-size: 1.5rem;
    font-size: clamp(1.5rem, 1rem + 0.8vw, 2rem);
    font-style: normal;
    font-weight: 200;
    padding-top: var(--margin);
    padding-bottom: var(--margin);
    text-decoration: underline;
}

.right-middle-box span {
    font-style: italic;
}

.right-middle-box span em {
    font-style: italic;
    text-decoration: underline;
}

.left-top-box,
.right-top-box {
    text-transform: uppercase;
    font-size: 1.25rem;
    line-height: 100%;
}

.right-top-box {
    font-family: 'Authentic'; 
    font-size: 1.15rem;
}

.left-middle-box p {
    font-size: 1rem;
    font-size: clamp(1rem, 0.75rem + 0.4vw, 1.25rem);
    line-height: 100%;
}

#titre-info {
    font-style: italic;
}

/* --- Left ---*/
.about .left-pane {
    width: 50vw;
    height: 100vh;
    background-color: white;
    position: fixed;
}

.left-top-box {
    height: 3.5vh;
    margin-bottom: var(--margin);
}

.left-top-box img {
    height: 1.5rem;
    position: absolute;
}

.left-top-box #category-info {
    position: absolute;
    right: var(--margin);
    top: var(--margin);
    text-align: right;
}

.left-middle-box img {
    width: 25vw;
    height: auto;
}

.left-middle-box .captions {
    width: 25vw;
    padding-top: var(--margin);
}

.left-bottom-box {
    height: 3vh;
    position: absolute;
    bottom: var(--margin);
    font-size: 1.25rem;
}

#image-macaron {
    width: 7vw;
    position: absolute;
}

/* --- Right ---*/

.about .right-pane {
    color: var(--color-2);
    width: 50vw;
    height: 100vh;
    position: absolute;
    right: 0;
}

.right-top-box {
    height: 3.5vh;
    position: fixed;
    width:calc(50vw - ((var(--margin) * 3)));
    background-color: var(--color-1);
    padding-top: var(--margin);
    margin-left: calc(var(--margin) * 2);
    padding-bottom: calc(var(--margin) * 2);
}

.right-top-box p {
    color: inherit;
    position: absolute;
}

.right-top-box a {
    color: inherit;
    position: absolute;
    right: var(--margin);
    text-align: right;
}

.right-top-box a:visited {
    color: inherit;
}

.right-middle-box {
    margin: var(--margin);
    margin-top: calc(var(--margin) * 4);
    margin-left: calc(var(--margin) * 2);
}


/* -------------- MEDIA QUERIES ---------------*/

@media (min-width : 100px) and (max-width : 700px) {

    .mobile{
        visibility: visible;
    }
    
    .desktop{
        visibility:hidden;
    }

    #text-container{
        width: 80vw;
        margin:auto;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .landing p{
        font-size:2rem;
    }

    .landing p em{
        font-size:1.5rem;
    }

    #text-container .landing-caption{
        position: relative;
    }


    .about .left-pane {
        width: 100vw;
        height: 50vh;
        z-index:100;
    }

    .about .right-pane {
        width: 100vw;
        height: 50vh;
        position: absolute;
        top:50vh;
        z-index:0;
    }

    .right-top-box{
        
        width:calc(100vw - ((var(--margin) * 2)));
        margin-left: var(--margin) ;
    
    }

    .right-middle-box{
        margin-left: var(--margin) ;
    
    }

    .left-middle-box {
        display: flex;
        justify-content: center;    
        align-items: center;       
        height: 40vh;                                 
    }
    
    .left-middle-container {
        display: flex;
        flex-direction: column;    
        justify-content: center;    
        align-items: center;        
        max-width: 100%;           
        max-height: 100%;           
    }


    .left-middle-box img {
        width: 35vw;
        margin:auto;
    }

    .left-middle-box .captions {
        width: 50vw;
        margin:auto;
        text-align: center;

    
    } 

}
