@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

html {
    background-color: white;
    color: black;
    font-family: "Quicksand", sans-serif;
    height: max-content;
}

body {
    padding: 0;
    margin: 0;
    /*height: 100%;*/
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(/images/mainbg.jpg);
    background-repeat: no-repeat;
    background-position:center;
    background-size: cover;
}

.main {
    padding: 40px;
    color: black;
    /*height: fit-content;*/
    min-height: 100vh;
}


iframe {
    border: none;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    width: fit-content;
    border-radius: 10px;
    font-size: 1em;
    padding: 10px 15px;
    cursor: pointer;
    background-color: indianred;
    color: white;
    margin: 10px 0;
}

.btn {
    background-color: indianred;
    padding: 10px 15px;
    border-radius: 10px;
    margin: 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    color: white;
    width: fit-content;
}

.btn-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.icon {
    height: 1em;
    width: 1em;
    fill: white;
}

.icon-red {
    fill: rgb(61, 0, 0);
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-items: start;
    gap: 10px;
}

.heading {
    margin-top: 40px;
    margin-bottom: 0;
    margin-left: 40px;
}

a.disabled {
    pointer-events: none;
    color: grey;
}

input{
    padding: 10px;
    border-radius: 5px;
    border: none;
    border: 1px solid gray;
}

.logo {
    border-radius: 5px;
}

.footer {
    background-color: indianred;
    height: 200px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 40px;
    padding-right: 40px;
    justify-content: space-around;
    flex-wrap: wrap;
    color: white;
}

.footer a:hover{
    color: black !important;
}

.layout {
    display: grid;
    grid-template-columns: 20% 80%;
    height: fit-content;
}

.sidebar {
    height: 100%
}

.title-container {
    background-color: indianred;
    padding: 80px;
    background-image: linear-gradient(rgba(205, 92, 92, 0.707), rgba(205, 92, 92, 0.707)), url(/images/bg.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.title {
    text-align: center;
    font-size: 3em;
    color: white;
}

.title span {
 
}

select {
    padding: 8px;
    border: 1px solid gray;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    max-width: 100%;
    -webkit-appearance: none; /* For Safari/iOS */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2220%22%20width%3D%2220%22%20viewBox%3D%220%200%20640%20640%22%3E%3Cpath%20d%3D%22M342.6%2041.4C330.1%2028.9%20309.8%2028.9%20297.3%2041.4L201.3%20137.4C188.8%20149.9%20188.8%20170.2%20201.3%20182.7C213.8%20195.2%20234.1%20195.2%20246.6%20182.7L288%20141.3L288%20498.7L246.6%20457.4C234.1%20444.9%20213.8%20444.9%20201.3%20457.4C188.8%20469.9%20188.8%20490.2%20201.3%20502.7L297.3%20598.7C303.3%20604.7%20311.4%20608.1%20319.9%20608.1C328.4%20608.1%20336.5%20604.7%20342.5%20598.7L438.5%20502.7C451%20490.2%20451%20469.9%20438.5%20457.4C426%20444.9%20405.7%20444.9%20393.2%20457.4L351.8%20498.8L351.8%20141.3L393.2%20182.7C405.7%20195.2%20426%20195.2%20438.5%20182.7C451%20170.2%20451%20149.9%20438.5%20137.4L342.5%2041.4z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position:right;
    margin: 10px 0px;
}

/* Filter */
.filter-container {
    border: 1px solid indianred;
    padding: 20px;
    margin: 10px;
    margin-top: 60px;
    margin-left: 40px;
    border-radius: 10px;
    background-color: white;
    height: fit-content;
}


.filter-form {
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 10px;
    justify-content: space-between;
}

.genre-select-group {
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;

}

.filter-form button {
    width: 100%;
    margin-top: 40px;
}

.sort-select {
    padding: 8px;
    border: none;
    border-radius: 0px;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
    max-width: 100%;
}


/* Streaming */

#streaming-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.streaming-link {
    width: fit-content;
}

/* Container */

.container {
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Card */

.card {
    display: flex;
    flex-direction: column;
    align-items: start;
    max-width: 200px;
    min-width: 200px;
    text-wrap: wrap;
    margin: 10px 30px;
}

.card img {
    width: 200px;
    height: 300px;
    border-radius: 10px;
}

.card p {
    margin: 0;
    padding: 0;
    margin-top: 5px;
}

.card h4 {
    margin: 0;
    margin-top: 5px;
}

/* Pagination */

.pagination {
    display: inline-block;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.pagination a {
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 3px;
    transition: background-color .3s;
    background-color: white;
    color: black;
    border: 1px solid lightgray;
}

.pagination a:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
  
.pagination a:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.pagination a.active {
    background-color: indianred;
    color: white;
    border-radius: 5px;
}
  
.pagination a:hover:not(.active) {
    background-color: lightgray;
}

.pagination span {
    margin: 0px 10px;
}
/* Navigation Bar */
.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 20px;
    background-color: rgb(26, 29, 33);
    flex-wrap: wrap;
    justify-content: space-around;
    flex-wrap: wrap;
    color: white;
}

.navigation {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
}

.nav-item {
    margin: 10px;
    list-style-type: none;
}

.nav-item a:hover {
    color: indianred;
}

.nav-search {
    width: 60%;
    margin: 10px 0;
}

/* Search Bar */

.searchForm {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.searchBar {
    width: 75%;
    padding: 12px 20px;
    font-size: 20px;
}

.searchButton {
    width: auto;
    margin: 0 10px;
    padding: 5px 10px;
    border: none;
    background-color: white;
    border-radius: 10px;
    font-size: 20px;
}

#search-suggestions {
  position: absolute; left: 0; right: 0; margin-top: 6px; max-height: 320px; overflow: auto;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); list-style: none; padding: 6px 0; z-index: 11;
  color: black;
}
#search-suggestions li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; cursor: pointer; }
#search-suggestions li[aria-selected="true"] { background: #f2f4f7; }
#earch-suggestions img { width: 32px; height: 48px; object-fit: cover; border-radius: 4px; }
#search-suggestions .meta { opacity: .7; font-size: .88em; }

/* Home Page */


/* Title Page */

.btn-source {
    width: auto;
    margin: 10px;
    padding: 5px 15px;
    border: none;
    background-color: white;
    border-radius: 10px;
    font-size: 20px;
}

.left img {
    max-width: 300px;
    min-width: 300px;
}

.left {
    margin-right: 20px;
}

#list-group {
position: relative;
}

