@import url('https://fonts.googleapis.com/css2?family=Bitcount+Grid+Double:wght@100..900&family=Jersey+10&family=Oswald:wght@200..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes bob-up-down {
        0% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(var(--bob-amount));
        }
        100% {
            transform: translateY(0);
        }
    } 

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url("pixel.jpeg") center center / cover no-repeat fixed;
}

.credit {
    color: white;
    text-align: center;
    font-family: "Bitcount Grid Double", system-ui;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings: "slnt" 0, "CRSV" 0.5, "ELSH" 0, "ELXP" 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 0.75rem 0 0;
}

h1 {
    color: green;
    text-align: center;
    font-family: "Bitcount Grid Double", system-ui;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "slnt" 0, "CRSV" 0.5, "ELSH" 0, "ELXP" 0;
    font-size: 5rem;
    margin-top: 8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h1, h3 {
    --bob-amount: -1rem;
    animation: bob-up-down 1.8s ease-in-out infinite;
}

h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10rem;
    font-family: "Jersey 10", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3rem;
    color: black;
    border: 4px solid #2d3033;
    border-radius: 20px;
    background-color: #3099f0;
    padding: 20px;
    width: 500px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buttonarea {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 30px;
}

#gamename {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

#gamename:hover {
    background: lightgrey;
}

#addgame {
    background: #4391f7;
    padding: 20px;
    border: 3px solid black;
    border-radius: 10px;
    color: white;
}

#addgame:hover {
    background: #65a5f7;
}

.list-box {
    width: 20rem;
    height: 30rem;
    background-color: #979da6;
    border-radius: 30px;
    border: 4px solid black;
    justify-self: center;
    overflow: auto;
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    clip-path: inset(0 round 30px);
    overflow-x: hidden;
}

.list-box::-webkit-scrollbar {
    width: 8px;
}


.list-box::-webkit-scrollbar-thumb {
    background: #4391f7;
    border-radius: 4px;
}

#gamelist div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin: 3px 5px;
    color: white;
    background-color: #6b7280;
    border-radius: 8px;
}

#gamelist button {
    background-color: #4391f7;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

#gamelist button:hover {
    background-color: #1e90ff;
}

#gamelist div:last-child {
    border-bottom: none;
}

.game-buttons {
    display: flex;
    gap: 10px;
}