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

body {
    background-color: #1b1b1b;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(20px) saturate(200%) brightness(70%);
    color: #fff;
    display: flex;
    height: 3.5vw;
    width: 100%;
    align-items: center;
    justify-content: left;

    margin: auto;
}

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

nav h1 {
    font-size: 2vw;
    font-weight: 800;
    margin-right: 1%;
}

.content {
    flex-direction: column;
    align-items: center;
    padding: 0vw;
    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: 3vw;
    margin-left: 25vw;
}
 
.search input {
    background-color: #222222;
    border: 0;
    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: 15.6vw;
    width: 15.6vw;
    border-radius: 1vw;
    margin: .5vw;
    cursor: pointer;
    user-select: none;
    transition: transform .2s;
}
 
#games img:hover {
    transform: scale(1.01);
}

.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: #2c7ffc;
    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 #2c7ffc;
    }

/* Login page styles */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #1a1a1a, #2c1f4a, #1f364a, #1a1a1a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.1;
    animation: backgroundMove 30s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 3vw;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    width: 90%;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2c1f4a, transparent, #1f364a);
    border-radius: 20px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.8;
    }
}

.login-box h1 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 1.5em;
    font-weight: 800;
}

.login-box .fas {
    margin-right: 10px;
}

.input-group {
    position: relative;
    margin-bottom: 2em;
    width: 100%;
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.input-group .fas {
    color: #fff;
    font-size: 1.2em;
    flex-shrink: 0;
    padding: 15px 5px 15px 15px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group input {
    flex: 1;
    padding: 15px 15px 15px 5px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 50px;
}

.input-group:focus-within {
    background: rgba(255, 255, 255, 0.15);
    outline: 1px solid rgba(255, 255, 255, 0.3);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.login-box button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #1b1b1b;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.error-message {
    color: #ff4444;
    margin-top: 1em;
    font-size: 0.9em;
    display: none;
}

#togglePassword {
    background-color: transparent;
    border: none;
    border-radius: 0.5vw;
    color: white;
    cursor: pointer;
    padding: 0;
    height: auto;
    width: 30px;
    display: flex;
    align-items: center;
    margin-right: 5px;
}

@media screen and (max-width: 480px) {
    .login-box {
        padding: 5vw;
        width: 95%;
    }
    
    .input-group input {
        font-size: 16px; /* Prevents zoom on mobile */
        width: calc(100% - 30px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}