/*--------------------------------------------------------
common CSS
---------------------------------------------------------*/

html,
body {
    height: 100%;
    /* color: #3e555b; */
    color: #eff1f3;
    /* text-shadow: 1px 1px 2px #FDDB91; */
    background-image: url(../image/salle_cinéma.jpg);
    background-size: cover;


}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Oxygen', sans-serif;
    font-size: 1rem;

}

h1 {
    font-size: 1.6rem;
}

header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #eff1f3;
    text-shadow: 1px 1px 1px black;
    height: 70px;
    width: 100%;
    padding: 0.5rem;
    background-color: rgba(125, 20, 20, 0.5);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.header_element {
    width: 30%;
}

#header_element_middle {
    text-align: center;
}

#header_element_right {
    text-align: right;
}

#email_logo,
#linkedin_logo,
#github_logo {
    height: 45px;
    max-width: 100%;
}


footer {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    font-size: 0.8rem;
    color: #eff1f3;
    height: 70px;
    width: 100%;
    padding: 0.5rem;
    background-color: rgb(125, 20, 20, 0.5);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);

}

.main_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;

}


/*--------------------------------------------------------
score counter
---------------------------------------------------------*/


.score_count_container {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    top: 7%;
    width: 200px;
    padding-top: 0.5%;
    padding-bottom: 0.5%;
    padding-right: 0.5%;
    background-color: rgb(125, 20 ,20);
    color: #eff1f3;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 10px 0px 0px 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);

}

#score_count_rounds {
    margin-top: 5px;
    font-size: 1rem;
    font-weight: 400;
}

.score_count_container-hidden {
    visibility: hidden;
    position: absolute;
    height: 0;
    width: 0;

}

/*--------------------------------------------------------
Initial hidden elements
---------------------------------------------------------*/

.title_info_container-hidden {
    visibility: hidden;
    position: absolute;
    height: 0;
}

.title_info_container {
    visibility: visible;
    text-shadow: 2px 2px 2px black;
}

.main_image_container-hidden {
    visibility: hidden;
    position: absolute;
    height: 0;
}

.main_image_container {
    visibility: visible;
}

.form_halfdecade_input_check[type="radio"] {
    display: none;
}

.round_option_container-hidden {
    visibility: hidden;
    position: absolute;
    height: 0;
    width: 0;

}

.round_option_container {
    visibility: visible;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: static;
    width: 100%;
    margin-top: 5%;
    color: #eff1f3;
    text-shadow: 1px 1px 1px black;

}

.round_option_container p {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    width: 25%;
    height: 30px;  
}

.round_option_container p {
    width: 100%;
}

.result_container-hidden {
    visibility: hidden;
    position: absolute;
    height: 0;
    width: 0;
}

.result_container {
    visibility: visible;
    position: absolute;
    top: 25%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    text-align: center;
    justify-content: space-between;
    width: 40%;
    color: #eff1f3;
    text-shadow: 2px 2px 2px black;
    border-radius: 5px 50px 5px 50px;
    background: rgba(180, 180, 180, 0.3);
    box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.3);

}

.result_container p {
    height: 50px;
    width: 100%;
    align-content: center;
    font-size: 1.5rem;
}

#result_container_return_button {
    height: 50px;
    width: 100%;
    align-content: center;
    align-self: center;
    font-size: 1.2rem;
}

#start_again_button {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-end;
    position: absolute;
    left: 0;
    top: 7%;
    padding: 0.5%;
    background-color: rgb(248, 128, 29);
    color: #eff1f3;
    text-shadow: 1px 1px 1px black;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 0px 10px 10px 0px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);

}

#start_again_button-hidden {
    visibility: hidden;
    position: absolute;
    height: 0;
    width: 0;
}

@media (hover : hover) {
    #result_container_return_button:hover {
        background-color: rgb(248, 128, 29);
        border-radius: 0px 0px 5px 50px;
    }
}





/*--------------------------------------------------------
form
---------------------------------------------------------*/

/* #main_options_selection_container {
    position: static;
    width: 50%;
    color: #eff1f3;
    text-shadow: 1px 1px 1px black;
    border-radius: 0px 0px 10px 10px;
    background: rgba(180, 180, 180, 0.3);
    box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.3);

} */

.form {
    width: 50%;
    color: #eff1f3;
    text-shadow: 1px 1px 1px black;
    border-radius: 0px 0px 10px 10px;
    background: rgba(180, 180, 180, 0.3);
    box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.3);
}

