:root {
    --background1: black;
    --background2: rgba(0, 0, 0, 0.5);
    --hover1: #333;
    --hover2: #aaa;
}

* {
    font-family: 'Inter';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

header {
    width: 100%;
    height: inherit;
    overflow-y: hidden;
}

.nav-bar {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    height: 8vh;
    background-color: var(--background1);
    color: white;
    gap: 30px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-items {
    display: flex;
    margin-left: 40px;
    font-weight: 600;
    overflow-y: hidden;
}

.nav-item {
    top: 0;
    width: 75px;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--hover2);
}

.logo {
    font-size: larger;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.center-nav {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.search {
    width: 400px;
    height: 6vh;
    background-color: inherit;
    border: 2px solid white;
    border-radius: 8px;
    color: white;
    padding-left: 6px;
    transition: background 0.3s;
}

.search:focus {
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
}

.search:hover {
    background-color: var(--hover1);
}

.search-btn {
    width: 70px;
    height: 5vh;
    background-color: inherit;
    border: 2px solid white;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background-color: var(--hover1);
}

.search-results {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0,0,0,0.9);
    border: 1px solid white;
    border-radius: 8px;
    color: white;
    padding: 10px;
    z-index: 20;
    display: none;
}

.search-result-item {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
}

.search-result-item:hover {
    background: #333;
}

.no-results {
    text-align: center;
    opacity: 0.7;
}

.time {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5%;
    overflow-y: hidden;
}

.time-btn {
    background-color: inherit;
    border: 2px solid white;
    color: white;
    border-radius: 5px;
    width: 150px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.time-btn:hover {
    background-color: var(--hover1);
}

.arrow-time {
    transition: color 0.3s;
}

.time-btn:hover .arrow-time {
    color: var(--hover2);
}

.time-list {
    position: absolute;
    right: 5%;
    top: 60px;
    background: var(--background1);
    color: white;
    border: 1px solid white;
    border-radius: 6px;
    padding: 10px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 16;
    list-style-type: none;
}

.time-list.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.block {
    width: 100%;
    height: 100vh;
    background-color: var(--background1);
    color: white;
    text-align: start;
    padding-left: 15vh;
    position: relative;
    overflow-y: hidden;
}

.block1 {
    overflow-y: hidden;
}

.background-hero {
    height: 720px;
    z-index: 1;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

.header-title, .header-text {
    display: flex;
    position: relative;
    width: 600px;
    top: 27%;
    transform: translateY(-50%);
    z-index: 2;
}

.header-title {
    margin-bottom: 8px;
}

.block-btn {
    display: flex;
    width: 120px;
    height: 50px;
    color: white;
    background-color: var(--background2);
    text-align: start;
    border: 1px solid white;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    top: 28%;
    transform: translateY(-50%);
    z-index: 2;
    text-decoration: none;
}

.block-btn > span {
    margin-right: 8px;
    transition: margin-right 0.3s;
}

.block-btn > svg {
    margin-top: 2px;
}

.block-btn:hover {
    background-color: var(--hover1);
}

.block-btn:hover > span {
    margin-right: 13px;
}

.background-about {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.block2 .header-title,
.block2 .header-text,
.block2 .block-btn {
    top: 10%;
    transform: none;
    margin-left: auto;
    margin-right: 1%;
    text-align: justify;
    width: 500px;
}

.block2 .block-btn {
    width: 120px;
    margin-right: 28%;
    margin-top: 1vh;
}

.main-items {
    display: flex;
    position: relative;
    width: 100%;
    height: 50vh;
    background-color: var(--background1);
    flex-direction: row;
    gap: 35px;
    justify-content: center;
    align-items: center;
}

.main-item {
    width: 30%;
    height: 90%;
    border-radius: 5px;
    background-color: var(--background2);
    transition: width 0.5s;
    z-index: 2;
    color: white;
    flex-direction: column;
    gap: 20px; 
    cursor: pointer;
}

.main-item:hover {
    width: 32%;
}

.main-img {
    border-radius: 5px;
    width: 100%;
    height: 50%;
    object-fit: cover;
}

.main-background {
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.title-main {
    display: flex;
    position: absolute;
    top: 43%;
    margin-left: 1%;
    color: white;
    font-weight: 600;
    font-size: larger;
    color: white;
    text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.text-main {
    margin-left: 5px;
    margin-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.crew-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 20px;
}

footer {
    display: flex;
    background-color: var(--background1);
    height: 40px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

footer > a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.up {
    display: flex;
    position: fixed;
    background-color: inherit;
    border-radius: 50%;
    border: none;
    width: 50px;
    height: 50px;
    z-index: 15;
    bottom: 5%;
    right: 5%;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.up.show {
    opacity: 1;
    pointer-events: auto;
}

.arrow {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

@media (max-width: 1300px) {
    .nav-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px !important;
        padding: 10px;
    }

    .logo {
        order: 1;
        flex-shrink: 0;
    }

    .nav-items {
        order: 2;
        width: auto;
        display: flex;
        gap: 10px;
        margin: 0;
        flex-shrink: 0;
    }

    .center-nav {
        order: 3;
        display: flex;
        justify-content: center;
        position: static;
        transform: none;
        margin: 0 10px;
        margin-right: 160px;
        flex-grow: 1;
        flex-shrink: 1;
        min-width: 0;
    }

    .time {
        order: 4;
        flex-shrink: 0;
        margin-left: auto;
        white-space: nowrap;
    }

    .search {
        width: 100%;
        max-width: 160px;
        min-width: 80px;
        height: 36px;
        font-size: 13px;
    }

    .search-btn {
        width: auto;
        padding: 0 8px;
        height: 36px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .block {
        padding-left: 5vh;
    }

    .header-title,
    .header-text {
        width: 400px;
        text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    }

    .background-hero {
        height: 500px;
        opacity: 0.7;
    }

    .block2 .header-title,
    .block2 .header-text {
        width: 400px;
        margin-right: 5%;
    }

    .block2 .block-btn {
        margin-right: 34%;
    }

    .main-items {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 40px 0;
        gap: 20px;
    }

    .main-item {
        width: 80%;
        height: auto;
        position: relative;
    }

    .main-item:hover {
        width: 82%;
    }

    .title-main {
        position: absolute;
        top: 75%;
        left: 5%;
        z-index: 3;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .center-nav {
        display: none;
    }

    .time {
        display: none;
    }

    .nav-bar {
        justify-content: space-around;
    }

    .nav-items {
        margin-left: 0;
    }

    .nav-item {
        width: 75px;
    }

     .block {
        padding: 20px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .header-title,
    .header-text {
        width: 100%;
        max-width: 100%;
        text-align: center;
        position: relative;
        top: auto;
        transform: none;
    }

    .header-title {
        font-size: 26px;
    }

    .header-text {
        font-size: 14px;
    }

    .block-btn {
        position: relative;
        top: auto;
        transform: none;
    }

    .block1 .block-btn {
       margin: 20px auto 0 auto; 
    }

    .background-hero {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.35;
    }

    .block2 .header-title,
    .block2 .header-text {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .block2 .block-btn {
        margin: 20px auto 0 auto;
    }

    .block1 .header-title, .block2 .header-title {
        width: 100%;
        text-align: center;
        margin: 0 auto;
        display: block;
    }

    .main-items {
        flex-direction: column;
        height: auto;
        padding: 30px 15px;
        gap: 20px;
    }

    .main-item {
        width: 95%;
        height: auto;
    }

    .main-item:hover {
        width: 95%;
    }

    .main-img {
        height: 180px;
    }

    .title-main {
        position: absolute;
        top: 40%;
        left: 10px;
        font-size: 16px;
    }

    .up {
        width: 45px;
        height: 45px;
        bottom: 4%;
        right: 4%;
    }

}
