:root {
    --bg-1: rgb(0, 11, 49);
    --bg-2: rgb(0, 0, 0);
    --glow: rgba(255, 255, 255, 0.5);
}

* {
    font-family: "Noto Sans", sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-image: linear-gradient(to bottom, var(--bg-1), var(--bg-2));
    width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
    padding-top: 5vh;
}

#particles-js {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    width: 100%;
    min-height: 100vh; 
}

.center-text {
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 15px var(--glow);
    margin-bottom: 30px;
    text-align: center;
}

#sj-form {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

#sj-address {
    width: 500px;
    height: 60px;
    padding: 8px 15px;
    font-size: 16px;
    border: 4px solid #141414;
    border-radius: 50px;
    outline: none;
    transition: all 0.4s ease;
    background: #2a2a2a;
    color: white;
    caret-color: white;
}

#sj-address::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#sj-address:hover,
#sj-address:focus {
    width: 700px;
    height: 65px;
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

#sj-error {
    color: #ff4d4f;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}


.navbar {
    background-color: rgba(19, 10, 92, 0.3);
    backdrop-filter: blur(1.5px);
    margin: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    z-index: 9999;
    border-radius: 15px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28%;
}

.nav-icon {
    width: 40px;
    height: 40px;
    margin: 0 10px;
    transition: 0.3s;
    filter: brightness(1) invert(1);
}

.nav-icon:hover {
    transform: scale(1.25);
    filter: brightness(1.2) invert(1);
    box-shadow: 0 0 10px var(--glow);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    justify-items: center;
    justify-content: center;
    align-content: start;
    width: 100%;
    max-width: 1200px;
}

.game-link {
    position: relative;
    display: block;
}

.game-thumbnail {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    transition: ease .2s;
    border: 5px solid transparent;
}

.game-thumbnail:hover {
    transform: scale(1.2);
    border: 5px solid #0084ff;
}

.game-link::before {
    content: attr(data-name);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.game-link:hover::before {
    opacity: 1;
}

@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

.main-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    gap: 15px;
}

.iframe-container {
    flex: 1;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    justify-content: flex-start;
    align-items: center;
    filter: brightness(1) invert(1);

}

.button-container svg {
    width: 50px;
    height: 50px;
    cursor: pointer;
    fill: white;
    transition: 0.2s;

}

.button-container svg:hover {
    transform: scale(1.2);
    fill: #00bfff;
}

.mexcontainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    justify-items: center;
    align-items: center;
}

.miniboilink {
    position: relative;
    display: block;
}

.miniboi-thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    transition: ease .2s;
    border: 5px solid transparent;
}

.miniboi-thumbnail:hover {
    transform: scale(1.2);
    border: 5px solid #afafaf;
}

.miniboilink::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.miniboilink:hover::before {
    opacity: 1;
}

@media (max-width: 1200px) {
    .mexcontainer {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mexcontainer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mexcontainer {
        grid-template-columns: repeat(1, 1fr);
    }
}

#sj-frame {
	border: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: #111;
    z-index: 9998;
}

  .theme-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }

  .theme-label {
    font-size: 14px;
    color: white;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  #dropboi {
    width: 500px;
    height: 60px;
    padding: 8px 15px;
    font-size: 16px;
    border: 4px solid #141414;
    border-radius: 50px;
    outline: none;
    transition: all 0.4s ease;
    background: #2a2a2a;
    color: white;
    caret-color: white;
  }

  #dropboi:hover,
  #dropboi:focus {
    width: 700px;
    height: 65px;
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  }