@font-face {
    font-family: pixelFont;
    src: url(/styles/retro.ttf);
}

* {
    font-family: pixelFont, monospace;
    box-sizing: border-box;
}

body {
    background-color: #170330;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='321' height='321' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23361264' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23361264'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");
    box-sizing: border-box;
    background-color: #170330;
    margin: 0;
    font-weight: 300;
}

header {
    background: #361264;
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.header {
    width: fit-content;
    max-width: 1000px;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    color: white;
    align-items: center;
}

.header > h1 {
    margin: 0;
    color: white;
    font-size: 30px;
}

.stats {
    padding-right: 20px;
    border: 1px solid #170330;
    display: flex;
    align-items: center;
    background-color: #170330;
    padding: 15px 10px;
}

.stats > span {
    margin: 0 10px;
}

.stats > span:first-of-type > span {
    min-width: 20px;
    display: inline-block;
}

.stats > span:last-of-type > span {
    min-width: 100px;
    display: inline-block;
}

main {
    max-width: 1000px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    padding: 0 10px;
}

.wrapper {
    text-align: center;
    border: 1px solid #361264;
    width: 550px;
    height: 550px;
    overflow: hidden;

    position: relative;
    margin-bottom: 50px;
}
canvas {
    background-image: url(./resources/3BBK.gif), url(./resources/1DFCC4D1-C2A5-4E6E-AB06-E295B8FF4ABF_1_105_c.jpeg);
}

@media (max-width: 900px) {
    .wrapper,
    .leader-board {
        margin: 0 auto;
    }

    .wrapper {
        margin-bottom: 50px;
    }
}

@media (max-width: 600px) {
    canvas {
        transform: scale(0.6);
    }
    .wrapper {
        border: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

img {
    display: none;
}

.menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #170330;
    width: 350px;
    height: 450px;
    overflow: hidden;
    color: white;
    border: 1px solid #3e1574;
}

.menu__title {
    background: #361264;
    color: white;
    width: 100%;
    font-size: 20px;
    margin: 0;
    padding: 10px 0;
    height: fit-content;
    margin: 20px 0;
}

.menu__score {
    font-size: 20px;
    text-align: center;
}

.menu button {
    background: #361264;
    color: white;
    border: none;
    padding: 10px 20px;
    display: block;
    margin-bottom: 20px;
    width: 200px;
    margin-left: 75px;
}

.menu button:hover {
    background-color: #3e1574;
    cursor: pointer;
}

.menu p {
    font-family: monospace;
    font-size: 14px;
    line-height: 20px;
    text-align: start;
    padding: 10px;
}

.menu ul {
    list-style: none;
}

.menu li {
    font-family: monospace;
    text-align: start;
    margin-bottom: 10px;
    font-size: 14px;
}

.initials-container > div {
    display: flex;
    justify-content: center;
    padding: 0;
    margin-bottom: 20px;
}

.initials-container input {
    width: 100px;
    flex: 1;
    background: #170330;
    border: 5px solid #361264;
    color: white;
}

.initials-container button {
    width: fit-content;
    margin: 0;
    background-color: #170330;
    border: 5px solid #361264;
}

/* Game */

.leader-board {
    flex: 1;
    max-width: 550px;
}

.leader-board > h2 {
    text-align: center;
    margin: 0 0 20px 0;
    color: #5dc1ffec;
    font-size: 20px;
}

#players {
    background: #170330;
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 50px;
}

#players td,
#players th {
    border: 1px solid #361264;
    padding: 8px;
    text-align: center;
    color: #5dc1ffec;
}

#players th {
    padding-top: 12px;
    padding-bottom: 12px;
}

audio {
    display: none;
}

.volume-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}

.volume-container i {
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#volumeOn {
    display: none;
}
