html{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #212121;
    font-size: 16px;
}

body{
    width: 100%;
    height: 100%;
    background-color: #50717b;
    margin: 0;
    padding: 0;
    scrollbar-color: grey black;
    scrollbar-width: thin;
}

body::-webkit-scrollbar
{
    display: none;
}



.main{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    height: 100%;
    width: 100%;

}

/* TOP PART */

.main-top-part{
    height: 10%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #3a4042;
    border-bottom: 1px solid #000;
    padding: 0 2rem;
}

/* Search part */
.search-left-part{
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
}

.search-container
{
    display: flex;
    justify-self: start;
    flex-direction: column;
    margin-right: 1.5rem;
    position: relative;
    padding: 15px 0 0;
    width: 50%;
    margin-bottom: 1rem;
}

/* Random Button Part */
.search-middle-part{
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.random_button{
    width: 170px;
    height: 50px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #212121;
    color: #fff;
    cursor: pointer;
    border: 3px solid #fff;
    transition: 0.2s;
    font-family: "SuperRenewable", Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    user-select: none;
}

.random_button:hover{
    color: #fff;
    background-color: #e28282;
    border: 3px solid #fff;
    font-size: 1.4rem;
    width: 190px;
    height: 60px;
    border-radius: 2rem;
}

/* Checkbox part */

.search-right-part{
    width: 40%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.checkbox-container{
    width: 150px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
    margin: 0.2rem;
}

.checkbox-title{
    margin-left: 0.5rem;
    cursor: pointer;
    user-select: none;
    font-family: "SuperRenewable", Arial, Helvetica, sans-serif;
}


/**
    Cocktails container
*/

.cocktails-container
{
    width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    box-sizing: border-box;
    top: 10%;
    left: 0;
    position: absolute;
    padding: 1rem 0;
}


/*  Cocktail */
.cocktail{
    width: 850px;
    height: 420px;
    /* background-color: #8ecccc; */
    background-color: #fff;
    margin: 0.5rem;
    border-radius: 0.5rem;
    flex: 0 0 auto;
    transition: 0.5s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: row;
    padding: 0.5rem;
}

.cocktail.active .recto{
    display: none;
}

.cocktail.active .verso{
    display: flex;
}

.cocktail:hover{
    cursor: pointer;
    /* background-color: #9bd8d8; */
    background-color: rgb(242, 254, 255);
    border: 2px solid #3a4042;
}

/*  Cocktail left part  */

.cocktail-left-part
{
    width: 40%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}



.image-container{
    width: 300px;
    height: 300px;
    border: 3px solid #3a4042;
    overflow: hidden;
    border-radius: 1rem;
}

.cocktail-image{
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: 0.5s;
}

.cocktail:hover .cocktail-image{
    scale: 1.1 1.1;
}


/*  Cocktail right part  */

.cocktail-right-part{
    width: 60%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.recto{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

/*
    TOP PART
*/

.top-part{
    width: 80%;
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid grey;
}

.cocktail-title{
    width: 100%;
    font-family: "Scrawling" ,Arial, Helvetica, sans-serif;
    font-size: 2rem;
    color: #212121;
}

/*
    MIDDLE PART
*/

.middle-part{
    padding: 0 1rem;
}

.ingredients-container{
    width: 100%;
    /* background-color: #fff; */
    border-radius: 0.3rem;
    padding: 0.2rem 0.5rem;
    box-sizing: border-box;
    margin-top: 0.5rem;
}

.ingredients
{
    font-family: "Scrawling" ,Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    color: #212121;
    margin: 0.5rem 0;
}

.quantity{
    font-weight: bold;
}

.facultatif{
    font-style: italic;
    color: #636363;
}

.bottom-part{
    padding: 0 1rem;
    width: 100%;
}

.verso{
    display: none;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.history{
    color : #212121;
    font-family: "SuperRenewable", Arial, Helvetica, sans-serif;
}

.description-container{
    padding: 0 0.5rem;
}

.description{
    color : #212121;
    font-family: "SuperRenewable", Arial, Helvetica, sans-serif;
}

.decoration-container{
    width: 100%;
    border-radius: 0.3rem;
    background-color: #3a4042;
    padding: 0.2rem 1.5rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.decoration{
    color : #fff;
    font-family: "SuperRenewable", Arial, Helvetica, sans-serif;
}

.details-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.detail{
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    padding: 0.5rem 0.7rem;
    margin: 0.3rem;
    background-color: #3a4042;
    border-radius: 0.4rem;
    font-family: "SuperRenewable", Arial, Helvetica, sans-serif;
}

.separator{
    border-bottom: 1px solid rgb(189, 189, 189);
    width: 30%;
    margin-bottom: 1rem;
}

.surbrillance
{
    /* font-weight: 500; */
    color: #e28282;
}

.nom{
    color: #e28282;
}

.hidden{
    display: none;
}






/* Bouncing checkboxes */

.checkbox {
    --background: #fff;
    --border: #d1d6ee;
    --border-hover: #bbc1e1;
    --border-active: #1e2235;
    --tick: #fff;
    position: relative;
}
.checkbox input, .checkbox svg {
    width: 21px;
    height: 21px;
    display: block;
}
.checkbox input {
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    outline: none;
    background: var(--background);
    border: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 4px;
    transition: box-shadow 0.3s;
    box-shadow: inset 0 0 0 var(--s, 1px) var(--b, var(--border));
}
.checkbox input:hover {
    --s: 2px;
    --b: var(--border-hover);
}
.checkbox input:checked {
    --b: var(--border-active);
}
.checkbox svg {
    pointer-events: none;
    fill: none;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: var(--stroke, var(--border-active));
    position: absolute;
    top: 0;
    left: 0;
    width: 21px;
    height: 21px;
    transform: scale(var(--scale, 1)) translateZ(0);
}
.checkbox.bounce {
    --stroke: var(--tick);
}
.checkbox.bounce input:checked {
    --s: 11px;
}
.checkbox.bounce input:checked + svg {
    animation: bounce 0.4s linear forwards 0.2s;
}
.checkbox.bounce svg {
    --scale: 0;
}
@keyframes bounce {
    50% {
        transform: scale(1.2);
   }
    75% {
        transform: scale(0.9);
   }
    100% {
        transform: scale(1);
   }
}
* {
    box-sizing: inherit;
}
*:before, *:after {
    box-sizing: inherit;
}


/* FANCY TEXT INPUT */

.form__field {
    font-family: inherit;
    width: 100%;
    border: 0;
    border-bottom: 2px solid #fff;
    outline: 0;
    font-size: 1.3rem;
    color: #fff;
    padding: 7px 0;
    background: transparent;
    transition: border-color 0.2s;
    font-family: "SuperRenewable", Arial, Helvetica, sans-serif;
}
.form__field::placeholder {
    color: transparent;
}
.form__field:placeholder-shown ~ .form__label {
    font-size: 1.3rem;
    cursor: text;
    top: 20px;
}
.form__label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 1rem;
    color: #fff;
    font-family: "SuperRenewable", Arial, Helvetica, sans-serif;
    margin-left: 0.5rem;
}
.form__field:focus {
    padding-bottom: 6px;
    border-width: 3px;
    border-image: linear-gradient(to right, #fff, #e28282);
    border-image-slice: 1;
}
.form__field:focus ~ .form__label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 1rem;
    color: #e28282;
}


/* height 880 px*/
@media screen and (max-height: 880px) {
    .checkbox-container{
        padding: 0.2rem;
    }
}

/* height 680 px*/
@media screen and (max-height: 684px){
    html{
        font-size: 14px;
    }

    .random_button{
        height: 40px;
    }
}

/* height 680 px*/
@media screen and (max-height: 653px) {

    .checkbox-container{
        width: 110px;
    }
}


/* width 1630 px*/
@media screen and (max-width: 1630px){
    .search-right-part{
        flex-direction: column;
        height: 100%;
        justify-content: center;
        align-items: flex-end;
    }
}

/* width 950px */
@media screen and (max-width: 950px) {
    .checkbox-container{
        padding: 0.2rem;
    }
}

/* width 900px */
@media screen and (max-width: 900px) {
    html{
        font-size: 14px;
    }
}

/* width 850px*/
@media screen and (max-width: 850px) {
    .cocktail{
        flex-direction: column;
        width: 400px;
        height: auto;
        padding: 0.8rem 0.5rem;
    }

    .cocktail-left-part{
        width: 100%;
    }
    .cocktail-right-part{
        width: 100%;
    }
}


/* width 800px */
@media screen and (max-width: 800px) {
    .main-top-part{
        flex-direction: column;
        height: 150px;
    }
    .search-left-part{
        width: 100%;
    }
    .search-middle-part{
        width: 100%;
    }
    .search-right-part{
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .cocktails-container{
        top: 170px;
    }
}

/* width 674px*/
@media screen and (max-width: 674px) {
    .main-top-part{
        height: 200px;
    }

    .cocktails-container{
        top: 210px;
    }
}


/* width 450px*/
@media screen and (max-width: 450px) {
    .cocktail{
        width: 350px;
    }
}


