:root {
    --dark: #212121;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #000;
}

canvas#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.fade {
    animation: fade 2s;
}

.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
}

.header {
    text-align: center;
    padding: 20px 0;
    cursor: default;
}

.header h1 {
    font-size: 72px;
    font-weight: bold;
    color: white;
    overflow: hidden;
    white-space: nowrap;
}

@keyframes fade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.subheader {
    font-size: 18px;
    color: white;
    margin-top: 20px;
}

.image {
    opacity: 0;
    width: 150px;
    height: 150px;
}

.important-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: red;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.important-button:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.message-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.message-popup {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.important-message {
    color: red;
}

.free {
    color: blue;
}

.visits {
    position: fixed;
    bottom: 0px;
    left: 0px;
    border-top-right-radius: 5px;
}

iframe {
    width: 0%;
    height: 0%;
    border: none;
}

div#main {
    display: none;
    position: fixed;
    background-color: black;
    z-index: 145;
    width: 100%;
    height: 100%;
}

div#main .loader {
    background-color: transparent;
}

div#main .game-frame {
    width: 80%;
    height: 82.5%;
    position: fixed;
    left: 10%;
    top: 12.5%;
    border-radius: 2.5vh;
}

div#main .game-frame:fullscreen {
    border-radius: 0;
}

.game-btns {
    display: flex;
    flex-direction: row;
    gap: 2px;
    position: fixed;
    bottom: 5.5%;
    right: 10.5%;
}

.game-btn {
    width: 25px;
    height: 25px;
    flex: 1;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    text-align: center;
    padding: 5px;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: 0.2s ease-in-out;
}

.game-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1vh;
}

.info {
    position: fixed;
    z-index: 150;
    bottom: 0;
    left: 0;
    color: #fff;
    padding: 1.5vh;
    cursor: default;
    font-size: 1.1vw;
}

.aboutBlank {
    z-index: 150;
    visibility: hidden;
    background: #00a2ff;
    position: fixed;
    right: 1.5vh;
    bottom: 1.5vh;
    width: 3vw;
    height: 3vw;
    font-size: 1.75vw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
    border: none /*5px black solid*/;
}

.aboutBlank:hover {
    border-radius: 1.5vh;
    background: #0087d4;;
}

.newSplash {
    color: #fff;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    width: 2.5vw;
    height: 2.5vw;
    transition: 0.3s;
    cursor: pointer;
}

.newSplash:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/*@media (max-width: 980px) {
    body {
        font-size: 1.5rem;
        margin: 0;
        padding: 0;
    }

    .navbar {
        display: flex;
        flex-direction: column;
        width: 100%;
        left: 0;
        box-sizing: border-box;
        padding: 10px;
    }

    .navbar ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .navbar ul li {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        box-sizing: border-box;
    }

    .navbar ul li.active {
        transform: scale(1);
    }

    div#main iframe {
        width: 100%;
        height: 72.5%;
        top: 27.5%;
        left: 0;
        border-radius: 0px;
    }

    .aboutBlank {
        display: none;
    }

    .image {
        position: absolute;
        top: 52.5%;
    }

    .header {
        top: 60%;
    }

    .info {
        display: none;
    }

    .navbar ul li.hoverable:hover {
        transform: rotate(0deg);
    }

    .game-btn {
        display: none;
    }
}*/

@keyframes slideRight {
    0% {
        right: -20%;
    }
    100% {
        right: 0;
    }
}

.settings {
    position: fixed;
    justify-content: center;
    right: 0;
    height: 100%;
    width: 20%;
    background-color: rgba(33, 33, 33, 0.9);
    text-align: center;
    color: #fff;
    z-index: 152;
    animation: slideRight 0.2s ease-in-out;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 1.5vh;
    border-bottom-left-radius: 1.5vh;
    transition: 0.2s;
    overflow: scroll;
}

.settings h1, .settings i {
    margin: 3vh;
    color: #fff;
    font-size: 2vw;
    cursor: default;
    transition: 0.2s;
    position: relative;
}

.settings i {
    display: flex;
    justify-content: right;
    cursor: pointer;
    position: absolute; 
    top: 0;
    right: 0;
    z-index: 1;
}

.settings i:hover {
    color: #d1d1d1;
}

.settings h3 {
    cursor: default;
}

.settings input,select {
    padding: 7px;
    width: 50%;
    transform: translateX(40%);
    border-radius: 1.5vh;
    text-align: center;
    color: #fff;
    background-color: #121212;
    border: #444444 2px dotted;
}

.settings select {
    transform: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.settings input,label {
    margin-bottom: 10px;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.saveSetting {
    cursor: pointer;
    text-decoration: underline;
}

.saveSetting .importSave {
    margin-bottom: 15px;
}
