:root {
    --dark-green: #1C3E2A;
    --light-green: #88FF99;
    --dark-red: #3E1C1C;
    --light-red: #FFB9B9;
    --dark-blue: #1c263e;
    --light-blue:#88afff;
    --dark-yellow: #322820;
    --light-yellow: #FFBA88;
    --dark-pink: #34222d;
    --light-pink: #F1BCDB;
    --dark-purple: #1e1d2d;
    --light-purple: #bab8df;
    --dark-gray: #222222;
    --light-gray: #c0c0c0;
}
@font-face {
    font-family: 'Minesweeper';
    src: url('../fonts/mine-sweeper.otf.woff2') format('woff2'),
    url('../fonts/mine-sweeper.otf.woff2') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'hun2';
    src: url('../fonts/hun2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'config';
    src: url('../fonts/cr.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'config', sans-serif;
}

button {
    border: 0;
}

/* Fix weird issue with img animation making it all blurry*/
img.animated-bg {
    -webkit-backface-visibility: hidden;
    -ms-transform: translateZ(0); /* IE 9 */
    -webkit-transform: translateZ(0); /* Chrome, Safari, Opera */
    transform: translateZ(0);
}

body, html {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

.background-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: rotateX(8deg) rotateY(20deg) scale3d(6, 6, 6);
    transform-style: preserve-3d;
    will-change: transform;
    z-index: -1;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.animated-bg {
    width: 120%;
    animation: moveBackground 120s linear infinite alternate;
}

@keyframes moveBackground {
    0% {
        transform: translate(-100px, -100px) scale(1);
    }
    100% {
        transform: translate(100px, 100px) scale(1);
    }
}

header {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

main {
    display: flex;
    flex-direction: column;
    width: 30%;
    margin: 0 auto;
    justify-content: center;
    padding: 2rem;
    font-family: 'config', sans-serif;
    color: white;
}

main h1 {
    font-size: 2.5rem;
    text-align: center;
}

main h2 {
    font-size: 2rem;
    text-align: center;
}

.button {
    box-sizing: border-box;
    padding: 1rem 1.5rem;
    display: inline-flex;
    line-height: normal;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 2rem;
    background-color: #222222;
    color: #c0c0c0;
    text-decoration: none;
    text-indent: unset;
}

.button.big {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    text-align: center;
}


.button.small {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
}

.button > .smalltext {
    font-size: 1.5rem;
}
.button > .smallertext {
    font-size: 1.2rem;
}

.button:hover {
    filter: brightness(1.3);
}

.button.green {
    background-color: var(--dark-green);
    color: var(--light-green);
}

.button.yellow {
    background-color: var(--dark-yellow);
    color: var(--light-yellow);
}

.button.red {
    background-color: var(--dark-red);
    color: var(--light-red);
}

.button.pink {
    background-color: var(--dark-pink);
    color: var(--light-pink);
}
.button.blue {
    background-color: var(--dark-blue);
    color: var(--light-blue);
}

.button.purple {
    background-color: var(--dark-purple);
    color: var(--light-purple);
}
.button.gray {
    background-color: var(--dark-gray);
    color: var(--light-gray);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    padding: 2rem;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    background-color: var(--dark-gray);
    font-family: 'config', sans-serif;
    color: var(--light-gray);
}

.modal-content.win {
    background-color: var(--dark-green);
    color: var(--light-green);
}
.modal-content.lose {
    background-color: var(--dark-red);
    color: var(--light-red);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.modal-info {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background-color: #222222;
    color: #c0c0c0;
    border: 1px solid #444;
    font-size: 1.5rem;
}

@media(max-width: 1700px) {
    main {
        width: 40%;
    }
}
@media(max-width: 1200px) {
    main {
        width: 70%;
    }
}
@media(max-width: 600px) {
    main {
        width: 100%;
    }
}