#pause-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 10001;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

#pause-menu.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

#pause-menu.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

#pause-menu.fade-in {
    animation: forwards fadeInScale 0.5s ease;
}

.pause-content {
    text-align: center;
    padding: 60px 80px;
    user-select: none;
    transform: scale(0.8);
}

.pause-content h2 {
    font-size: 64px;
    color: #ecf0f1;
    margin: 0 0 30px 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Rye', sans-serif;
    letter-spacing: 8px;
}

.pause-content .hint {
    color: #bdc3c7;
    font-size: 16px;
    margin: 0;
    font-style: italic;
}

.pause-level-indicator {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 24px;
    color: #ecf0f1;
    font-family: 'Rye', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    user-select: none;
}

.pause-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.pause-buttons .game-btn {
    width: 300px;
    padding: 18px 40px;
    font-size: 24px;
    color: white;
    background: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rye', sans-serif;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: #000 2px 2px 4px;
}

.pause-buttons .game-btn:hover {
    transform: scale(1.05);
}

.pause-buttons .game-btn .button-icon {
    display: none;
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

.pause-buttons .game-btn:hover .button-icon {
    display: inline-block;
}

.pause-buttons .resume-btn {
    border: rgb(0, 200, 0) 3px solid;
    transition: all 0.3s ease;

}

.pause-buttons .resume-btn:hover {
    background-color: rgb(0, 200, 0);
    opacity: 1;
}

.pause-buttons .leave-btn {
    border: rgb(207, 47, 47) 3px solid;
    transition: all 0.3s ease;
}

.pause-buttons .leave-btn:hover {
    background-color: rgb(207, 47, 47);
    opacity: 1;
}

#in-game-settings {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.05);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
}

#in-game-settings .pause-content {
    text-align: center;
    padding: 60px 80px;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-btn {
    font-size: 24px;
    font-family: 'Rye', sans-serif;
    color: white;
    text-shadow: #000 2px 2px 4px;
    border: none;
    background: none;
    cursor: pointer;
    user-select: none;
    transition: all 0.125s ease;
    position: relative;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.back-btn .button-icon {
    display: none;
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

.back-btn:hover {
    transform: scale(1.1);
    color: rgb(207, 47, 47);
    text-shadow: #000 1px 1px 4px;
    font-weight: bold;
}

.back-btn:hover .button-icon {
    display: inline-block;
}