@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    
}

.hide{
    opacity: 0;
    transition: opacity 1s ease;
}

body{
    font-family: 'Rubik';
    font-weight: 400;
    font-size: 16px;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    hyphens: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1080px){
    body{
        font-size: 18px;
    }
}




a{
    color: #00c347;
    text-decoration: none;
    font-weight: bolder;
}

h1,h2,h3,h4,h5{
    font-weight: 700;
}

.title{
    color: #00c347;
    font-size: 1.6em;
    margin: 0;
}

@media (min-width: 375px){
    .title{
        font-size: 2em;
    }
}

.bold{
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.body-con{
    width: 100%;
    top: 0;
    left: 0;
}

.header-con{
    display: flex; 
    flex-flow: row wrap;
    justify-content: space-between;
    margin: 1em 1em 0.5em 1em;
}

.title-con{
    padding-right: 1em;
}

.menu-con{
    padding-left: 1em;
    padding-right: 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
    padding-top: 1em;
    padding-bottom: 1em;
}

@media (min-width: 515px){
    .menu-con{
        flex-grow: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}


.menu-con li{
    list-style-type: none;
    flex-grow: 1;
    align-self: auto;
    color: #ff86a4;
}

.menu-con li:hover, .menu-con li:focus, .menu-con .active{
    color: #00c347;
    cursor: pointer;
}



#menu-about:hover, #menu-game-one:hover, #menu-game-two:hover{
    color: #00c347;
}



#about, #game-two, #rules-2 {
    display: none;
}

.main-con{
    margin-left: 1em;
    margin-right: 1em;
    margin-bottom: 1em;
}

.main-inner{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-con{
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: center;
    overflow: auto;
    overflow-x: hidden;
}

@media (min-width: 786px){
    #card-con-1{
        height: calc(100vh - 265px);
    }
    #card-con-2{
        height: calc(100vh - 319px);
    }
}


/* add wrapping here for mobile! */



.or{
    margin: 0.5em;
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 30px;
}




.card-set{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 425px){
    .card-set{
        flex-wrap: nowrap;
    }
}

@media (min-width: 911px){
    .or{
        width: unset;
    }
    
}

.subquestion{
    text-align: center;
}

.subquestion h1{
    margin: 0.25em;
}

.new-cards-button{
    padding: 0.5em;
    text-align: center;
    background-color: #ff86a4;
    justify-self: flex-end;
    cursor: pointer;
    border-radius: 3px;
}

@keyframes jump{
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}


.new-cards-button:active{
    background-color: #00c347;
    animation: jump 200ms;
}

@media (min-width: 786px){
    .new-cards-button:hover{
        background-color: #00c347;
        
    }
}

.new-cards-button h2{
    margin: 0;
    color: white;
}

/* Game 2 */

.game-title h1{
    margin: 0;
    font-size: 2.2em;
    text-align: center;
}



.about-paragraph{
    max-width: 600px;
    text-align: center;
    font-size: 1.1em;
}

/* */
.description-con{
text-align: center;
font-size: 1.2em;
margin: auto;
margin-top: 2em;
margin-bottom: 2em;
max-width: 600px;
}

.description-con ol{
    list-style-position: inside;
    padding: 0;
    margin: 0;
}

.description-con li{
    padding: 5px;
}

#scroll-down{
    display: none;
}

@media (min-width: 786px){
    #scroll-down{
        display: block;
        position: absolute;
        bottom: 1em;
        right: 2em;
        color: rgba(0, 0, 0, 0.5);
        font-size: 0.8em;  
        cursor: pointer; 
    }
}

/*CARD DESIGNS*/

@keyframes exit{
    100%{transform: translateX(calc(-100vw));}
}

@keyframes enter{
    0%{
        transform: translateX(calc(100vw));
    }
    100%{transform: translateX(0);}
}

@keyframes enter2{
    0%{
        transform: translateX(calc(100vw));
    }
    33%{
        transform: translateX(calc(100vw));
    }
    100%{transform: translateX(0);}
}

@keyframes enter3{
    0%{
        transform: translateX(calc(100vw));
    }
    50%{
        transform: translateX(calc(100vw));
    }
    100%{transform: translateX(0);}
}

.card-margin{
    position: relative;
    box-sizing: border-box;
    /*animation: exit 1s cubic-bezier(0.9, 0.01, 1, 1) forwards;*/
    /*animation: enter 1s cubic-bezier(0, 0, 0.41, 1.15) forwards;*/
}



.card{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: auto;
    margin: 0.5em;
    background-color:white;
    border: 5px solid black;
    border-radius: 10px;
    box-sizing: border-box;
    -webkit-box-shadow: -8px 3px 12px -5px rgba(0,0,0,0.34);
    -moz-box-shadow: -8px 3px 12px -5px rgba(0,0,0,0.34);
    box-shadow: -8px 3px 12px -5px rgba(0,0,0,0.34);
    overflow: hidden;
    text-align: center;
    cursor: pointer;
}



.front{
    z-index: 200;
    transform: rotateX(0) rotateY(0);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    
}

.back{
    z-index: 100;
    transform: rotateY(-179deg);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
}

.card img{
    position: absolute;
    width: 102%;
    bottom: -1px;
    left: -1px;
    z-index: 1;
}

.card-title{
    position: absolute;
    height: 4em;
    top: 3em;
    width: 100%;
    z-index: 2;
    display:flex;
    flex-direction: column;
    justify-content: center;
    -webkit-hyphens: manual;
    -moz-hyphens: manual;
    hyphens: manual;
    
}

.game-two-lead{
    position: absolute;
    top: 30%;
    padding: 0.25em;
    width: 100%;
    z-index: 2;
    font-size: 1.3em;
    font-weight: 500;
    transform: translateY(-50%);
    -webkit-hyphens: manual;
    -moz-hyphens: manual;
    hyphens: manual;
}

.card-question{
    color: white;
    font-weight: 600;
    font-size: 1.4em;
    padding: 0.5em;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.card-question-2{
    color: white;
    font-weight: 600;
    font-size: 1em;
    padding: 0.5em;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#pink-card-back{
    background-color: #ff86a4;
}
#blue-card-back{
    background-color: #005cff;
}
#green-card-back{
    background-color: #00c347;
}

.left{
    background-color: #005cff;
}

.right{
    background-color: #00c347;
}

.pink{
    color: #ff86a4;
}

.green{
    color:  #00c347; 
}

.blue{
    color: #005cff;
}

/*ADD SOME WINDOW SIZE BREAKPOINTS HERE*/
.card h2{
    margin: 0;
    font-size: 1.5em;
    font-weight: 900;
}

.card h4{
    margin: 0;
    font-size: 1.4em;
}

.card-sub{
    position: absolute;
    width: 100%;
    z-index: 2;
}


.card-top{
    top: 1em;
}

.card-bottom{
    top: 7em;
}

.small{
    font-size: 1em;
}

.big{
    font-size: 1.5em;
}

.medium{
    font-size: 1.2em;
}

.hover_info{
    display: none;
}

@media (min-width: 786px){
    .hover_info{
        height: 80px;
        width: 80px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        pointer-events: none;
        text-align: center;
        border-radius: 40px;
        background-color: #005cff;
        color: white;
        margin: 0;
        display: flex;
        opacity: 0;
        flex-direction: column;
        justify-content: center;
        transition: opacity 200ms;
    }
}
