:root {
    --white: #fffaee;
    --black: #2a2b2a;
    --yellow: #f29e47;
    --accent: #e3582d;
    --font-text: 'Inter', sans-serif;
    --font-heading: 'Rubik Mono One', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-text);
    color: var(--black);
    background-color: var(--white);
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 2vh 5vw;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.header.scrolled {
    background-color: white
}

.menu {
    display: flex;
    gap: 3vw;
}

.menu a {
    text-decoration: none;
    color: var(--black);
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.menu a:hover {
    text-decoration: underline;
}

.menu a.active {
    color: var(--accent);
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

.logo img {
    height: 10vh;
    transform: translateY(30%);
}

.social {
    display: flex;
    gap: 2vw;
}

.social a {
    color: var(--black);
    text-decoration: none;
    font-size: 1.2rem;
}

.social a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hero {
    position: relative;
    background-image: url('img/hero_image.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    min-height: 70vh;       
    padding: 2rem;        
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.hero h1, .hero a {
    position: relative;
    z-index: 1;
    margin: 0;
}

.hero h1 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
}

.hero a {
    background-color: var(--yellow);
    color: var(--black);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-text);
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero a:hover {
    background-color: var(--accent);
    color: var(--white);
    outline: none;
}

.popcorn-row {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 0 1rem;
    background: transparent;
    flex-wrap: nowrap;
    overflow-x: hidden;
}

.popcorn-row-top {
    margin-top: -4vh;
}

.popcorn-row-bottom {
    margin-bottom: -4vh;
}

.popcorn {
    height: 8vh;
    user-select: none;
    flex-shrink: 0;
}

.content-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 5vw;
}

.musor {
    padding: 2rem;
    height: 750px;
}

.musor h2, .jegyek h2, .kapcsolat h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent);
}

.kapcsolat h2 {
    margin-top: 0;
}

.carousel-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2vw;
    margin-top: 20vh;
}

.carousel-container.hidden {
    display: none;
}

.carousel-track-wrapper {
    overflow-x: clip;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s ease;
}

