/* basic css that we want to affect the whole page and remove white space */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    
}

body{
    margin: 0 auto;
    width: 100%;
    width: 100vw;
    border: 0.8rem solid rgba(247, 195, 57, 0.434); 
}

.home{
    margin: 2rem;
    /* border: 2px solid black; */
    text-align: left;
}

a{
    text-decoration: none;
    color: black;
    font-size: 3rem;
    font-family: 'Girassol', cursive;
    
}

/* rendering the buttons flex */
.flashCard__buttons{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    column-gap: 0rem;
}

/* styling for the buttons */
.open-modal{
    margin: 30px auto;
    display: block;
}

/* styling for the modal */
.Quiz-Modal{
    display: none;
    position: fixed;
    z-index: 1;
    padding: 10px 62px 0px 62px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
}


/* 
this is the tag we would mess with for responsivity 
contains styling for the group of flash cards
*/
.Quiz-content{
    border: 2px solid white;
    margin: 30px auto;
    margin-top: 11rem;
    /* padding: 10rem; */
    height: 65%;
    width: 75%;  
    /* perspective: 100px;   */
}

/* styling for the actual flash card  */
.Quiz{
    display: none;
    border: 2px solid white;
    margin: 20px auto;
    margin-top: 2rem;
    height: 85%;
    width: 80%;
    color: white;
    position: relative;
    transition: transform 1s;
    transform-style: preserve-3d;
}

/* this is styling for the span that closes the whole modal  */
.close-modal {
    color: white;
    position: absolute;
    /* we need it to be very close to the top and the right */
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}
  
.close-modal:hover,
.close-modal:focus {
    color: #999;
    cursor: pointer;
}

/* styling for the click to start on the flashcard */
.startQuizContainer{
    font-size: 67px;
}
.startQuizContainer:hover{
    color: yellow;
    text-decoration: underline;
}

/* styling for the button to get them inactive*/
.inactive {
    display: none;
}

/* general button style */
button{
    padding: 10px;
    width: 150px;
    border-radius: 5px;
    border: 2px solid rgb(232, 190, 79);
    font-size: 14px;
    background-color: rgb(235, 200, 106);
}

/* trying to hover to flip the card based on the front and back of the card */

.flash-card{
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 8.5rem;
    overflow: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    border-width: 2px;
    border-style: outset; 
    transition: transform 500ms ease-in-out;
    color: white;
    text-align: center;
}


.Quiz:hover .front-card{
    transform: rotateY(180deg);
}

.Quiz:hover .back-card{
    transform: rotateY(0);
}

.front-card{
    border-color: rgb(187, 221, 63);
    background-color: black;
    font-size: 45px;
}

.back-card{
    background-color: black;
    transform: rotateY(-180deg);
}

/* media queries */

/* ipad pro */
@media only screen and (max-width: 1024px){
    body{
        padding: 2rem;
        width: 100%;
    }
}

/* large devices and ipad */
@media only screen and (max-width: 992px), (max-width: 768px){
    .flashCard__buttons{
        grid-template-columns: repeat(2, 1fr);
    }
    .flash-card{
        width: 100%;
        height: 100%;
        padding: 3rem;
        padding-top: 5rem;
        border-width: 1px;
    }
}

/* extra small devices like iphones */
@media only screen and (max-device-width : 560px){
    .flashCard__buttons{
        grid-template-columns: repeat(1, 1fr);
    }
    .Quiz-Modal{
        padding: 10px 22px 0px 22px;
    }
    .Quiz-content{
        width: 100%;
        height: 75%;
        margin-top: 7rem;
    }
    .Quiz{
        margin: 20px auto;
        margin-top: 2rem;
    }
    .flash-card{
        width: 100%;
        height: 100%;
        padding: 6rem 4rem 4rem 4rem;
        border-width: 1px;
    }
    .back-card{
        padding-top: 10rem;
    }  
    .front-card{
        font-size: 36px;
    } 
    button{
        
        width: 75px;
        padding: 6px;
        font-size: 12px;
    }
}

/* small devices */
@media only screen and (max-width: 320px){
    .front-card{
        font-size: 30px;
        padding-left: 0.5rem;
    }
    .startQuizContainer{
        font-size: 35px;
    } 
}

