.table-container {
    margin: 50px auto; /* Center the table vertically and horizontally */
    max-width: 70%;    /* Limit the width of the table */
    padding: 20px;     /* Add padding around the table */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
    background-color: #f9f9f9; /* Light background color for contrast */
    border-radius: 8px; /* Round the corners slightly */
}

.text-center {
    text-align: center; /* Align text to the center */
}

.table {
    width: 100%; /* Ensure the table spans the container */
}

/* Single question page stling START */

.question-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.question-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333333;
}
.question-container p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #555555;
}
.question-container label {
    /* display: block; */
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #444444;
}
.question-container button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
}
.question-container button:hover {
    background-color: #0056b3;
}
#timer {
    margin-top: 15px;
    font-size: 1rem;
    color: #333333;
}

/* Single question page stling END */

/* Multiple question page stling START */

.question-container-two {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f5f5f5;
}

h2 {
    text-align: center;
    margin-top: 20px;
    color: #333333;
}

#answerMultipleForm {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

#answerMultipleForm div {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: calc(33.333% - 20px); /* Ensures three boxes per row with space in between */
    max-width: 300px;
    box-sizing: border-box;
}

#answerMultipleForm div h3 {
    font-size: 1.2rem;
    color: #555555;
    margin-bottom: 10px;
    text-align: center;
}

#answerMultipleForm div p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #444444;
    text-align: center;
}

#answerMultipleForm div label {
    /* display: block; */
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #333333;
}

#submitButton {
    margin: 20px auto;
    display: block;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
}

#submitButton:hover {
    background-color: #0056b3;
}

#timer {
    margin-top: 15px;
    font-size: 1rem;
    color: #333333;
    text-align: center;
}

@media (max-width: 768px) {
    #answerMultipleForm div {
        width: calc(50% - 20px); /* Two boxes per row on smaller screens */
    }
}

@media (max-width: 480px) {
    #answerMultipleForm div {
        width: 100%; /* One box per row on very small screens */
    }
}

/* Multiple question page styling END */

/* Challenge page styling START */
.challenges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.challenges-table {
    width: 55%;
    border-collapse: collapse;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.challenges-table th, .challenges-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.challenges-table th {
    background-color: #f1f1f1;
    font-weight: bold;
}

.challenges-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.challenges-table tr:hover {
    background-color: #e9e9e9;
}

.respond-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

.respond-button:hover {
    background-color: #45a049;
}

.no-challenges {
    text-align: center;
    font-size: 18px;
    color: #777;
    margin-top: 20px;
}

/* Challenge page styling END */

/* Play tournament styling START */

.question-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start; /* or center */
    margin-top: 20px;
}

.question-box {
    background-color: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    width: 300px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

#submit-button {
    margin: 20px auto;
    display: block;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
}

#submit-button:hover {
    background-color: #0056b3;
}


.intro-box {
    background-color: #f8f9fa;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.feature-box {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.landing_text {
    font-weight: 600;
    color: #003366;
}

.paragraph_text {
    font-size: 1rem;
    color: #333333;
}

.btn-lg {
    min-width: 150px;
}

.landing-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}


html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('images/obscurenaut.png');  /* Replace with your image path */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /*background-color: rgba(255, 255, 255, 0.4); /* Change alpha for lighter or darker overlay */
    z-index: -1; /* Keep it behind your content */
}

.main-content {
    background-color: rgba(255, 255, 255, 0.85);  /* semi-transparent white */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    background-color: rgba(0, 0, 0, 0.6) !important; /* semi-transparent black */
    backdrop-filter: blur(5px);                     /* optional: adds blur for elegance */
    -webkit-backdrop-filter: blur(5px);             /* Safari support */
    border-radius: 0 0 10px 10px;                   /* optional: rounded bottom corners */
}

.navbar .nav-link,
.navbar .navbar-brand,
.navbar .dropdown-menu a {
    color: #fff !important;                         /* white text */
    font-weight: 500;
}

.navbar .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.85);           /* darker dropdown for contrast */
}

.navbar .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);      /* subtle hover effect */
}


.tournament-container {
    background-color: rgba(255, 255, 255, 0.9); /* Light semi-transparent background */
    padding: 20px;
    border-radius: 15px;
    max-width: 900px;
    margin: 30px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tournament-container h1, 
.tournament-container h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.tournament-container ul {
    list-style: none;
    padding: 0;
}

.tournament-container li {
    background: rgba(255, 255, 255, 0.85);
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tournament-container a {
    margin-left: 10px;
}

.tournament-container form {
    margin-top: 10px;
    display: inline-block;
    margin-right: 10px;
}

#rounds {
    margin-left: 10px;
    margin-right: 10px;
}

.table-dark th, .table-dark td {
  color: #f8f9fa;
  background-color: #212529;
  border-color: #32383e;
}

.table-dark thead th {
  background-color: #343a40;
  color: #ffffff;
}