html {
    background-color: black;
}

head, body {
	overflow-x: hidden;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('/static/assets/fon.png');
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    padding: 10px;
    position: relative;
    z-index: 10;
    display: flex;
    gap: 16px;
    align-items: center;
    height: 76px;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    padding: 10px;
    position: relative;
    gap: 16px;
    height: 76px;
    margin: 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    margin-top: 50%;
    border: 5px solid white;

}

.movie-details{
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
    margin-left: 5%;
    background-color: #FFF;
    margin-right: 5%;
    padding-left: 100px;
    padding-bottom: 2%;
    padding-top: 1%;
    border-radius: 10px;
}

.movie-details-desc{
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
    background-color: #FFF;
    padding-left: 100px;
    padding-bottom: 2%;
    padding-top: 1%;
    border-radius: 10px;
}

#movie-reviews {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    background-color: #FFF; 
    padding: 20px; 
    border-radius: 10px;
}

.movie-review {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    
}

.movie-review img {
    max-width: 100px;
    height: auto;
    margin-right: 10px; 
    align-items: center;
}

.movie-review h4{
    width: 80%;
    margin: 0 auto;
    align-items: center;
    margin-right: 20%;
    display: flex;
    position:relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.movie-review h5{
    width: 100%;
    margin: 0 auto;
    align-items: center;
    margin-left: -10%;
    margin-top: 5%;
    color: gray;
    display: flex;
    position:relative;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}


.movie-review p {
    margin: 0;
    text-align: center;
}



.movie-poster{
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
}

.movie-poster{
    flex: 0 0 auto;
    width: 200px;
    margin-right: 20px;
}

.movie-poster img{
    max-width: 100%;
    border-radius: 10px;
}

.movie-details .movie-info {
    font-size: 12px;
    flex: 1;
    color: white;
    font-family:Arial, Helvetica, sans-serif;
	font-size: 24px;
	color: black;
    font-weight: 500;
}

.movie-details .movie-info h1{
    color: black;
    font-size: 24px;
    flex: 1;
}
p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    font-size: 20px;
}


.logo {
    text-align: center;
    max-width: fit-content;
    height:fit-content;
    position: relative;
    justify-content: center;
    justify-items: center;
    pointer-events: none;
    
}

.logo{
    display: flex;
    justify-content: center;
    text-align: center;
}

.logo:hover{
    cursor: pointer;
}

.logo_id:hover{
    cursor: pointer;
}

.text_header:hover{
    cursor: pointer;
}


.logo_id {
    width: 64px;
    image-rendering: pixelated;
}

.text_header {
    color: white;
    justify-content: center;
    justify-items: center;
    text-align: center;
    display: block;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 32px;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 1em, #e5ff00 1em, #ffffff 50%), repeating-linear-gradient(45deg, #ffffff, #ffffff 1em, #FFF 1em, #fffb00 50%);
    background-size: 3em 3em, 2em 2em;
    animation-name: ani;
    animation-duration: 10s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    padding-top: 6%;
}

.buttons{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

.player-section, .player-section-desc h2{
    color: white;
    padding-left: 30px;
}


a {
    color: white;
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    position: relative;
}


a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e5ff00;
    transition: width 0.3s ease-in-out; 
}


a:hover::after {
    width: 100%;
}

a:hover {
    cursor: pointer;
    animation-name: glowing;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

li{
    margin: 0;
    padding: 0;
}


.search-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#search-form {
    display: flex;
}

iframe{
    margin-top: 5%;
    
    display: grid;
    place-items: center;
}

.player{
    display: flex;
    justify-content: center;
    align-items: center;
}


::placeholder {
    color: white;
    font-weight: 400;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-style: bold;
    opacity: 1; /* Firefox */
}
  
::-ms-input-placeholder { /* Edge 12 -18 */
    color: rgb(0, 0, 0);
}

#search-input {
    padding: 10px;
    flex: 1;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    background-color: transparent;
    color: white;
    font-weight: 400;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-style: bold;
    border-bottom: 1px solid #ffee00fb;
}
#search-input:focus {
    outline: none;
}

