body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: black;
}
a {
    color: white ; 
    text-decoration: none;
}


/*Header*/

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    margin-top: -20px;
}
header h1 {
    text-align: left;
    padding-left: 10px;
    margin-top: 20px;
    color: red;
    font-size: 43px;
    font-weight: bold;

}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin-right: 10%;
    font-weight: bold;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

/*Choix de langue*/

#choice{
    background: grey;
    font-size: 15px;
    border-radius: 4px;
    font-weight: bold;
}



/*Login form*/

#head{
    border: white;
    font-size: 35px;
    font-weight: bold;
}
#loginButton{
    border: none;
    background: red;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10%;
}
#login-form{
    display: none;
    border: none;
    border-radius: 7px;
    position: absolute;
    background: rgb(19, 18, 18);
    opacity: 0.9;
    text-align: center;
    margin-top: 10%;
    margin-left:30%;
    width: 37%;
    height: auto;
    color: white;
}
#btn-rouge{
    border: none;
    background: red;
    border-radius: 8px;
    color: white;
    font-size: 20px;
    width: 30%;
}
#login-form input{
    border-radius: 6px;
    background: grey;
    color: white;
}
#remember-me{
    display: inline;
    justify-content: left;
}
#login-form a{
    color: red;
}
#remember-me p{
    display: inline;
}

/*Movies and series display*/

.list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.media {
    width: 10%;
    margin: 10px;
    text-align: center;
}

.media img {
    max-width: 100%;
    height: auto;
}

.media h2 {
    margin: 10px 0;
    text-decoration: underline;
}

.list-title {
    padding-left: 20px;
    text-decoration: underline;
    color: white;
}
section h2 {
    font-size: 16px;
    color: white;
}


/*Details on click*/

.media-details {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #b70e0e;
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 10px;
    font-size: 18px;
    width: 30%;
}
.media-details h2 {
    color: black;
    text-decoration: underline;
    font-size: 24px;
}

.img-details {
    max-width: 100%;
    height: 100%;
    margin-bottom: 10px;
}
/* Mise en forme icons */
#croix {
    margin-bottom: 8px;
    width: 30px;
}
.playbutton {
    width: 30px;
}
.close-details-button {
    position: relative;
    top: 10px;
    right: 10px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}
#close { /* close FORM*/
    background: #9c4c4c;
    font-size: 15px;
    position: absolute;
    right: 10px; 
    top: 10px; 
    cursor: pointer; 
}
footer {
    text-align: center;
}
/*Mobile changes*/

@media only screen and (max-width: 400px) {
    section h2 {
        display: none;
    }
    .media-details {
        width: 80%;
    }
    #login-form {
        width: auto;
    }
}