@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;
}

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

nav .nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 19px;
}

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);
}

#Domains,
#AboutUs,
#Blog,
#Contact,
#Privacy,
#Home,
#Login {
    background-color: transparent;
    color: #fff;
    display: inline-block;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    margin: 5px;
    text-align: center;
}

#Domains:hover,
#AboutUs:hover,
#Blog:hover,
#Contact:hover,
#Privacy:hover,
#Home:hover,
#Login:hover,
#aHome:hover {
    background-color: #2c7ffc;
}

#aHome {
    background-color: #2c7ffc;
    color: #fff;
    display: inline-block;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    margin: 5px;
    text-align: center;
}

.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;
}

.savedata {
    margin-left: 1.2vw;
    padding: 10px;
}

.savedata .savefuckingdata {
    font-size: 20px;
    color: white;
    background-color: #2c7ffc;
    border-radius: 10px;
    padding: 10px 10px;
}

.savedata .loadfuckingdata {
    font-size: 20px;
    color: white;
    background-color: #2c7ffc;
    border-radius: 10px;
    padding: 10px 10px;
}
 
.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: 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: -7vw;
}

.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;
    }

    .footer {
        text-align: center;
        color: white;
    }

    .announcements {
        background-color: #2c7ffc;
        color: white;
        padding: 10px;
        text-align: center;
        margin-top: 9vw;
        border-radius: 20px;
        width: 80%;
        margin: 6vw auto;
    }
    
    .announcements p {
        margin: 0;
    }


    .totalgames {
        color: white;
        font-size: 30px;
        margin-left: 25px;
    }
    

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1b1b1b;
}

::-webkit-scrollbar-thumb {
    background: #2c7ffc;
    border-radius: 40px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333333;
    z-index: 20;
    transition: opacity 0.75s, visibility 0.75s;
}

.loader--hidden {
    opacity: 0;
    visibility: hidden;
}

.loader::after {
    content: "";
    width: 75px;
    height: 75px;
    border: 15px solid #dddddd;
    border-top-color: #009587;
    border-radius: 50%;
    animation: loading 0.75s ease infinite;
}

.loader-content {
    text-align: center;
    color: #fff;
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes loading {
    from { transform: rotate(0turn) }
    to { transform: rotate(1turn) }
}

.popup {
    z-index: 19;
    width: 400px;
    background-color: #fff;
    border-radius: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 30px 30px;
    color: #333;
    visibility: hidden;
}

.open-popup{
    visibility: visible;
}

body.popup-open {
    overflow: hidden;
}


.popup img {
    width: 100px;
    margin-top: -50px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.popup h2 {
    font-size: 38px;
    font-weight: 500;
    margin: 30px 0 10px;
}

.popup button {
    width: 100%;
    margin-top: 50px;
    padding: 10px 0;
    background: #6fd649;
    color: #fff;
    border: 0;
    outline: none;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}