body {
    background-color: rgb(56, 56, 56);
    font-family: "Montserrat", sans-serif;
    align-items: center;
    background: linear-gradient(to bottom right, #1f1c2c, #928dab);
    min-height: 100vh;
}

html,
body {
    overflow: hidden;
}

.main {
    display: flex;
    justify-content: center;
}

#useless {
    background-color: rgb(56, 56, 56);
}

td {
    height: 100px;
    width: 100px;
    background-color: gray;
    border-radius: 5px;
    text-align: center;
    color: whitesmoke;
    font-size: 2vh;
    outline: none;
    user-select: none;
}

td:focus {
    outline: none;
}

.clickable {
    transition: background-color .2s ease;
}

.clickable:hover {
    background-color: #666666;
}

.in {
    display: flex;
    justify-content: center;
    margin-top: 2vh;
}

.input {
    font-family: "Montserrat", sans-serif;
    width: 20%;
    height: 45px;
    padding-left: 2.5rem;
    box-shadow: 0 0 0 1.5px #2b2c37, 0 0 25px -17px #000;
    border-radius: 12px;
    background-color: #16171d;
    outline: none;
    color: #bdbecb;
    transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: text;
    z-index: 0;
}

.input::placeholder {
    color: #bdbecb;
}

.input:hover {
    box-shadow: 0 0 0 2.5px #2f303d, 0px 0px 25px -15px #000;
}

.input:focus {
    box-shadow: 0 0 0 2.5px #2f303d;
}

li {
    color: #bdbecb;
    cursor: pointer;
    margin: 20px;
    width: 100%;
    text-align: center;
    padding: 10px;
    transition: background-color .2s ease;
}

li:hover {
    background-color: #2b2c37;
}

img {
    height: 70%;
    width: 80%;
    object-fit: contain;
}

.error {
    animation: shake 0.4s ease, border-flash 0.6s ease;
}

.right {
    animation: border-flash-green 0.6s ease;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-8px);
    }
    75% {
        transform: translateX(8px);
    }
}

@keyframes border-flash {
    0%,
    100% {
        border-color: #2b2c37;
    }
    25%,
    75% {
        border-color: red;
    }
}

@keyframes border-flash-green {
    0%,
    100% {
        border-color: #2b2c37;
    }
    25%,
    75% {
        border-color: limegreen;
    }
}

@keyframes leave {
    0% {
        opacity: 100%;
    }
    100% {
        opacity: 0%;
    }
}

#open-menu {
    padding: 10px 20px;
    background: #0078d7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

#open-menu:hover {
    background: #005fa3;
}


/* Overlay: dunkler Hintergrund */

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}


/* Sichtbar-Zustand */

#overlay.active {
    opacity: 1;
    pointer-events: all;
}


/* Menü-Fenster */

#menu {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#overlay.active #menu {
    transform: scale(1);
}


/* Menülinks */

#menu ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#menu li {
    margin: 10px 0;
}

#menu a {
    text-decoration: none;
    color: #0078d7;
    font-size: 18px;
    transition: color 0.2s;
}

#menu a:hover {
    color: #005fa3;
}


/* Schließen-Button */

#close-menu {
    margin-top: 20px;
    padding: 8px 16px;
    background: hsl(140, 94%, 28%);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#close-menu:hover {
    background: hsl(140, 94%, 20%);
}

.herz {
    width: 5%;
    height: 5vh;
}

.leave {
    animation: leave 0.5s ease-out forwards;
}

.herzen {
    margin: 10px;
    display: flex;
    justify-content: center;
}

h1 {
    text-align: center;
    color: antiquewhite;
}

.pvp {
    position: fixed;
    bottom: 10px;
    cursor: pointer;
}