button {
    border: none;
    background-color: yellowgreen;
    color: yellow;
    font-size: 18px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.movies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.movies-result {
    gap: 20px;
    width: 100%;
}

.movie-item {
    position: relative;
    flex-direction: column;
    background-color: white;
    padding: 20px;
    align-items: center;
    color: black;
    border-radius: 10px;
    margin-bottom: 3%;
    cursor: pointer;
}

.movie-item img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.movie-item h3:last-of-type {
    margin-left: 20%;
    padding-top: -30%
    
}



.movie-card{
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    text-align: center;
}

#filter-form > button, #pagination-buttons > button{
    border: none;
    background-color: yellowgreen;
    color: yellow;
    border-radius: 2px;
    font-size: 18px;
    cursor: pointer;
}

#pagination-buttons {
    padding-top: 5%;
    text-align: center;
    margin: 0 auto;
}



/* styles.css */
.user-menu {
    position: relative;
    display: inline-block;
}

#user-menu-button:hover{
    color: red;
}

#user-menu-button {
    cursor: pointer;
}

.movie-info h3, p {
    color: black;
}

.movies > p{
    margin-left: 5%;
    color: white;
}

#user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

#user-menu-dropdown a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

#user-menu-dropdown a:hover {
    background-color: #f1f1f1;
}

#pagination-buttons {
    display: none;
}

.movie-item p, h3{
    color: black;
}


.menu-container {
    position: relative;
}

.menu-toggle {
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    top: 10px;
    right: 10px;
    z-index: 1000;
}


.side-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: #000;
    color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    z-index: 999;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu ul li {
    margin: 20px;
}

.side-menu ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

.side-menu ul li a:hover {
    color: #e5ff00;
}


.side-menu.open {
    right: 0;
}



.main_page {
    padding: 20px;
    color: white;
    background: #111;
    font-family: 'Trebuchet MS', Arial, sans-serif;
}


.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 50%;
}

.hero-title {
    font-size: 48px;
    margin: 0;
    color: #e5ff00;
}

.hero-description {
    font-size: 18px;
    margin: 20px 0;
    color: white;
}

.cta-button {
    padding: 10px 20px;
    font-size: 16px;
    color: black;
    background-color: #e5ff00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.hero-image {
    max-width: 40%;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    height: auto;
    animation: slideInFromRight 2s ease-in-out forwards;
}

.movie-of-the-time {
    position: relative;
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
    background: #222;
    border-radius: 10px;
}

.movie-of-the-time {
    padding: 20px;
    background-color: #111;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 800px;
}

