/* === Global Styles === */
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: white;
    text-align: center;
    margin: 0;
    overflow: auto;
    touch-action: auto;
}
html, body {
    height: 100%;
}


/* === Navigation Styles === */
.nav-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 22px;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
    text-decoration: underline;
    color: white;
}


/* === Page Containers === */
.roadmap-container {
    max-width: 800px;
    margin: 30px auto 50px;
    padding: 20px;
    text-align: left;
    background-color: #1e1e1e;
    border-radius: 8px;
}

.changelog-container {
    max-width: 800px;
    margin: 30px auto 50px;
    padding: 20px;
    text-align: left;
    background-color: #1e1e1e;
    border-radius: 8px;
}


/* === Roadmap & Changelog Entries === */
.roadmap-entry, .changelog-entry {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.roadmap-entry:last-child, .changelog-entry:last-child {
    border-bottom: none;
}

.roadmap-entry p, .changelog-entry p {
    margin-top: 5px;  /* Adjust this as needed */
    margin-bottom: 5px;  /* Ensure equal spacing */
}

.feature-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.feature {
    font-size: 20px;
    font-weight: bold;
    color: white;
    flex: 1;
}

.priority {
    font-size: 14px;
    padding: 2px 10px;
    border-radius: 50px;
    color: black;
    display: inline-block;
    text-align: center;
    line-height: 20px;
    margin-left: 20px;
}

.high { background-color: #ff6464; }
.medium { background-color: #ffb964; }
.low { background-color: #64e2ff; }
.high::after { content: " High Priority"; }
.medium::after { content: " Medium Priority"; }
.low::after { content: " Low Priority"; }

.version {
    font-size: 20px;
    font-weight: bold;
    color: #4aff26;
}
.date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}
.details {
    margin-top: 5px;
    font-size: 16px;
}
.details a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}


/* === Footer Styles === */
#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}
#credits, #version-number {
    font-size: 12px;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.6);
}
#credits a, #version-number a {
    text-decoration: none;
}
#credits a:hover, #version-number a:hover {
    text-decoration: underline;
}

/* === Game Board Styles === */
#board-container {
    display: none;
    position: relative;
}
#board {
    width: 400px;
    margin: 0px auto;
    display: inline-block;
}
#timer, #penalty-counter, #status {
    font-size: 20px;
    margin-top: 5px;
}
#timer-penalty-container {
    display: flex;
    justify-content: space-between;
    width: 400px; /* Match the width of the chessboard */
    margin: 10px auto; /* Center align */
}

#timer {
    text-align: left;
}

#penalty-counter {
    text-align: right;
}
.highlight-move {
    background-color: rgba(255, 255, 0, 1) !important;
}



/* === UI Elements === */
#share-button {
    display: none;
    margin: 10px auto;
    padding: 12px 24px;
    font-size: 18px;
    background-color: #4aff26;
    color: black;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.fullscreen-menu h1 {
    font-size: 42px;
    margin-bottom: 10px;
}
.fullscreen-menu p {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 30px;
}
.fullscreen-menu button {
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
    background-color: white;
    color: black;
    border: none;
    border-radius: 50px;
}


/* === Copy Message Notification === */
#copy-message {
    display: none;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
}


/* === Layout Adjustments === */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}
#page-content {
    flex: 1; /* Pushes the footer down if there's not enough content */
}
#footer-container {
    margin-top: auto;
}

/* === Move Indicator Styles === */
.move-indicator {
    width: 24px;
    height: 24px;
    background-color: rgba(70, 70, 70, 0.5);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-card {
    background: #121212;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.view-results-button {
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
    background-color: white;
    color: black;
    border: none;
    border-radius: 50px;
}
