body {
    background-color: #2b2b2b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    margin-top: -10px;
    padding: 0 !important;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

.menu-items {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    width: 200px;
}

.menu-items.show {
    display: block;
}

.menu-items a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 8px;
}

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

.menu-items hr {
    border: 0;
    border-top: 1px solid #555;
    margin: 8px 0;
}


.menu-container {
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
}

.new-game-form, .ongoing-games {
    margin-top: 20px;
    padding: 15px;
    background-color: #444;
    border-radius: 5px;
}

.form-field {
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

input {
    width: 90%;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Dropdown Menu Styles -- Hamburger Menu */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background-color: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    width: 100%;
    text-align: left;
}

.dropdown-content {
    display: none;
    background-color: #444;
    padding-left: 15px;
    margin-top: 5px;
    border-radius: 5px;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    padding: 6px;
    display: block;
    color: #fff;
    text-decoration: none;
}

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

button, .btn-resume {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button, .btn-resume:visited {
    color: white;
}

button:hover, .btn-resume:hover {
    background-color: #00b359;
}

button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

/* Adjust logout button in main menu */
.btn-logout {
    margin-left: 5px;
}

/* Table styling for adding puzzles, categories, etc. */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #333;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #444;
}

th {
    background-color: #444;
    font-weight: bold;
}

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

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

/* Scrollable table styling */
.scrollable-table {
    max-height: 400px; /* Set the max height for the table */
    overflow-y: auto;  /* Enable vertical scrolling */
    border: 1px solid #444; /* Optional: Add a border for better visual separation */
    margin-bottom: 20px;
}

/* Table header fixed at the top */
.scrollable-table thead {
    position: sticky;
    top: 0;
    background-color: #333; /* Background color to match the table styling */
    z-index: 2; /* Ensures the header is above table content */
}

/* Scrollable table styling */
.scrollable-profile {
    /*max-height: 400px; !* Set the max height for the table *!*/
    overflow-y: auto;  /* Enable vertical scrolling */
    border: 1px solid #444; /* Optional: Add a border for better visual separation */
    margin-bottom: 20px;
}

/* Table header fixed at the top */
.scrollable-profile thead {
    position: sticky;
    top: 0;
    background-color: #333; /* Background color to match the table styling */
    z-index: 2; /* Ensures the header is above table content */
}

/* Default style for links */
a {
  color: #00cc66;
}

a:visited {
  color: #00b359;
}

/* Message container -- used when there is a need to show error or other messages; adding puzzles, etc. */
.message-container {
    margin-bottom: 20px;
}

/* Message styling */
.message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Different message types */
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Style to set something to hidden */
.hidden {
    visibility: hidden;
    opacity: 0;
}

.profile-bullet {
    text-align: left;
}

.profile-form li {
    text-align: left;
}

#feedback-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}
#feedback-button:hover {
    background-color: #45a049;
}

/* Modal container */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden; /* Hidden by default */
    opacity: 0; /* Transition effect */
    transition: visibility 0s, opacity 0.3s ease;
}

/* Modal content */
.feedback-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slide-down 0.3s ease; /* Smooth entry animation */
}

/* Modal header */
.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.feedback-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.feedback-modal-close {
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.feedback-modal-close:hover {
    color: #000;
}

/* Modal body */
.feedback-modal-body {
    margin-bottom: 20px;
}

.feedback-modal-body label {
    font-size: 14px;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.feedback-modal-body input,
.feedback-modal-body textarea,
.feedback-modal-body select {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.feedback-modal-body textarea {
    resize: vertical;
}

/* File input styling */
.feedback-modal-body input[type="file"] {
    border: none;
    background: none;
    padding: 0;
    font-size: 14px;
}

/* Modal footer */
.feedback-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.feedback-modal-footer .btn-submit {
    background-color: #4CAF50;
    color: #fff;
}

.feedback-modal-footer .btn-submit:hover {
    background-color: #45a049;
}

.feedback-modal-footer .btn-cancel {
    background-color: #ccc;
    color: #333;
}

.feedback-modal-footer .btn-cancel:hover {
    background-color: #bbb;
}

/* Show modal */
.feedback-modal.show {
    visibility: visible;
    opacity: 1;
}

/* Entry animation */
@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