.featured-movie {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.movie-preview {
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.movie-preview:hover {
    transform: scale(1.05);
}

.movie-frame {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.movie-info-main {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    text-align: center;
}

.movie-title {
    font-size: 24px;
    color: #e5ff00;
    margin-bottom: 5px;
}

.movie-description {
    font-size: 16px;
    color: #ddd;
}

.movie-slideshow {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.slideshow-image {
    width: 30%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.slideshow-image:hover {
    transform: scale(1.1);
}

.carousel-container {
    position: relative;
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
    background: #222;
    border-radius: 10px;
    margin-bottom: 100px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    padding-bottom: 50px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 30%;
    margin: 10px;
    height: 550px;
    background: #333;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.carousel-slide {
    transform: scale(0.8);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.carousel-slide:hover {
    transform: scale(1);
}


.carousel-slide img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;

}

.carousel-slide h3 {
    font-size: 30px;
    color: white;
    margin: 10px 0 0;
    height: 50%;
    justify-content: center;
}

.carousel-slide p {
    font-size: 14px;
    color: #ddd;
}


.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-button:hover {
    background: #e5ff00;
    color: black;
    box-shadow: 0 0 10px #e5ff00;
}




.movie-card img{
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    cursor: pointer;
}

.user_name{
    color: gold;
    font-weight: 600;
}


@keyframes ani {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 0;
    }
}

@keyframes glowing{
    from{
        text-shadow: 0px 0px 0px white;
        filter:drop-shadow(color = white, offx = 0, offy = 0);
    }
    to{
        text-shadow: 2px 2px 10px white;
        filter:drop-shadow(color = white, offx = 5, offy = 5);
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%); /* Начинаем за пределами экрана справа */
        opacity: 0; /* Прозрачность 0 */
    }
    to {
        transform: translateX(0); /* На финальной позиции */
        opacity: 1; /* Полностью видимый */
    }
}


@media (max-width: 450px){
    li{
        list-style: none;
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .player-section-desc{
        width: auto;
        justify-content: center;
        text-align: center;
        display:inline-block;
        align-items: center;
        margin-top: 20px;
        margin-left: 5%;
        padding-bottom: 2%;
        padding-top: 1%;
        border-radius: 10px;    

    }

    .movie-review {
        display:inline-flex;
    }


    .movie-details-desc{
        padding-left: 0;
    }

    .header{
        max-height: 50%;
        height: 120px;
        margin-bottom: 100px;
        display: flex;
        align-items: center;
    }

    .buttons{
        justify-content:space-around;
        margin-right: -100px;
        position: absolute;
        width: 95%;
        height: 20%;
        top: 0;
        font-size: 16px;
        resize: horizontal;
        vertical-align: middle;
        vertical-align: top;
        text-align:center;
        margin: 0;
        padding: 0;
    }

    .logo{
        margin-top: 10%;
        margin-left: auto;
        margin-right: auto;
    }

    .search-section{
        justify-content:space-around;
        margin-right: -100px;
        position: absolute;
        width: 100%;
        height: 250%;
        top: 0;
        font-size: 16px;
        resize: horizontal;
        vertical-align: middle;
        vertical-align: top;
        text-align:center;
        margin: 0;
        padding: 0;
    }

    li{
        list-style: none;
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .movie-details{
        justify-content: center;
        text-align: center;
        display:inline-block;
        align-items: center;
        margin-top: 20px;
        margin-left: 5%;
        background-color: #FFF;
        margin-right: 5%;
        padding-left: 10px;
        padding-bottom: 2%;
        padding-top: 1%;
        border-radius: 10px;
    }

    .movie-details .movie-poster{
        position:relative;
        justify-content: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        font-size: 12px;
        flex: 1;
        color: white;
        font-family:Arial, Helvetica, sans-serif;
        font-size: 24px;
        color: black;
        font-weight: 500;
    }

    #player{
        width: 100%;
    }

    .movie-details .movie-info {
        position:relative;
        justify-content: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        font-size: 12px;
        flex: 1;
        color: white;
        font-family:Arial, Helvetica, sans-serif;
        font-size: 24px;
        color: black;
        font-weight: 500;
    }
    
    .movie-details .movie-info h1{
        color: black;
        font-size: 24px;
        flex: 1;
    }
}

@media (max-width: 412px){
    .header{
        max-height: 50%;
        height: 120px;
        margin-bottom: 100px;
        display: flex;
        align-items: center;
    }

    .buttons{
        position: absolute;
        width: 95%;
        height: 50%;
        font-size: 16px;
        resize: horizontal;
        vertical-align: middle;
        vertical-align: top;
        text-align:center;
    }

    .buttons li {
        padding-left: 0;
        margin-left: 0;
    }
}

@media (max-width: 323px){
    .header{
        max-height: 50%;
        height: 120px;
        margin-bottom: 100px;
        display: flex;
        align-items: center;
    }

    .player{
        width: auto;    
    }

    .buttons{
        position: absolute;
        width: 95%;
        height: 50%;
        font-size: 16px;
        resize: horizontal;
        vertical-align: middle;
        vertical-align: top;
        text-align:center;
    }

    .buttons li {
        padding-left: 0;
        margin-left: 0;
    }
}

@media (max-width: 800px){
    .player{
        width: auto;
    }

}