#list-suggestions {
    position: absolute;
    left: -100px;
    height: 190px;
    width: 220px;
    background-color: indianred;
    z-index: 1;
    border-radius: 10px;
    padding: 5px 20px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: scroll;
    display: none;
}

#list-suggestions h3 {
    margin: 10px 0px;
}

.list-item {
    border-bottom: 1px solid lightgray;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:space-between;
    padding: 5px;
}

.list-item p {
    margin: 0
}

.list-item button {
    margin: 0;
    padding: 0;
}

/* Movie & Tv Page */
.backdrop {
    max-height: 1001vh;
    margin: 0;
    padding: 40px;
    background-attachment: fixed;
    background-size: cover;
    color: white;
}

.genreList {
    display: inline-flex;
    gap: 15px;
}

.genreList p {
    border: 1px solid rgb(205, 92, 92);
    border-radius: 30px;
    padding: 3px 10px;
    cursor: pointer;
}

.genreList p:hover {
    background-color: indianred;
}

.title-box {
    background-color: rgb(0,0,0,0.6);
    padding: 40px;
    max-width: 1100px;
    margin: 0 auto;
    color: white;
}

.title-layout {
    display: flex;
    flex-wrap:wrap;
    flex-direction: row; 
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.left-col {
    

}

.left-col img{
    height: 400px;
    
}

.right-col {
    width: 60%;
    max-height: fit-content;
}

.title-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.title-bar h1 {
    margin: 0;
}

.title-bar-info{
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.title-bar-info p {
    margin: 0;
}

.tagline {
    font-style: italic;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background-color: black;
    padding-top: 10px;
    height: 80%;
    width: 80%;
    color: white;
    display: none;
}

.modal iframe {
    height: 100%;
    width: 100%;
}

.modal span {
    position: absolute;
    right: 0;
    top: 0;  
    font-size: 2em;
    padding-right: 20px;
    padding-top: 10px;
    cursor: pointer;
}

.modal p {
    margin-left: 10px;
    font-weight: bold;
}

/* Movie */

.collection {
    background-color: lightgray;
    background-size:cover;
    background-position: center;
    height: 300px;
    border-radius: 10px;
    margin: 20px 0px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.collection h2 {
    font-size: 2em;
}

.collection button {
    border: none;
    width: fit-content;
    border-radius: 20px;
    font-size: 1em;
    padding: 10px 15px;
    cursor: pointer;
    background-color: indianred;
    color: white;
}

/* Tv Page */
.season-box {
    display: flex;
    background-color: white;
    border-radius: 20px;
    color: black;
    margin: 30px 0px;
    height: 300px;
    overflow: hidden;
}

.season-box img {
    margin: 0;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    height: 300px;
}

.season-box h2 {
    margin: 5px 0;
}

.season-box  > div:first-of-type {
    padding: 20px;
}

.season-info {
    display: flex;
    padding: 0;
    gap: 5px;
}

.season-info p{
    margin: 0;
}

/*Carousel */
.carousel-content {
    display: flex;
    flex-flow: nowrap;
    overflow-x: scroll;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    margin-bottom: 20px;
    width: 100%;
}

.carousel-content-item {
    margin: 20px;
}

.carousel-content::-webkit-scrollbar {
    display: none;
}

.carousel-container {
    display: flex;
    justify-content: start;
    align-items: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}


.scroll-button {
    color: white;
    font-size: 1.2em;
    z-index: 1;
}

.left-button {
    margin-right: 10px;
}

.right-button {
    margin-left: 10px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 0.75rem;
}

/* Person */
.bio-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}


.bio-info-item p:first-of-type {
font-weight: bold;
}

.bio-info-item p {
    margin: 0;
}

/* Login */
.auth-container {
    margin: 0 auto;
    width: 50%;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
    width: 100%;
}

/* Profile */
.profile-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding: 40px;
    color: white;
    background-color: rgba(205, 92, 92, 0.707);
    background-image: linear-gradient(rgba(205, 92, 92, 0.707), rgba(205, 92, 92, 0.707)), url(/images/bg.jpg);
    background-repeat: no-repeat;
    background-position:center;
    background-size: cover;
}

.profile-layout img {
    width: 200px;
    height: auto;
    border-radius:100%;
}

.profile-main {
    padding: 40px;
    height: fit-content;
    background-color: white;
}

.profile-nav {
    background-color: white;
    color: black;
    border-bottom: 1px solid lightgray;
}

/* Lists */
.h-card {
    display: flex;
    flex-direction: row;
    border: 1px solid lightgray;
    border-radius: 20px;
    gap: 20px;
    margin: 20px 0px;
}

.h-card img {
    height: 270px;
    width: 170px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.h-card-description {
    padding: 20px;
}

.h-card-options {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0px;
}

.form input {
    font-size: 15px;
}

.form select {
    padding: 8px;
    border: 1px solid gray;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    max-width: 100%;
    -webkit-appearance: none; /* For Safari/iOS */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2220%22%20width%3D%2220%22%20viewBox%3D%220%200%20640%20640%22%3E%3Cpath%20d%3D%22M342.6%2041.4C330.1%2028.9%20309.8%2028.9%20297.3%2041.4L201.3%20137.4C188.8%20149.9%20188.8%20170.2%20201.3%20182.7C213.8%20195.2%20234.1%20195.2%20246.6%20182.7L288%20141.3L288%20498.7L246.6%20457.4C234.1%20444.9%20213.8%20444.9%20201.3%20457.4C188.8%20469.9%20188.8%20490.2%20201.3%20502.7L297.3%20598.7C303.3%20604.7%20311.4%20608.1%20319.9%20608.1C328.4%20608.1%20336.5%20604.7%20342.5%20598.7L438.5%20502.7C451%20490.2%20451%20469.9%20438.5%20457.4C426%20444.9%20405.7%20444.9%20393.2%20457.4L351.8%20498.8L351.8%20141.3L393.2%20182.7C405.7%20195.2%20426%20195.2%20438.5%20182.7C451%20170.2%20451%20149.9%20438.5%20137.4L342.5%2041.4z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position:right;
    margin: 10px 0px;
}

.form h2 {
    margin-bottom: 0;
}

.form textarea {
    resize: none;
    font-size: 15px;
}
/*Messages */
#message-container {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2;
}

.message {
    padding: 10px;
    width: 100%;
}

.success {
    background-color: rgba(83, 219, 83, 0.9);
}

.error {
    background-color: rgba(242, 68, 68, 0.9);
}

/* Signup */
#usererror {
    margin: 0
}