
.arima {
    font-family: "Arima", system-ui;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    background-image: url("../img/background.jpeg");
    background-size: cover;
    background-repeat: no-repeat;


}

/*CSS Page Home*/
main {
    text-align: center;
}

main h2 {
    color: #ffffff;
    text-shadow: 1px 1px 1px rgb(0, 0, 0);
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 1.4em;
    font-family: "Arima", system-ui;
}

.fa-heart {
    color: red;
}

main .cards {
    display: flex;
    flex-direction: column;
    justify-content: center;


}

main .cards .card {
    width: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px auto auto;
    box-shadow: rgba(0, 0, 0, 0.67) 0px 3px 8px;


}

.card-head img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
}

.card-body {
    padding-top: 25px;
    height: 50px;
    color: #0B3948;
    background-color: #FAF6F6;


}

.card-footer {

    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #FAF6F6;
    padding-bottom: 10px;
    padding-top: 10px;
    background-color: #5F464B;

}

.cards a {
    text-decoration: none;
    color: black;
}

.card {
    text-align: center
}

/*Page details*/
.details {
    color: #000000;
    font-family: "Arima", system-ui;
}

/* Block présentation*/
.details .presentation {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    width: 80%;
    padding: 2em;
    margin: auto;
    background-color: white;
    border-radius: 10px;
}

.details .presentation .image img {
    width: 40vw;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

}

.details .description ul {
    width: fit-content;
    margin: auto;
}

.details .description ul li {
    text-align: left;
    margin: 1em;
}

.details .description ul li .star {
    color: #ff5513;
}

/* Block préparation */
.details .prepa {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    width: 80%;
    padding: 2em;
    margin: 2em auto;
    background-color: white;
    border-radius: 10px;
}

.details .prepa h2 {
    color: black;
    text-shadow: none;
}

.details .prepa h3 {
    font-size: 2em;


}

.details .prepa div {
    width: 300px;
    margin: auto auto 4em;
}

.details .prepa p {
    text-align: start;
    margin: 1em;
}

.commentaires form {
    font-family: "Arima", system-ui;
    color: white;
    width: 90%;
    padding: 40px;
    margin: 2em auto;
    background: rgba(18, 69, 89, 0.49);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0, 0, 0, .6);
    border-radius: 10px;
}

.commentaires form textarea {
    background-color: transparent;
    border: white solid;
    border-radius: 10px;
    height: 100px;
    width: 100%;
    margin-top: 20px;
}

.commentaires form div {
    display: flex;
    width: 100%;
    text-align: start;
    margin-top: 1em;
}

.commentaires form div select {
    margin-top: 20px;
    font-family: "Arima", system-ui;
    color: #ffffff;
    width: 100%;
    background-color: transparent;
    border: #dadada solid;
}

.commentaires form div label {
    position: absolute;
}

.commentaires form div button {
    font-family: "Arima", system-ui;
    background-color: transparent;
    color: #ffffff;
    border: solid 3px #598392;
    box-shadow: none;
    width: 100px;
    height: 35px;
    font-weight: bold;
    border-radius: 10px;
    padding: 5px;
    text-transform: uppercase;
}


/*Page login*/
.login-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    padding: 40px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .5);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0, 0, 0, .6);
    border-radius: 10px;
    color: white;
}

.login-box h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-align: center;
}

.login-box p {
    margin-top: 1em;
}

.login-box a {
    text-decoration: none;
    color: #ff5513;
}

.login-box .user-box {
    position: relative;
}

.login-box .user-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
}

.login-box .user-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: .5s;
}

.login-box .user-box input:focus ~ label,
.login-box .user-box input:valid ~ label {
    top: -30px;
    left: 0;
    color: #ff5513;
    font-size: 16px;
}

.login-box form button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #ff5513;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: .5s;
    margin-top: 40px;
    letter-spacing: 4px
}

.login-box button:hover {
    background: #ff5513;
    color: #fff;
    border-radius: 5px;
    border: none;
    box-shadow: 0 0 5px #ff5513,
    0 0 25px #ff5513,
    0 0 50px #ff5513,
    0 0 100px #ff5513;
}

.login-box button span {
    position: absolute;
    display: block;
}

.login-box button span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff5513);
    animation: btn-anim1 1s linear infinite;
}

@keyframes btn-anim1 {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.login-box button span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #ff5513);
    animation: btn-anim2 1s linear infinite;
    animation-delay: .25s
}

@keyframes btn-anim2 {
    0% {
        top: -100%;
    }
    50%, 100% {
        top: 100%;
    }
}

.login-box button span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #ff5513);
    animation: btn-anim3 1s linear infinite;
    animation-delay: .5s
}

@keyframes btn-anim3 {
    0% {
        right: -100%;
    }
    50%, 100% {
        right: 100%;
    }
}

.login-box button span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #ff5513);
    animation: btn-anim4 1s linear infinite;
    animation-delay: .75s
}

@keyframes btn-anim4 {
    0% {
        bottom: -100%;
    }
    50%, 100% {
        bottom: 100%;
    }
}


/*Media queries*/
@media (min-width: 768px) {
    main .cards {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    main .cards .card {
        margin: 1em;
    }

    .login-box {
        width: 400px;
    }

    .details .prepa div {
        width: 600px;
        margin: auto auto 4em;
    }

    .recette_ingredient {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 80%;
        margin: auto;
    }
}

@media (min-width: 1024px) {
    main h2 {
        font-size: 3em;
    }
}

