@font-face {
    font-family: 'monster';
    src: url('homepage/font/MONSTER\ OF\ FANTASY.otf');
}
@font-face {
    font-family: 'made1';
    src: url('homepage/font/MADECarvingSoftPERSONALUSE-Medium.otf');
}
@font-face {
    font-family: 'nostalgic';
    src: url('homepage/font/NostalgicWhispers-Regular.ttf');
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.container {
    position: relative;
    text-align: center;
    color: white;
    overflow: hidden;
    z-index: 1;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2; /* Send the video to the background */
    overflow: hidden;
}

#video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.background {
    width: 100%;
    height: 100vh;
}

.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: rgba(0, 0, 0, 0.5); /* Warna overlay dengan 50% transparansi */
z-index: -1; /* Overlay berada di atas video tapi di bawah konten */
}

.logo {
position: fixed;
top: 20px;
left: 40px;
width: 100px;
}

.nav {
    position: fixed;
    top: 20px;
    right: 60px;
}

.nav {
    display: flex;
    justify-content: center;
    padding: 1em;
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    position: relative; /* Agar pseudo-element dapat diposisikan */
    font-family: 'made1';
    font-size: 20px;
}

.nav {
    display: flex;
    justify-content: center;
    padding: 1em;
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    position: relative; /* Agar pseudo-element dapat diposisikan */
}

.nav a:hover {
    transform: scale(1.1);
    color: #6dd5ed;
}


.content {
position: absolute;
top: 50%;
left: 25%;
transform: translate(-50%, -50%);
text-align: left;
}

.content h1 {
font-family: 'monster';
font-size: 80px;
margin: 0;
}

.content h2 {
color: #00f7ff;
font-size: 32px;
margin: 5px 0;
font-family: 'nostalgia';
}

.content p {
font-size: 18px;
max-width: 600px;
font-family: 'made1';
}

.navloc {
    margin-left: 200px;
    margin-top: 50px;
}
.navloc a {
    color: #fff; /* Warna teks */
    text-decoration: none; /* Menghapus garis bawah */ /* Agar efek yang ditambahkan dapat diatur */
}

nav ul {
    list-style-type: none;
    padding: 0;
}
nav ul li {
    --c: #00f7ff;
    font-family: 'made1';
    color: var(--c);
    font-size: 16px;
    border: 0.3em solid var(--c);
    border-radius: 0.5em;
    width: 12em;
    height: 3em;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 3em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: 0.5s;
    margin: 1em;
}
nav ul li span {
    position: absolute;
    width: 25%;
    height: 100%;
    background-color: var(--c);
    transform: translateY(150%);
    border-radius: 50%;
    left: calc((var(--n) - 1) * 25%);
    transition: 0.5s;
    transition-delay: calc((var(--n) - 1) * 0.1s);
    z-index: -1;
}
nav ul li:hover {
    color: black;
}
nav ul li:hover span {
    transform: translateY(0) scale(2);
}
nav ul li span:nth-child(1) {
    --n: 1;
}
nav ul li span:nth-child(2) {
    --n: 2;
}
nav ul li span:nth-child(3) {
    --n: 3;
}
nav ul li span:nth-child(4) {
    --n: 4;
}

/*Layout 1*/
.layout1 {
display: flex;
flex-direction: column;
gap: 10px;
background-color: #041218;
padding: 120px;
padding-top: 200px;
padding-bottom: 200px;
}

.introduction {
    align-items: center;
padding: 10px;
display: flex;
gap: 10px;
}

.introduction img {
width: 500px;
margin-left: 0;
aspect-ratio: 1/1;
object-fit: cover;
}

.introduction div {
text-align: left;
}

.introtext {
    width: 95%;
margin-top: 30px;
}

.introduction h2 {
color: #ffbd59;
font-size: 46px;
margin: 0 0 10px 0;
font-family: 'nostalgia';
}

.introduction p {
    color: #fff;
    font-size: 34px;
    margin: 0;
    font-family: 'made1';
}

/*Layout 2*/
.layout2 {
    background-image: url('homepage/background/genshinbg.svg');
    background-size: cover;
    text-align: center;
    padding: 50px;
}

.layout2 h1 {
    color: #f5c518;
    font-size: 48px;
    margin-bottom: 50px;
    font-family: 'nostalgia';
}

.highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.highlight-item {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 90%;
    display: flex;
    gap: 20px;
}

.highlight-item img {
    border-radius: 10px;
    width: 500px;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.highlight-item div {
    text-align: left;
}

.highlight-item h2 {
    color: #1e90ff;
    font-size: 32px;
    margin: 0 0 10px 0;
    font-family: 'made1';
}

.highlight-item p {
    font-size: 32px;
    width: 70%;
    margin: 0;
}

/*Layout 3*/
.layout3 {
    /* Gunakan variabel yang lebih deskriptif untuk nilai gap */
    --gap: 20px;
    gap: var(--gap);
    
    /* Gunakan variabel yang lebih deskriptif untuk gambar latar belakang */
    background : linear-gradient(0deg, rgba(7, 65, 83, 0.3), rgba(0, 0, 0, 0.8)), url(homepage/background/trailer.png);
    background-size: cover;
    
    /* Gunakan variabel yang lebih deskriptif untuk nilai padding */
    --padding-vertical: 250px;
    padding-top: var(--padding-vertical);
    padding-bottom: var(--padding-vertical);
}

.trailers {
    display: flex;
    justify-content: center;
}

#video {
    height: 400px;
    width: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 5px;
    margin-left: 100px;
}

.trailers div {
    text-align: left;
}

.introtext {
    margin-left: 50px;
}

.trailers h2 {
    color: #ffbd59;
    font-size: 56px;
    margin: 0 0 10px 0;
    font-family: 'nostalgia';
}

.trailers p {
    color: #fff;
    font-size: 32px;
    margin: 0;
    font-family: 'made1';
    width: 90%;
    padding-bottom: 50px;
}