.form-hidden {
    visibility: hidden;
    position: absolute;
    height: 0;
    width: 0;
}

.form_option_container {
    position: static;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form_option_input_container {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    /* color: rgb(0, 0, 0); */
    width: 20%;
    height: 50px;  
}

.button_halfdecade_validate,
.form_halfdecade_text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 0px 0px 10px 10px;
    /* color: rgb(0, 0, 0); */
    width: 100%;
    height: 60px;  
}

.form_halfdecade_text,
.round_option_container p {
    margin-top: 1%;
    font-weight: 700;
}

/* .button_halfdecade_validate {
    bottom: 0px;
} */


.win_lost_container-visible,
.button_next_validate {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    width: 35%;
    height: 40px;

}

.button_next_validate {
    background-color: rgb(248, 128, 29);
    font-weight: 700;
    text-shadow: 2px 2px 2px black;
    border-radius: 10px 10px 10px 10px;
    box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.308);

}

.button_next_validate-hidden {
    visibility: hidden;
    position: absolute;
    height: 0;
    width: 0;
}


.form_halfdecade_input_check[type="radio"]:checked + .form_option_input_container {
    background-color: #F8801D;
    color: white;
    border-radius: 10px 10px 0px 0px;
    font-weight: 700;
}

.round_option_container_choice {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    width: 25%;
    height: 30px;  
}


.round_option_container_choice {
    background-color: transparent;

}

.round_option_container_choice-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    width: 25%;
    height: 30px; 
    background-color: #F8801D;
    border-radius: 10px 10px 0px 0px;

}

#round_option_container_choice_1-selected {
    background-color: #F8801D;
    color: white;
    border-radius: 10px 10px 0px 0px;
    font-weight: 700;
}

#round_option_container_choice_1 {
    background-color: transparent;
    border-radius: 0px 0px 0px 0px;
    font-weight: 400;
}


@media (hover: hover) {

    .form_option_input_container:hover {
        background-color: #F8801D;
        color: white;
        border-radius: 10px 10px 0px 0px;
        font-weight: 700;

    }

    .round_option_container_choice:hover {
        background-color: #F8801D;
        color: white;
        border-radius: 10px 10px 0px 0px;
        font-weight: 700;

    }
    
    .button_halfdecade_validate:hover {
        background-color: #F8801D;
    
    }
   
    .button_next_validate:hover {
        background-color: rgb(125, 20 ,20);

    }

    
}




/*--------------------------------------------------------
Duel
---------------------------------------------------------*/

.duel .main_container h2 {
    margin-top: 5%;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;

}

.duel .main_container h3 {
    margin-top: 2%;
    font-size: 1.4rem;
    font-weight: 400;
    text-align: center;

}

.duel .main_image_container {
    display: flex;
    align-items: flex-start;
    text-align: center;
    width: 90%;
    justify-content: center;

}

#duel_image_container_title_left,
#duel_image_container_title_right {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 2px black;
    height: 50px;
    margin-bottom: 0.8%;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.duel #winnerDate {
    visibility: hidden;
    width: 0px;
}

.duel .win_lost_container-hidden {
    visibility: hidden;
    height: 0px;

}

.duel .win_lost_container-visible {
    display:flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    margin-top: 0.5%;
    margin-bottom: 0.5%;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 1px 1px 1px black;
    
}

.duel .movie_release_date-hidden {
    visibility: hidden;
    height: 0;
}

.duel .movie_release_date-visible {
    visibility: visible;
    position: absolute;
    bottom: 200px;
    width: 100%;
    font-size: 2.3rem;
    font-weight: 700;
    color: yellow;
    text-shadow: 2px 2px 2px black;
    backdrop-filter: brightness(0.5);
}


.duel .duel_image_container {
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

}

.duel .middle_image_container {
    align-self: center;
    max-height: 80px;
}

.duel .duel_image_container_compo {
    position: relative;
    display: inline-block;
}


