head, body {
	overflow-x: hidden;
}

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;
    
}


.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;
}



.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-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_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%;
}

.popular{
    margin-top: 5%;
    max-width: 100%;
    max-height: 100%;
    border: solid 2px white;
    background-color: transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(2px);
}

.movie{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 20px;
}

.movie_cover{
    width: 240px;
}


.movie_title{
    font-size: 32px;
    color: yellow;
}

.movie_info{
    font-size: 24px;
    color: white;
    border-bottom: 2px solid gray;
}

.movie_genre{
    font-size: 28px;
    color: rgb(255, 255, 255);
}


.buttons{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

.user-menu {
    position: relative;
    display: inline-block;
}

#user-menu-button:hover{
    color: red;
}

#user-menu-button {
    cursor: pointer;
}

#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;
}

.user_name{
    color: gold;
    font-weight: 600;
}

.player-section 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;
}


.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;
}

.movie-card {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    text-align: center;
}

.movie-card img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}



@keyframes ani {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 0;
    }
}


@media (max-width: 450px){
    li{
        list-style: none;
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .header{
        max-height: 50%;
        height: 120px;
        margin-bottom: 100px;
        display: flex;
        align-items: center;
    }

    .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;
    }

    .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;
    }

    li{
        list-style: none;
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}


@media (max-width: 412px){
    .header{
        max-height: 50%;
        height: 120px;
        margin-bottom: 100px;
        display: flex;
        align-items: center;
    }

    .buttons{
        position: absolute;
        width: 100%;
        height: 50%;
        font-size: 16px;
        resize: horizontal;
        vertical-align: middle;
        vertical-align: top;
        text-align:center;
    }

    .buttons li {
        padding-left: 0;
        margin-left: 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);
    }
}
