body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(black 10%,  rgb(255, 0, 0) 90%);
    overflow: hidden;
}

h1 {
    margin-top: 1vh;
    color: white;
    font-size: 10vh
}

ul {
    display: flex;
    gap: 3vh;
    padding: 0;
}

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

li {
    display: flex;
    align-items: center;
    padding: 1vh 2vw;
    gap: 1vh;
    box-shadow: 0 0 1vh black;
    border: 0.2vh solid #00325e;
    background-color: #00325e;
    font-size: 3vh;
    transition: 0.25s ease-in-out;
}



@keyframes show {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

div {
    display: flex;
    justify-content: center;
    gap: 5vh;
    width: 100%;
}

img {
    transition: 0.25s ease-in-out;
    animation: show 3s forwards;
}

.a-film {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 1.5vh;
    position: relative;
    gap: 2.5vh;
    width: calc((100% - 15vw)/5);
    transition: 0.25s ease-in-out;
}

.static{
    position: static;
}

.sound-button {
    position: absolute;
    top: 1vh;
    right: 1vh;
    cursor: pointer;
}

.sound-button img {
    position: static;
    height: 10vh;
    width: 10vh;
    max-height: 100px;
    max-width: 100px;
}

.sound-button img:nth-child(2) {
    display: none;
}

.sound-button:has(input:checked) img:nth-child(1) {
    display: none;
}
.sound-button:has(input:checked) img:nth-child(2) {
    display: flex;
}
.phone {
    display: none;
    position: absolute;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 40px;
    top: 0px;
    border: none;
    left: 10px;
}

.phone img {
    width: 100%;
    height: 100%;
    position: static;
    border-radius: 40px;
}

.modal {
    position: fixed;
    top: 10vh;
    display: none;
    box-shadow: 0 0 50px 100vh rgba(0, 0, 0, 0.6);
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.6);
    background-color: rgba(0, 0, 0, 0.6);
}

button.close {
    position: absolute;
    top: -20px;
    right: 40px;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    background-color: white;
    border: none;
    font-size: 30px;
}




@media (max-width: 550px) {
    div {
        justify-content: flex-start;
        margin: 0 20px;
        max-width: calc(100vw - 40px);
        gap: 10vh;
        overflow: scroll;
        scroll-snap-type: x mandatory;
    }
    .a-film {
        font-size: 1.5vh;
        gap: 2.5vh;
        min-width: 92vw;
        align-items: center;
    }
    .a-film img {
        max-height: 60vh;
    }
    .phone{
        display: block;
    }

    .sound-button {
        display: none;
    }
    button.close{
        top: 0;
    }
}


@media (hover: hover) {
    li:hover {
        background-color: #a60000;
        box-shadow: 0 0 5vh black;
        transform: scale(1.2);
    }
    
    .a-film:hover {
        transform: scale(1.2);
    }
    
    .a-film:hover img {
        box-shadow: 0 0 5vh black;
    }
}