@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden; /* Ensure the element is not interactable */
    }
}


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

/* General Layout */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    padding: 0;
    color: #333;
}

header {
    display: flex;
    align-items: center;
    background-color: #333;
    position: relative;
    padding: 10px 20px;
}

footer{
    padding: 10px 0;
}

.menu {
    display: flex;
    gap: 10px;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.menu p {
    color: white;
    padding: 10px 6px;
}

.menu a:hover {
    background-color: #555;
}

.menu a.active {
    background-color: #007bff;
    color: white;
}


.main-content {
    display: flex;
    flex-direction: column;
    margin: 20px auto;
    align-items: center;
    z-index: 0;

h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 35px;
    font-weight: bold;
    text-align: center;
}

/* Main Container for Flex Layout */
.main-container {
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: flex-start;
}

.box {
    display:flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
}

.box h3 {
    color: #2c3e50;
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Dropdown Styling */
.dropDown {
    width: 100%;
    max-height: 200px; /* Limits height with scrolling */
    padding: 8px;
    font-size: 14px;
    color: #333;
    background-color: #f9fbfc;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}

/* Hover and Focus Effects for Dropdown */
.dropDown:hover, #handSelect:focus {
    border-color: #3498db;
    box-shadow: 0px 0px 4px rgba(52, 152, 219, 0.3);
}

.dropDown option {
    padding: 8px;
    color: #333;
    background-color: #f9fbfc;
    border-bottom: 1px solid #eee;
}

.dropDown option:hover {
    background-color: #3498db;
    color: white;
}

.dropDown option:checked {
    background-color: #2980b9;
    color: white;
}

.dropDown {
    width: 100%;
    max-height: 500px; /* Enables scrolling for the dropdown */
    overflow-y: auto;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

button {
    background-color: #1abc9c;
    color: white;
    margin: 0 10px;
    font-size: 16px;
    padding: 12px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #16a085;
}

#exit-button{
    position: absolute;
    right:2%;
    top:0;
    color: black;
    margin: 0 0;
    font-size: 16px;
}


/* Game Info Container on Right */

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
}

table thead {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

table, th, td {
    border: 1px solid #ddd;
}


th, td {
    padding: 15px;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #f9fbfc;
}

tr:hover {
    background-color: #f1f7ff;
}

th {
    background-color: #2980b9;
}

tr.highlighted-row {
    background-color: #e0f0ff; 
    color: #2c3e50;
}

.loginForm {
    display: flex;
    flex-direction: column;  /* or column if you want them stacked */
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 20px;
}

.loginForm button{
    padding: 8px;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#flash_container{
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translate(-50%);
    z-index: 2;
}

.flash_message {
    animation: fadeOut; 
    animation-duration: 10ms;
    animation-delay: 3s;
    animation-fill-mode: forwards;
    border-radius: 8px;
    background: #3498db;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.flash_message.error {
    background: red;
}
