.hideTitle {
    padding-top: 15%;
    height: 25%;
    animation: titleGrow .4s ease-in-out;
}

.showTitle {
    padding-top: 15%;
    height: 20%;
    animation: titleShrink .4s ease-in-out;
}

#card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom-right-radius: 2vh;
    border-bottom-left-radius: 2vh;
    position: fixed;
    cursor: pointer;   
}

.cardTitle {
    height: 40%;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 5vh;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    cursor: pointer; 
}

.cardText{
    width: 80%;
    font-size: 2.4vh;
    font-family: Arial, Helvetica, sans-serif;
    opacity: 85%;
    cursor: pointer; 
}

.cardShow {
    position: fixed;
    background-color: rgb(253, 250, 245);
    opacity: 100%;
    top: 0px;
    left: 10vw;
    height: 37vh;
    width: 80vw;
    box-shadow: 2px 1px 3px rgb(0 0 0 / .09);
    animation: cardReveal .4s ease-in-out;
    cursor: pointer;
}

.cardHide {
    position: fixed;
    background-color: rgb(253, 250, 245);
    opacity: 0;
    top: 0px;
    left: 10vw;
    height: 40vh;
    width: 80vw;
    box-shadow: 2px 1px 3px rgb(0 0 0 / .09);
    animation: cardHide .4s ease-in-out;
}

.sectionGrow {
    height: 102%;
    margin-right: 0;
    margin-left: 0;
    margin-top: 0vh;
    margin-bottom: 0vh;
    border-radius: 0;
    /* animation: sectionGrow .15s ease-in-out; */
}

.sectionShrink {
    height: 69vh;
    margin-right: 3%;
    margin-left: 3%;
    margin-top: 5vh;
    margin-bottom: 5vh;
    border-radius: 10vw;
    position: relative;
    align-items: center;
    justify-content: center;
    overflow: visible;
    animation: sectionShrink .15s ease-in-out;
}

.paddingChange {
    animation: paddingChange .4s ease;
}

.closeIcon {
    position: absolute;
    right: 2vh;
    bottom: 2vh;
    height: 2vh;
    width: 2vh;
    border-radius: 50%;
    cursor: pointer;
    background-color: rgb(108, 104, 103);
    animation: textReveal 3s ease-in;
}

@media (min-aspect-ratio: 1.8/3){
    .hideTitle {
        padding-top: 13%;
        height: 25%;
        animation: titleGrow2 .4s ease-in-out;
    }
    
    .showTitle {
        padding-top: 13%;
        height: 13%;
        animation: titleShrink2 .4s ease-in-out;
    }

    .cardShow {
        position: fixed;
        background-color: rgb(253, 250, 245);
        opacity: 100%;
        top: 0px;
        left: 10vw;
        height: 30vh;
        width: 80vw;
        box-shadow: 2px 1px 3px rgb(0 0 0 / .09);
        animation: cardReveal .4s ease-in-out;
    }
    
    .cardHide {
        position: fixed;
        background-color: rgb(253, 250, 245);
        opacity: 0;
        top: 0px;
        left: 10vw;
        height: 40vh;
        width: 80vw;
        box-shadow: 2px 1px 3px rgb(0 0 0 / .09);
        animation: cardHide .4s ease-in-out;
    }
    
    .hideTitle {
        height: 20vh;
        opacity: 0%;
        animation: fadeOut .2s ease-in-out;
        transition: all .5s;
    }
}

@media (min-aspect-ratio: 21/24){
    .hideTitle {
        height: 30vh;
        opacity: 0%;
        animation: fadeOut .2s ease-in-out;
    }
    
    .showTitle {
        height: 30vh;
        opacity: 100%;
        animation: none;
    }
    
    #card {
        display: inline;
        flex-direction: auto;
        justify-content: auto;
        border-bottom-right-radius: 0vh;
        border-bottom-left-radius: 0vh;
    }
    
    .cardTitle {
        display: inline-block;
        justify-content: auto;
        align-items: auto;
        height: 15%;
        width: 40vw;
        font-size: 6.5vh;
        margin-left: 3vh;
        margin-top: 2vh;
        animation: textReveal .8s ease-in-out;
    }
    
    .cardText{
        height: 80%;
        width: 50%;
        font-size: 2.4vh;
        margin-left: 3vh;
        margin-top: 1.5vh;
        animation: textReveal .8s ease-in-out;
    }
    
    .cardShow {
        position: fixed;
        background-color: rgb(253, 250, 245);
        opacity: 100%;
        top: 34vh;
        left: 5vw;
        height: 32vh;
        width: 87vw;
        box-shadow: 2px 1px 3px rgb(0 0 0 / .09);
        animation: cardReveal2 .5s ease-in-out;
    }
    
    .cardHide {
        position: fixed;
        background-color: rgb(253, 250, 245);
        opacity: 95%;
        top: 34vh;
        left: 0vw;
        width: 87vw;
        height: 32vh;
        box-shadow: 2px 1px 3px rgb(0 0 0 / .09);
        animation: cardHide2 .5s ease-in-out;
    }
    
    .sectionShrink {
        height: 100vh;
        margin-right: 0%;
        margin-left: 0%;
        margin-top: 0vh;
        margin-bottom: 0vh;
        border-radius: 0vw;
    }

    .closeIcon {
        left: 3vh;
        bottom: 3vh;
    }
}

