@import url('https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700|Exo:100,200,300,400,500,600,700');

/* General styles */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto; /* Allow vertical scrolling when necessary */
}


/* The Main section */
main {
    display: flex;
    flex-direction: column;
    background-image: url('https://cdn.pixabay.com/photo/2018/05/11/23/45/highway-3392100_960_720.jpg');
    background-size: cover;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
    
}

/* The Score section */
.score_timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgb(255, 255, 255);
    background-color: rgb(178, 34, 34);
    width: 100%;
    max-width: 500px;
    padding: 1px;
    border-radius: 5px;
    text-transform: uppercase;
    margin-bottom: 1px;

      
}

/* The Board of cards section */
.board {
    max-width: 100%;
    max-width: 650px;
    margin-bottom: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;

} 


.card {
    width: 130px;
    height: 90px;
    background-color: rgb(178, 34, 34);
    border-radius: 10px;
    position: relative;
    transition: all 0.4s linear;
    transform-style: preserve-3d;
    background-position: center center;
    margin: 5px;
    background-repeat: no-repeat;
    background-size: contain;
}

.cover {
    width: 100%;
    height: 100%;
    position: absolute;
    background-size: cover;
    background-position: center;
    border: 2px solid;
    border-radius: 5px;
    transition: all 400ms ease; 
}

.front {
    transform: rotateY(180deg);
}

.back {
    background-image: url('../images/lights.png');
    backface-visibility: hidden;
}

.show_card {
    transform: rotateY(180deg);
}

.disqualify_card {
    filter: saturate(0);
    opacity: 0.5;
}

/* The Headings section */
.title_game {
    color: rgb(0, 0, 0);
    text-align: center;
    letter-spacing: 0.1em;
    max-width: 90%;
}

/* The Reset section */
.reset {
    display: flex;
    align-items: center;
    color: rgb(255, 255, 255);
    background-color: rgb(178, 34, 34);
    font-size: 1.2em;
    height: 0.5px;
    padding: 15px;
    border-radius: 5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 400;
    /*margin-top: 10px;*/
    margin-bottom: 5px;
}

.reset:hover {
    color: rgb(0, 0, 0);
    background: rgb(178, 34, 34);
}

/* The Contact section */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
}

.modal-content {
    background-color: rgb(255, 255, 255);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    position: relative;
}

/**
*to hide the button 
*because i have some issue with this element, a small button was displaying on the html page, so i have to make it to be invisible
*/
.modal-content button { 
    background-color: white;
    border: 0;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.close:hover {
    color:rgb(0, 0, 0);
}

.btn_contact {
    display: inline-block;
    color: rgb(255, 255, 255);
    background-color: rgb(178, 34, 34);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 5px;
    margin: 1rem 1rem 0 0;
    cursor: pointer;
    position: absolute;
    top: 1%;
    right: 2%;
    font-size: 1.2em;
}

.btn_contact:hover {
    color: rgb(0, 0, 0);
    background:rgb(178, 34, 34);
}

.formBox {
    position: relative;
    width: 100%;
}

.formBox .row50,
.formBox .row100 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inputBox {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    width: 100%;
}

.inputBox span {
    color: rgb(178, 34, 34);
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 500;
}

.inputBox input,
.inputBox textarea {
    padding: 2px;
    font-size: 1em;
    outline: none;
    border: 1px solid #333;
}

.inputBox textarea {
    resize: none;
    margin-bottom: 1px;
}

.inputBox input[type="submit"] {
    background: rgb(178, 34, 34);
    color: rgb(255, 255, 255);
    border: none;
    font-size: 1.1em;
    max-width: 120px;
    font-weight: 500;
    cursor: pointer;
    padding: 14px 15px;
}

.inputBox input[type="submit"]:hover {
    color:rgb(255, 255, 255) ;
}

.inputBox ::placeholder {
    color: rgb(112, 110, 110);
}

/* The Media Queries for Responsiveness */

@media only screen and (max-width: 480px) {
    .btn_contact {
    font-size: 1em; 
    margin: 0.5rem 0.5rem 0 0; 
}
}

@media screen and (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .score_timer {
        font-size: 1em;
    }

    .board{
        font-size: 0.5em;
    }

    .reset {
        margin-top: 20px;
    }

    .card {
        width: 100px;/*ver isso bem amanha*/
        height: 100px;
    }

    .modal-content {
        width: 90%;
        max-width: 300px;
    }

    .close {
        top: 5px;
        right: 5px;
        font-size: 24px;
    }

    .btn_contact {
        font-size: 1em;
    }

    .inputBox input[type="submit"] {
        max-width: 100%;
    }

    .title_game h1 {
      display: none;
    }
}
