/* Desktop */
/* Smooth transition for all elements */

* {
    transition : opacity 0.5s ease;
}


.page-wrapper {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    opacity: 1;
    visibility: visible;
    background-color: rgba(255,255,255,0.8);  
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
    color: black;
}

.main {
    height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    /* This gives the title section all remaining space */
    grid-template-areas:
        "title"
        "presentation";
}

.title {
    grid-area: 'title';
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30rem;
    user-select: none;
    min-height: 180px;
    height: 100%;
    cursor: default;

}

    .back {
        visibility: hidden;
        font-size:1rem;
        text-decoration:underline;
        color:black;
    }

.title h1:hover {
    text-decoration:underline;
}

.title p {
    height: 6rem;
    font-size: 5rem;
}

.presentation {
    grid-area: 'presentation';
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    text-align: left;
    font-size: 3rem;
    padding: 2rem 2rem 2rem 10rem;
    width: 100%;
    /* height: auto; */
}

.presentation-columns {
    display: flex;
    flex-direction: row;
    gap: 10rem;
    
}



.presentation-columns section.base {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.presentation-columns section.info {
    font-size: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text {
    display: flex;
    justify-content:center;
    align-items: center;
    text-align: center;
    font-size: 4rem;
    user-select: none;
    min-height: 180px;
    padding: 0 1rem 1rem 1rem;
    height:100%;
    cursor:default;
}

footer {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    align-items: center;
    justify-content : center;
    font-size: 1rem;
    color: rgb(0, 0, 0);
    background-color: rgba(255,255,255,0);  

}

footer.fade {
    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 a:hover {
    cursor:cell;
}

button {
    background-color:rgba(0, 0, 0, 0);
    color:black;
    border:none;
    font-size: 1rem;
}

button.fade {
    color: rgba(255, 255, 255, 1);
}

button:hover {
    text-decoration:underline;
    cursor:cell;
}

button.active {
  font-weight: bold;
  text-decoration: underline;
}


/* 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 {
    background-color: rgba(0, 0, 0, 0);
    visibility: visible; 
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
    color: black;
}


.text.fade-out {
    visibility: hidden;
}



/* Desktop Logic */

@media (hover: hover) {
    .hidden {
        color: rgba(255, 255, 255, 0.5);
    }
    .hidden #hover-s {
  position: relative;
  z-index: 10;
  opacity: 1 !important;
  color:rgb(255, 255, 255);
}    
}

/* Tablet */
@media (max-width: 1024px) {}

/*Mobile */
@media (max-width: 768px) {

    .page-wrapper {
        background-color: rgba(255, 255, 255, 0.7);
        display: flex;
        padding: 1rem 0;
       }

    .back {
        visibility: visible;
        font-size:1rem;
        text-decoration:underline;
        color:black;
        padding: 2rem 0;
    }

    .title {
        font-size: 10rem;
        text-decoration: underline;

    }

    .title h1 {
    filter:none;
}


    .title p {
        height: calc(2.2rem + 2px);
    }

    .presentation {
    grid-area: 'presentation';
    display: grid;
    justify-content: left;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 0 1rem;
    /* height: auto; */
    }

    .presentation-columns {
    display:flex;
    flex-direction:column;
    gap: 2rem;
    margin: 0;
    padding: 0 1rem;
 
    }

    .presentation-columns section.base {
    display: grid;
    font-size: 1.7rem;
    justify-content: center;
    margin: 0;
    padding: 0 1rem;
    
    }

    .presentation-columns section.info {
    display: grid;
    font-size: 1rem;
    margin: 0;
    padding: 0 1rem;
    
    }


    .text {
        display:flex;
        align-items:center;
        justify-content:center;
        text-align:center;
        text-justify:auto;
        padding: 0 1rem 1rem 1rem;
        margin-top : 3rem;
        margin-bottom: 0;
        line-height: 1.8rem;
        font-size : 1.2rem;
        background-color: rgba(0, 0, 0, 0.2);
        color: rgb(255, 255, 255);

    }

    footer {
    display: flex;
    position: static;
    height: 4rem;
    align-items: center;
    justify-content: left;
    flex-wrap: wrap;
    padding: 0.5rem 1rem 1rem 3rem;
    line-height: 1.5rem;
    font-size: 0.8rem;
    text-size-adjust: auto;
    background-color: rgba(255, 255, 255, 0.7);
    color: rgb(0, 0, 0);
    }


    button {
        font-size: 0.8rem;
    }
    footer a{
        text-decoration:underline;

    }

}