@media (min-aspect-ratio: 4.8/3) {
    .hideTitle {
        height: 30vh;
        opacity: 0%;
        animation: fadeOut .2s ease-in-out;
    }
    
    .showTitle {
        height: 30vh;
        opacity: 100%;
    }
    
    #card {
        display: inline;
        flex-direction: auto;
        justify-content: auto;
        border-bottom-right-radius: 0vh;
        border-bottom-left-radius: 0vh;
    }
    
    .cardTitle {
        display: inline-block;
        justify-content: auto;
        align-items: auto;
        height: 15%;
        width: 30vw;
        font-size: 7vh;
        margin-left: 4vh;
        margin-top: 3vh;
        animation: textReveal .8s ease-in-out;
    }
    
    .cardText{
        height: 80%;
        width: 50%;
        font-size: 3vh;
        margin-left: 4vh;
        margin-top: 2vh;
        animation: textReveal .8s ease-in-out;
    }
    
    .cardShow {
        position: fixed;
        background-color: rgb(253, 250, 245);
        opacity: 100%;
        top: 30vh;
        left: 5vw;
        height: 40vh;
        width: 87vw;
        box-shadow: 2px 1px 3px rgb(0 0 0 / .09);
        animation: cardReveal2 .5s ease-in-out;
    }
    
    .cardHide {
        position: fixed;
        background-color: rgb(253, 250, 245);
        opacity: 95%;
        top: 30vh;
        left: 0vw;
        width: 87vw;
        height: 40vh;
        box-shadow: 2px 1px 3px rgb(0 0 0 / .09);
        animation: cardHide2 .5s ease-in-out;
    }
}

@keyframes titleGrow {
    0%{
        height: 20%;
        padding-top: 15%;
    }
    100%{
        height: 25%;
        padding-top: 15%;
    }
}

@keyframes titleShrink {
    0%{
        height: 25%;
        padding-top: 15%;
    }
    100%{
        height: 20%;
        padding-top: 15%;
    }
}

@keyframes titleGrow2 {
    0%{
        height: 20%;
        padding-top: 13%;
    }
    100%{
        height: 25%;
        padding-top: 13%;
    }
}

@keyframes titleShrink2 {
    0%{
        height: 25%;
        padding-top: 13%;
    }
    100%{
        height: 20%;
        padding-top: 13%;
    }
}

@keyframes cardReveal {
    0%{
        opacity: 0;
        background-color: none;
    }
    50%{
        opacity: 0;
        background-color: none;
    }
    51%{
        opacity: 1;
        transform: translateY(-200%);
        background-color: rgb(253, 250, 245);
    }
    100%{
        opacity: 1;
        transform: translateY(0%);
        background-color: rgb(253, 250, 245);
    }
}

@keyframes cardHide {
    0%{
        opacity: 1;
        transform: translateY(0%);
        background-color: rgb(253, 250, 245);
    }
    51%{
        opacity: 1;
        transform: translateY(-200%);
        background-color: rgb(253, 250, 245);
    }
    50%{
        opacity: 0;
        transform: translateY(-200%);
        background-color: none;
    }
    100%{
        opacity: 0;
        transform: translateY(-200%);
        background-color: none;
    }
}

@keyframes sectionGrow {
    0%{
        height: 69vh;
        border-radius: 10vw;
    }
    80%{
        height: 100%;
        border-radius: 10vw;
    }
    100%{
        height: 100%;
        border-radius: 0vw;
    }
}

@keyframes cardReveal2 {
    0%{
        opacity: 0;
        background-color: none;
    }
    20%{
        opacity: 0;
        background-color: none;
    }
    21%{
        opacity: .7;
        width: 0vw;
        /* transform: translateX(-100%); */
        background-color: rgb(253, 250, 245);
    }
    100%{
        opacity: .95;
        width: 87vw;
        /* transform: translateX(0%); */
        background-color: rgb(253, 250, 245);
    }
}

@keyframes cardHide2 {
    0%{
        opacity: 1;
        transform: translateY(0%);
        background-color: rgb(253, 250, 245);
    }
    51%{
        opacity: 1;
        transform: translateX(-100%);
        background-color: rgb(253, 250, 245);
    }
    50%{
        opacity: 1;
        transform: translateX(-100%);
        background-color: rgb(253, 250, 245);
    }
    100%{
        opacity: 0;
        transform: translateX(-100%);
        background-color: none;
    }
}

@keyframes textReveal {
    0%{
        opacity: 0;
    }
    60%{
        opacity: 0;
    }
    70%{
        opacity: .8;
    }
    100%{
        opacity: 1;
    }
}

@keyframes paddingChange {
    0%{
        padding-bottom: 15vh;
        padding-top: 15vh;
    }
    100%{
        padding-top: 0vh;
        padding-bottom: 0vh;
    }
}