body {
    background-color: rgb(11, 11, 11);
}

/* header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 50px 100px;
}

header>div {
    display: flex;
    flex-flow: row wrap;

    justify-content: center;
    align-items: center;

    margin: 30px;
}

#logoimage {
    width: 4em;
    height: 4em;
    margin: 20px;
}

h1 {
    font-size: 5em;
    font-weight: 600;
    color: rgb(35, 88, 168);
}

#search-form {

    width: 30%;
    height: 70%;

    display: flex;
    flex-flow: row nowrap;

    justify-content: center;
    align-items: center;


}

#search-form>#searchimg {
    width: 3em;
    height: 3em;
    background-color: transparent;
    margin-right: 0.5em;
}

#search-form>#search {
    width: 100%;
    height: 3em;
    background-color: transparent;
    border: solid 1px gray;
    border-radius: 5px;
    padding: 10px;
    color: whitesmoke;
}

/* section */
section {

    color: whitesmoke;

    margin: 100px;
    overflow: hidden;
}

section>h2 {
    font-size: 3em;
    margin-top: 100px;
    margin-bottom: 80px;
}

#movie-container, #recommend {
    display: flex;
    flex-wrap: wrap;
    justify-content:space-around;
}

.movie-card {
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;

    display: flex;
}

.movie-poster {

    width: 500px;
    height: 750px;
    
    margin: 10px;
    border-radius: 5px;
    transition: opacity 0.3s ease;
    box-shadow: 5px 5px 10px rgba(82, 82, 82, 0.5);

}

.movie-info {
    position: absolute;
    transform: translate(0, -100%);

    width: 500px;
    height: 780px;
    padding: 20px;
    margin: 10px;

    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 5px 5px 10px rgba(82, 82, 82, 0.5);

    color: whitesmoke;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity 0.3s ease;

}

.movie-info>.movie-title,
.movie-overview,
.movie-rating {
    padding: 20px;
    margin: 5px;
}

.movie-title {
    font-size: 40px;
    font-weight: bold;
    color: rgb(35, 88, 168);
    margin-bottom: 20px;
}

.movie-overview {
    font-size: 16px;
    margin-bottom: 20px;
}

.movie-rating {
    font-size: 24px;
}

.movie-card,:hover > .movie-poster {
    opacity: 0.9;
  }
  
  .movie-card,:hover > .movie-info {
    opacity: 1;
    cursor: pointer;
  }

/* recommend */


/* footer */
footer {

    color: whitesmoke;
    font-size: 3ch;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

}

footer>img {
    margin-right: 10px;
    width: 1em;
    height: 1em;
}