:root {
    --primary-bg: powderblue;
}

body {
    background-color: var(--primary-bg);
}

h1 {
    color: darkblue;
    font-family: verdana;
}

h4 {
    color: auto;
    font-family: verdana;
}

p {
    color: auto;
    font-family: verdana;
}

.scroll-list {
    max-height: 580px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 0px solid #ccc;
    font-family: verdana;
}

.captured-panel {
    font-family: verdana;
    font-size: 1.5rem;
    letter-spacing: 3px;
    padding: 4px 20px;
    min-height: 2rem;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

.panel-rotated {
    transform: rotate(180deg);
}

.board-column {
    display: inline-flex;
    flex-direction: column;
}

.button-container {
    margin-left: 20px;
}

.chess-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-left: 20px;
}

.chess-history {
    margin-left: 20px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

@media (max-width: 680px) {
    .chess-history {
        margin-left: 0;
        width: 100%;
    }

    .scroll-list {
        max-height: 180px;
    }
}

#settings-panel {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    font-family: verdana;
    font-size: 14px;
}

dialog {
    background-color: var(--primary-bg);
}

#notification-container {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    /* Stacks them vertically */
    align-items: center;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.notification {
    background: #333;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    /* Entrance Animation */
    animation: slideIn 0.4s ease forwards;
    transition: all 0.5s ease;
    /* Handles the "sliding up" effect */
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-out {
    opacity: 0;
    transform: scale(0.9);
}

#game-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: powderblue;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    border-top: 1px solid #aac;
}

#game-nav a {
    font-family: verdana;
    font-size: 14px;
    color: darkblue;
    text-decoration: none;
}

#game-nav a:hover {
    text-decoration: underline;
}

#game-frame {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 40px;
    border: none;
    width: 100%;
    height: calc(100vh - 40px);
}