@font-face {
    font-family: 'c64font';
    src: url('fonts/c64font.ttf') format('truetype');
}

body,
html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: black;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#galleryPanel {
    display: none;
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: black;
    transition: right 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.matchGameSize {
    margin: 0 auto;
    aspect-ratio: 9/16;
    position: relative;
    height:100%;
}

.galleryHeader {
    width: 100%;
    display: block;
    aspect-ratio: 144/44;
    background-image: url(sprites/ui/gallery-header.png);
    text-indent: -9999px;
    background-repeat: no-repeat;
    background-size: contain;
    image-rendering: pixelated;
    float:left;
    clear: both;
}

.mainHairs {
    display: block;
    width:100%;
    aspect-ratio: 144/76;
    background-image: url(sprites/ui/gallery-mainhairs.png);
    background-repeat: no-repeat;
    background-size: contain;
    image-rendering: pixelated;
    float: left;
    clear: both;
}

#hairAmount, #curlyHairAmount {
    color:#222034;
    font-family: "c64font";
    width: 44%;
    float: left;
    text-align: center;
    font-size: 3vh;
    margin-top: 36%;
}
#hairAmount {
    margin-left: 6%;
    
}
#curlyHairAmount {
    margin-right: 6%;
}
.galleryEntries {
    overflow-y: scroll;
    width:100%;
    aspect-ratio: 144/136;
    float: left;
    clear: both;
    background-color: #222034;
}
.galleryEntries::-webkit-scrollbar {
    width: 16px;
}
.galleryEntries::-webkit-scrollbar-track {
    background: #222034;
}
.galleryEntries::-webkit-scrollbar-thumb {
    background: #ff7930;
}
.galleryEntries::-webkit-scrollbar-thumb:hover {
    background: #fff392;
}
.grid-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.grid-item {
    width: calc(50% - 10px);
    padding-bottom: calc(50% - 10px);
    background-color: white;
    margin: 5px;
    box-sizing: border-box;
}