/* Desktop */
/* Smooth transition for all elements */



* {
    transition : opacity 0.5s ease, background-color 0.5 ease, color 0.5 ease;
}

body {
    background-color: rgb(255, 253, 232);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: rgb(255, 255, 255);
}
.page-wrapper {
    position: relative;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.main {
    height : 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    /* This gives the title section all remaining space */
    grid-template-areas:
        "title"
        "presentation";
}

a.s {
    display:inline-flex;
    justify-content:center;
    align-items: center;
    height: 100%;
    padding: 2rem 2em 0rem 2rem;
}
.title {
    grid-area: 'title';
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25rem;
    user-select: none;
    min-height: 180px;
    height: 100%;
    cursor:default;
}

.title h1 {
    filter:none;
}

.title h1:hover {
    text-decoration:underline;
    filter:none;
    cursor:cell;
}

.title p {
    height: calc(3rem + 2px);
}

.text {
    grid-area: "presentation";
    display: flex;
    justify-content:center;
    align-items: center;
    font-size: 4rem;
    user-select: none;
    min-height: 180px;
    padding: 0 2rem 4rem 2rem;
    height: 100%;
    cursor:default;
}



.presentation {
    grid-area: presentation;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0 2rem 2rem 2rem;
    width: 100%;
    /* height: auto; */
}

footer {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    align-items: center;
    justify-content : center;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;

}

footer.fade {
    color: black;
    background-color: white;
}

footer a:hover {
    cursor:cell;
}

button {
    background-color:rgba(0, 0, 0, 0);
    color: white;
    border:none;
    font-size: 1rem;
}


button:hover {
    text-decoration:underline;
    cursor:cell;
}

button.active {
  font-weight: bold;
  text-decoration: underline;
}

button.fade {
    color: black;
}

/* Keep your existing fade-out effects */
.page-wrapper.fade-out .hide,
.page-wrapper.fade-out .title {
    background-color: 0;
}

/* Now we fade in the image when section has fade-out */
.page-wrapper.fade-out {
    opacity: 1;
    visibility: visible;
    background-color: white;  
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
    color: black;
}


.text.fade-out {
    visibility: hidden;
}



/* Desktop Logic */

@media (hover: hover) {
    .text.hidden {
        color: rgba(0, 0, 0, 0);
    }
}

@media (max-width: 1600px) {
    .title h1 {
        font-size: 20rem;
    }
    .text {
    font-size:2rem;
    }
}
@media (max-height: 1080px) {
    .title h1 {
        font-size: 25rem;
    }
        .text {
    font-size:3rem;
    }
}

@media (max-height: 720px) {
    .title h1 {
        font-size: 18rem;
    }
        .text {
    font-size:2rem;
    }
}

@media (max-height: 480px) {
    .title h1 {
        font-size: 10rem;
    }
        .text {
    font-size:1rem;
    }
}


/* Tablet */
@media (max-width: 1024px) {

}

/*Mobile */
@media (max-width: 768px) {

    html, body {
        margin: 0;
        padding: 0;
        height: 100%;
        overflow-x:hidden;
    }
    .title {
        font-size: 10rem;
        text-decoration: underline;

    }

    .title h1 {
    filter:none;
}


    .title p {
        height: calc(2.2rem + 2px);
    }


    .main {
        height: auto;
        min-height: auto;
    }

    .page-wrapper {
        height: auto;
        min-height:auto;
    }

    .presentation {
        padding: 0 1rem 1rem 1rem;
        line-height: 1.5;
    }

    .text {
        display:flex;
        height: auto;
        align-items:left;
        justify-content:left;
        text-align:left;
        text-justify:auto;
        padding: 2rem 2rem 1rem 2rem;
        margin-top : 1rem;
        font-size : 1.7rem;
        background-color: rgba(0, 0, 0, 0.2);
        color: rgb(255, 255, 255);

    }

    .text.hidden {
        display:flex;
        height: auto;
        align-items:left;
        justify-content:left;
        text-align:left;
        text-justify:auto;
        padding: 0 1rem 1rem 1rem;
        margin: 0;
        line-height: 1.8rem;
        font-size : 2rem;
        background-color: rgba(0, 0, 0, 0.2);
        color: rgb(255, 255, 255);

    }

    footer {
    display: flex;
    position:static;
    height: auto;
    align-items: center;
    justify-content: left;
    flex-wrap: wrap;
    padding: 0.5rem 1rem 1rem 2rem;
    line-height: 1.5rem;
    font-size: 0.8rem;
    text-size-adjust: auto;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
}
    footer a{
        text-decoration:underline;

    }

    button{
        font-size: 0.8rem;
        text-size-adjust: auto;

    }
}