.carousel-item {
    flex: 0 0 calc((100% - 2rem) / 3); 
    background: var(--yellow);
    padding: 2rem;
    text-align: center;
    border-radius: 1rem;
    box-sizing: border-box;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.carousel-image {
    width: 60%;
    position: absolute;
    top: -15vh;
    left: 50%;
    transform: translateX(-50%);
}

.carousel-info {
    margin-top: auto;
}

.carousel-info h3 {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.carousel-info p {
    margin: 0 0 1rem 0;
    color: var(--black);
}

.watch-button {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.watch-button:hover {
    background: var(--black);
}

.carousel-controls {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
    margin-top: 2rem;
}

.carousel-button {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--black);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.carousel-button:hover {
    opacity: 0.7;
}

.movie-details {
    background-color: var(--yellow);
    border-radius: 1rem;
    border-top-left-radius: 20rem;
    margin: 0 2vw;
    padding: 0 2vw;
    display: none;
}

.movie-details.visible {
    height: calc(477px + 15vh);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.movie-details-part1 {
    flex: 1;
}

.movie-details-part2 {
    flex: 2;
    overflow-y: auto;
    max-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--yellow);
}

.movie-details-part2::-webkit-scrollbar {
    width: 8px;
}

.movie-details-part2::-webkit-scrollbar-track {
    background: var(--yellow);
    border-radius: 4px;
}

.movie-details-part2::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 4px;
}

.movie-details-part2::-webkit-scrollbar-thumb:hover {
    background-color: var(--black);
}

.movie-details-part2 > * {
    margin-bottom: 1.5rem;
}

.movie-details-part2 > *:last-child {
    margin-bottom: 3rem;
}

.movie-details-part2 h3 {
    font-family: var(--font-heading);
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.movie-poster {
    width: 60%;
}

.back-button {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.back-button:hover {
    background: var(--black);
}

.trailer-container {
    margin-top: 2rem;
}

.trailer-container h4 {
    font-family: var(--font-heading);
    color: var(--black);
    margin-bottom: 1rem;
}

.trailer-container iframe {
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.jegyek, .kapcsolat {
    padding: 4rem 2rem;
}

.jegyek-grid, .kapcsolat-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.jegyek-image {
    text-align: center;
}

.jegyek-image img {
    max-width: 100%;
}

.jegyek-content, .kapcsolat-content {
    padding: 2rem;
}

.jegyek-content p, .kapcsolat-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.jegyek-content ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.jegyek-content ul li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.jegyek-content ul li::before {
    content: "•";
    color: var(--yellow);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

.rolunk {
    padding: 2rem 0;
}

.rolunk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}

.cell-decoration {
    height: 2rem;
    /*background-image: radial-gradient(ellipse 6px 8px, white 0%, white 100%, var(--black) 100%);*/
    background-image: url("img/movie_tape.png");
    /*background-size: 2rem 2rem;*/
    background-repeat: repeat;
    background-size: auto;
    background-position: center;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
}

.cell-decoration.top {
    top: 0;
    transform: translateY(-50%);
}

.cell-decoration.bottom {
    bottom: 0;
    transform: translateY(50%);
}

.cell-decoration.eighths {
    top: 12.5%;
    transform: translateY(-50%);
}

.cell-decoration.quarter {
    top: 25%;
    transform: translateY(-50%);
}

.cell-decoration.three-eighths {
    top: 37.5%;
    transform: translateY(-50%);
}

.cell-decoration.middle {
    top: 50%;
    transform: translateY(-50%);
}

.cell-decoration.five-eighths {
    top: 62.5%;
    transform: translateY(-50%);
}

.cell-decoration.three-quarters {
    top: 75%;
    transform: translateY(-50%);
}

.cell-decoration.seven-eighths {
    top: 87.5%;
    transform: translateY(-50%);
}

.text-cell {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: calc(300px - 4rem);
    border: 0.5rem solid var(--black);
}

.text-cell p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--black);
    text-align: center;
}

.image-cell {
    height: 300px;
    border: 0.5rem solid var(--black);
}

.image-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--black);
}

.kapcsolat-map {
    border-radius: 1rem;
    overflow: hidden;
}

.kapcsolat-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kapcsolat-content .contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 2rem;
    right: 5rem;
    width: 30%;
    height: 60%;
    background-image: url('img/production.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.4;  
}

.footer .content-container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
    padding: 2rem 0rem;
    margin: 2rem 0rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-top: 0rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-icons {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.footer-icons a {
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-icons a:hover {
    color: var(--accent);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent);
}

@media (max-width: 1559px) {
    .image-cell {
        height: 400px;
    }

    .text-cell {
        height: calc(400px - 4rem);
    }
}

@media (max-width: 1404px) {
    .carousel-container {
        margin-top: 15vh;
    }

    .carousel-image {
        top: -10vh;
    }
}

@media (max-width: 1212px) {
    .image-cell {
        height: 500px;
    }

    .text-cell {
        height: calc(500px - 4rem);
    }
}

@media (max-width: 1188px) {
    .carousel-container {
        margin-top: 10vh;
    }

    .carousel-image {
        top: -5vh;
    }
}

@media (max-width: 1040px) {
    .image-cell {
        height: 600px;
    }

    .text-cell {
        height: calc(600px - 4rem);
    }
}

@media (max-width: 968px) {
    .jegyek, .kapcsolat {
        padding: 3rem 2rem;
    }

    .rolunk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-cell {
        height: 400px;
    }

    .text-cell {
        height: calc(400px - 4rem);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: absolute;
        right: 5vw;
        top: 50%;
        transform: translateY(-50%);
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 60vw;
        background-color: var(--white);
        flex-direction: column;
        padding: 5vh 3vw;
        gap: 3vh;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1050;
    }

    .menu.active {
        right: 0;
    }

    .menu a {
        font-size: 1.2rem;
        padding: 1vh 0;
    }

    .social a:hover {
        color: var(--accent);
    }

    .logo img {
        height: 8vh;
    }

    .hero {
        min-height: 40vh; 
        padding: 1.5rem;  
    }
  
    .hero h1 {
        font-size: clamp(1.2rem, 5vw, 2.5rem); 
    }

    .popcorn-row-top {
        margin-top: -2vh;
    }

    .popcorn-row-bottom {
        margin-bottom: -2vh;
    }

    .popcorn {
        height: 4vh;
    }

    .content-container {
        padding: 0rem;
    }

    .musor {
        height: 950px;
    }

    .carousel-item {
        flex: 0 0 100%;
    }

    .carousel-container {
        margin-top: 40vh;
    }

    .carousel-image {
        top: -35vh;
    }

    .carousel-controls {
        justify-content: center;
    }

    .movie-details {
        border-top-left-radius: 1rem;
    }

    .movie-details.visible {
        height: calc(477px + 35vh);
        flex-direction: column;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) var(--yellow);
    }
    
    .movie-poster {
        width: 50%;
        margin-top: 2rem;
    }

    .movie-details-part2 {
        overflow-y: unset;
        max-height: unset;
    }

    .jegyek, .kapcsolat {
        padding: 2rem;
    }

    .jegyek-grid, .kapcsolat-grid {
        grid-template-columns: 1fr;
        gap: 0rem;
    }

    .jegyek-image img {
        width: 50%;
    }

    .jegyek-content, .kapcsolat-content {
        padding: 1rem 0;
    }

    .rolunk-grid {
        grid-template-columns: 1fr;
    }
    
    .footer::before {
        bottom: 5rem;
        right: 0rem;
        width: 100%;
        background-position: bottom center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 725px) {
    .musor {
        height: 900px;
    }

    .carousel-container {
        margin-top: 35vh;
    }

    .carousel-image {
        top: -30vh;
    }

    .movie-details.visible {
        height: calc(477px + 30vh);
    }
}

@media (max-width: 640px) {
    .musor {
        height: 850px;
    }

    .carousel-container {
        margin-top: 30vh;
    }

    .carousel-image {
        top: -25vh;
    }

    .movie-details.visible {
        height: calc(477px + 25vh);
    }
}

@media (max-width: 565px) {
    .musor {
        height: 800px;
    }

    .carousel-container {
        margin-top: 25vh;
    }

    .carousel-image {
        top: -20vh;
    }

    .movie-details.visible {
        height: calc(477px + 20vh);
    }
}

@media (max-width: 500px) {
    .musor {
        height: 750px;
    }

    .carousel-container {
        margin-top: 20vh;
    }

    .carousel-image {
        top: -15vh;
    }

    .movie-details.visible {
        height: calc(477px + 15vh);
    }
}

@media (max-width: 400px) {
    .musor {
        height: 700px;
    }

    .carousel-container {
        margin-top: 15vh;
    }

    .carousel-image {
        top: -10vh;
    }

    .movie-details.visible {
        height: calc(477px + 10vh);
    }
}