body {
    background: #2a2a2a;
    font-family: 'Orbitron', monospace;
    color: #00ff00;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

@font-face {
    font-family: 'vintage';
    src: url(fonts/AlteSchwabacher-lgw0.ttf) format('truetype');
}

@font-face {
    font-family: 'vintage-bold';
    src: url(fonts/Hustlersroughdemo-6OM1.ttf) format('truetype');
}

#wrapper {
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
}

.game-container,
#menu {
    /* background: #4a4a4a; */
    border: 6px solid #666;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(0, 0, 0, 0.5);
    max-width: 1000px;
    width: 100%;
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url('img/adam-och-eva.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#menu {
    background-image: url('img/adam-och-eva.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #00ff41;
    padding-bottom: 15px;
    position: relative;
    width: 100%;
}

.header h1 {
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 0 20px #00ff41;
    animation: glow 2s ease-in-out infinite alternate;
    margin: 0;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px #00ff41;
    }

    to {
        text-shadow: 0 0 30px #00ff41, 0 0 40px #00ff41;
    }
}

#backButton,
#customMenuBackButton {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #666;
    color: #ffff00;
    border: 2px solid #888;
    border-radius: 5px;
    padding: 8px 15px;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

#canvasWrapper {
    position: relative;
    height: 500px;
    width: 500px;
}

#canvasWrapper p {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
}

canvas {
    border: 1px solid black;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    height: 500px;
    width: 500px;
    box-sizing: border-box;
}

#menu>h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #00ccff;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.5);
    font-weight: bold;
}

.level-card {
    /* background: linear-gradient(45deg, #001122, #003366); */
    background-image: url('img/book.webp');
    /* border: 2px solid #00ff41; */
    color: #000000;
    padding: 15px 20px 15px 50px;
    font-family: 'vintage-bold';
    font-size: 1.4rem;
    font-weight: bolder;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 10px;
    width: 350px;
    margin-bottom: 5px;
}

.level-card:hover {
    transform: scale(1.05);
}

.level-card h2 {
    margin: 0;
    padding: 0;
    font-size: 2rem;
}

.level-card p {
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
}



#scoreContainer {
    background: #1a1a1a;
    border: 3px solid #00ff00;
    border-radius: 8px;
    padding: 15px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    position: static;
    height: 22.5%;
    width: fit-content;
}

#scoreContainer p {
    margin: 0;
}

#scoreContainer div {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#togglePauseButton,
#resetButton {
    background: #00ff00;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

#highScoreListContainer {
    /* background: #3a3a3a; */
    background-image: url('img/highscorelist.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'vintage';
    /* border: 2px solid #666; */
    border-radius: 8px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 200px;
    flex-shrink: 0;
    height: 290px;
    color: #000000;
    font-size: 1.5rem;
}

#highScoreListContainer h2 {
    margin: 0;
    padding: 0;
    font-size: 1.8rem;
    color: #000000;
    letter-spacing: 4px;
}


#highScoreList {
    list-style-type: none;
    padding: 0;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.centered {
    justify-content: center;
    align-items: center;
}

.yellow {
    color: #ffff00;
}

.main-content {
    gap: 20px;
    margin-bottom: 20px;
}

.left-col {
    background: #3a3a3a;
    border: 2px solid #666;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    width: 200px;
    flex-shrink: 0;
    height: fit-content;
}

.left-col button {
    padding: 5px;
}

.left-col img {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.left-col h5 {
    margin: 0;
    padding: 0;
    font-size: 0.7rem;
    color: #888;
}

#customMenu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    align-items: center;
    height: 100%;
    width: 100%;
}

.custom-menu-items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.custom-menu-items .input-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

.custom-menu-items .input-group span {
    width: 30px;
}

.custom-menu-items .input-group label {
    font-size: 0.9rem;
    color: #00ff00;
    width: 300px;
}

#menuItems {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#customLevelButton {
    background: #00ff00;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 12px 15px;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    width: 30%;
    margin-top: 25px;
}