/* page formatting */
body {
    background-color: white;
}

header {
    background-color: black;
}

h2 {
    color: black;
    margin-left: 1.5cm;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    
}


#logo {
    /* background-color: white; */
    margin-top: 20px;
    margin-left: 5px;
    width: 200px;
    height: auto;
}

#search {
    margin-left: 2.3cm;
    height: 2cm;
    display: flex;
    align-items: center;
    max-width: 100%;
}

#search-input {
    padding: 22px 24px;
    font-size: 17px;
    width: 65%;
    height: 15%;
    border-radius: 10px;
}

#search-btn {
    padding: 14px 16px;
    font-size: 17px;
    border-radius: 10px;
}

#close-search-btn {
    padding: 14px 16px;
    font-size: 17px;
    border-radius: 10px;
}

#search-error {
    background-color: white;
    color: black;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin-left: 1.5cm;
}


footer {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* movie card text color */
.movie-title {
    /* background-color: red; */
    margin-top: 20px;
    font-weight: bold;
    color: black;
    width: 40cm;
    text-align: left;
    font-size: 24px;
    min-width: 10%;
    max-width: 90%;
}

.movie-title:hover {
    /* color: blue; */
    text-decoration: underline;
}

.movie-date {
    color: gray;
    font-size: 18px;
}

.movie-votes {
    /* background-color: yellow; */
    color: white;
    width: 3cm;
}


/* Formatting the movies on the page */
#movie-grid {
    /* background-color: gray; */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1cm;
    width: 35cm;
    padding: 2px 4px;
    border-radius: 10px;
    min-width: 10%;
    max-width: 90%;
}

.movie-card {
    /* flex: 5%;
    margin-left: 1cm;
    margin-right: 1cm;*/
    /* margin-left: 1cm;
    margin-right: 1cm;
    text-align: center; 
    display: grid;
    grid-template-columns: repeat(5, 50px);
    grid-template-rows: repeat(5, 75px);
    grid-auto-flow: dense; */
    background-color: #e5e5e5;
    /* background-color: white; */
    border-radius: 25px;
    width: 35cm;
    height: auto;
    display: flex;
    display: inline-block;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 10%;
    max-width: 100%;
}

.movie-card:hover {
    zoom: 1.10;
}

/* .movie-words {
    background-color: lightgrey;
    border-radius: 25px;
    width: 20cm;
    height: auto;
    display: inline-block;
    flex-direction: column;
    flex-wrap: wrap;
} */

#movie-description {
    font-size: 18px;
    margin-top: 10px;
    margin-left: 3cm;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

#movie-poster {
    /* background-color: blue; */
    float: left;
    border-radius: 25px;
    width: 2cm;
    height: auto;
    size: fixed;
    padding: 14px 16px;
}

.space {
    
    margin-left: auto;
    margin-right: auto;
    height: 0.5cm;
    width: 35cm;
    /* padding: 2px 4px;
    border-radius: 10px; */
}

#load-more-movies-btn {
    padding: 6px 8px;
    font-size: 10px;
    border-radius: 10px;
}

#now-playing {
    margin-left: 5cm;
}

#search-results{   
    margin-left: 5cm;   
}

/* The Modal (background) */
#modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
  }
  
/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }