@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

iframe {
    background: #111;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

iframe.loaded {
    opacity: 1;
}

.iframe-wrapper {
    background: #111;
    padding: 2vw 0;
}

#loader {
    position: fixed;
    inset: 0;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.3s ease;
}

.loader {
    width: 80px;
    height: 80px;
    border: 8px solid #444;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body.loading {
    overflow: hidden;
}

body.loading > *:not(#loader) {
    visibility: hidden;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(10px) saturate(200%) brightness(70%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 7vw;
    width: 100%;
    padding: 0 1.5%;
    z-index: 5;
}

}

nav img {
    height: 80%;
    width: auto;
    margin-right: 1%;
    border-radius: 1vw;
    cursor: pointer;
    user-select: none;
    box-shadow: 5px 5px 10px rgba(53, 53, 53, 0.459);
}

nav h1 {
    font-size: 4vw;
    font-weight: 800;
    margin: 0;
}

.content {
    flex-direction: column;
    align-items: left;
    padding: 7vw;
    padding-top: 0vw;
}

.content hr {
    border: 0;
    height: 4px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(255, 255, 255), rgba(0, 0, 0, 0));
    margin: 1vw 0;
}

.search {
    display: flex;
    user-select: none;
    margin-top: 2.5vw;
    margin-left: 1.2vw;
}
 
.search input {
    background-color: #222222;
    border: none;
    border-radius: 1vw 0 0 1vw;
    color: #fff;
    font-size: 1.5vw;
    font-weight: 600;
    padding: 0.8vw 1.5vw;
    font-family: 'Montserrat', sans-serif;
    z-index: 1;
    outline: none;
}
 
.search input::placeholder {
    color: #fff;
    font-weight: 600;
    font-size: 1.5vw;
}
 
.search button {
    background-color: #fff;
    border: none;
    border-radius: 0 1vw 1vw 0;
    color:#222222;
    font-size: 1.5vw;
    font-weight: 600;
    padding: 0.8vw 1vw;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    z-index: 1;
    transition: .3s all ease;
}
 
#games {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: .6vw;
    padding-bottom: 5vw;

}
 
#games img {    height: 10vw;
    width: 10vw;
    border-radius: 1vw;
    margin: .5vw;
    cursor: pointer;
    user-select: none;
    transition: transform .2s;
}
 
#games img:hover {
    transform: scale(1.15);
}

.featured {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1vw;
    margin:1%;
    margin-top: 6vw;
}

.featured h1 {
    font-size: 3.5vw;
    font-weight: 700;
    margin: 1vw 1vw .4vw 1vw;
    width: 83.8%;
    text-align: left;
    color: #fff;
}

.featured .column {
    display: flex;
    flex-direction: column;
}

.featured img {
    height: 12.5vw;
    width: 12.5vw;
    border-radius: 1vw;
    margin: .5vw;
    cursor: pointer;
    user-select: none;
    transition: all .2s;
}

.featured img:hover {
    transform: scale(1.02);
    filter: brightness(50%);
}


.featured .row img {
    height: 26vw;
    width: 26vw;
}

.featured a {
    display: inline-block;
    position: relative;
    color: #ffffff;
    text-decoration: none;
}
    
    .featured .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s;
    }
    
    .featured a:hover .play-button {
    opacity: 1;
    pointer-events: none;
    }
    
    .featured .play-button i {
    font-size: 5vw;
    text-shadow: 0 0 100px #ffffff;
    }

h2 {
  color: #fff;
  text-align:center;
  background-color: #292929;
  padding:.5vw;
  border-radius: .5vw;
  width:10vw;
}



html, body {
  width: 100%;
  min-height: 100%;
  --s: 200px; /* control the size */
  --c1: #1d1d1d;
  --c2: #4e4f51;
  --c3: #3c3c3c;

  background: repeating-conic-gradient(
        from 30deg,
        #0000 0 120deg,
        var(--c3) 0 180deg
      )
      calc(0.5 * var(--s)) calc(0.5 * var(--s) * 0.577),
    repeating-conic-gradient(
      from 30deg,
      var(--c1) 0 60deg,
      var(--c2) 0 120deg,
      var(--c3) 0 180deg
    );
  background-size: var(--s) calc(var(--s) * 0.577);
}


#games a {
    position: relative;
    display: inline-block;
}

#games a:hover::after {
    opacity: 1;
}

#games a img {
    transition: filter 0.2s ease, transform 0.2s ease;
}

#games a:hover img {
    filter: brightness(40%);
    transform: scale(1.05);
}


#games a {
    position: relative;
    display: inline-block;
}

#games a::before {
    content: "\f04b"; /* Font Awesome play icon */
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2vw;
    color: white;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.2s ease;
}

#games a::after {
    content: attr(data-title);
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9vw;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.25vw 0.6vw;
    border-radius: 0.4vw;
    opacity: 0;
    z-index: 2;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}


#games a:hover::before,
#games a:hover::after {
    opacity: 1;
}

#games a::before { font-size: 2.6vw; }

#games a:hover img { filter: brightness(30%); }

#games a::before {
    text-shadow: 0 0 30px white;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    margin-right: 1.5vw;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s ease;
}

.nav-menu {
    list-style: none;
    position: fixed;
    top: 7vw;
    left: -100%;
    width: 220px;
    height: calc(100vh - 7vw);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 2vw;
    transition: left 0.3s ease;
    z-index: 9998;
}


.nav-menu li {
    margin-bottom: 1.5vw;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.4vw;
    font-weight: 600;
}

.nav-menu.active {
    left: 0;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav h1 {
        font-size: 6vw;
    }
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