.duel .duel_image_container_compo img {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.duel .blurry_item {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15%;
    backdrop-filter: blur(10px);

}


.duel .form_next {
    width: 100%;
    text-align: center;

}

.duel .form_option_container_invisible {
    visibility: hidden;
    height: 0;

}


@media (hover: hover) {
    .duel .duel_image_container img:hover {
        box-shadow: 0px 4px 60px rgba(0, 0, 0, 0.315);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(5px);

        /* border: solid orangered 7px;
        border-radius: 10px 10px 10px 10px; */

    }
}




/*--------------------------------------------------------
viewport height <900
---------------------------------------------------------*/


@media only screen and (max-height: 900px) {

    .duel .duel_image_container_compo img {
        height: 450px;

    }

    .form {
        width: 75%;
        margin-top: 0;

    }


}




/*--------------------------------------------------------
viewport tablet < 834px
---------------------------------------------------------*/


@media only screen and (max-width: 834px) {

    body {
        background-image: url(../image/salle_cinéma_820x1180.jpg);
    }

    .duel .main_container h2 {
        margin-top: 3%;
    }

    .form {
        width: 100%;

    }

    .duel .main_image_container {
        margin-top: 2%;
        width: 100%;
        justify-content: space-around;

    }

    #duel_image_container_title_left,
    #duel_image_container_title_right {
        height: 100px;
        font-size: 1.2rem;
    }

    .duel .duel_image_container_compo img {
        height: 480px;
    }
    
    .duel .main_container h1, h2 {
        font-size: 1.5rem;
    
    }

    .duel .movie_release_date-visible {
        font-size: 2rem;
    }
   
    .duel .middle_image_container {
        visibility: hidden;
        width: 0px;
        height: 0px;

    }

    .score_count_container {
        top: 7%;
        width: 160px;
    }

    .result_container {
        width: 60%;
        height: 25%;
        padding: 1%;

    }

}


/*--------------------------------------------------------
viewport mobile < 430px
---------------------------------------------------------*/


@media only screen and (max-width: 430px) {

    body {
        background-image: url(../image/salle_cinéma_360x800.jpg);
    }

    header {
        padding: 0.2rem;
        font-size: 1.1rem;
        font-weight: 700;
    
    }

    header,
    footer {
        height: 50px;
    }
      
    #header_element_middle {
        text-align: center;
    }
    
    #header_element_right,
    #header_element_left {
        font-size: 0.65rem;
        font-weight: 400;
    }

    #email_logo,
    #linkedin_logo,
    #github_logo {
        height: 20px;
        max-width: 100%;
    }
      
    .duel .duel_image_container_compo img {
        height: 250px;
    }

    .duel .duel_image_container {
        width: 49.5%;
    }

    .duel .main_container h2 {
        font-size: 1rem;
        margin-top: 5%;
    }

    .duel .main_container h3 {
        margin-top: 2%;
        font-size: 0.8rem;
        font-weight: 400;
        text-align: center;
    }

    .footer {
        font-size: 0.7rem;
    }

    .form {
        width: 90%;
        margin-top: 10%;
        border-radius: 10px 10px 10px 10px;

    }

    .form_option_input_container {
        font-size: 1.1rem;
        width: 100%;
        height: 40px;  
    }

    .form_halfdecade_input_check[type="radio"]:checked + .form_option_input_container {
        background-color: #F8801D;
        color: white;
        border-radius: 0 0 0 0;
        font-weight: 700;
    }

    .button_halfdecade_validate,
    .form_halfdecade_text {
        font-size: 1.2rem;

    }

    .round_option_container {
        margin-top: 15%;
    }

    .form_option_container {
        justify-content: space-around;
    }


    .duel .main_image_container {
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
        justify-content: space-around;

    }

    #duel_image_container_title_left,
    #duel_image_container_title_right {
        height: 65px;
        font-size: 0.9rem;
    }
    
    .duel .main_container h1 {
        font-size: 1.1rem;
    
    }

    .duel .movie_release_date-visible {
        font-size: 1.4rem;
        bottom: 80px;
    }
   
    .score_count_container {
        top: 85%;
        height: 5%;
        width: 100%;
        justify-content: space-evenly;
        font-size: 1rem;
        border-radius: 0 0 0 0;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    }

    #score_count_rounds {
        margin-top: 0;
    }

    #start_again_button {
        top: 75%;
        font-size: 0.75rem;
        padding: 1.5%;
        height: 5%;

    }

    .duel .win_lost_container-visible,
    .button_next_validate {
        margin-top: 1%;
        width: 50%;
        font-size: 0.9rem;
        height: 5%;
        
    }

    .result_container {
        width: 75%;
        height: 40%;
        padding: 1%;

    }

    .result_container p {
        font-size: 1.2rem;

    }


    



}


/*--------------------------------------------------------
viewport smartwatch < 200px
---------------------------------------------------------*/


@media only screen and (max-width: 200px) {}





