/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #000;
    overflow: hidden;
    color: #fff;
}

/* Video Background */
#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) blur(5px);
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

/* Menu Bar */
#menuBar {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

#menuBar ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

#menuBar a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

#menuBar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#menuBar a.active {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* App Container */
#app {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in-out, floatUp 1s ease-out;
}

/* Logo Area */
#logoArea {
    margin-bottom: 30px;
}

#logo {
    max-width: 300px;
    height: auto;
}

/* Info Area */
#infoArea {
    margin-bottom: 30px;
}

#modeInfoArea {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

#triesArea,
#resultArea {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Guess Area */
#guessArea {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

#selectGuess {
    width: 70%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    margin-right: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 1rem;
    margin-left: 5px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn-yellow {
    background-color: #f5e94b;
    color: #000;
    box-shadow: 0 4px 15px rgba(245, 233, 75, 0.3);
}

.btn-yellow:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 233, 75, 0.5);
}

.btn-yellow:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(245, 233, 75, 0.5);
}

#checkArea {
    overflow-x: auto;
    margin-top: 20px;
}

#checkGrid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
}

#checkGrid th,
#checkGrid td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    font-size: 0.9rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    vertical-align: middle;
}

#checkGrid th {
    font-weight: bold;
    text-transform: uppercase;
    background-color: rgba(255, 255, 255, 0.1);
}

.same {
    background-color: rgba(76, 175, 80, 0.7) !important;
    color: #fff;
}

.wrong {
    background-color: rgba(244, 67, 54, 0.7) !important;
    color: #fff;
}

/* Modal Styles */
#modal,
#modalOverlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 100;
    width: 80%;
    max-width: 600px;
}

#modalInner {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    max-height: 80vh;
    overflow-y: auto;
    color: #333;
}

#modalClose {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

#modalClose:hover {
    color: #333;
}

#modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99;
}

#modal.open,
#modalOverlay.open {
    opacity: 1;
    visibility: visible;
}

#modal.open {
    transform: translate(-50%, -50%) scale(1);
}

/* Select2 Dropdown Styling */
.student-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.select2-container .select2-selection--single {
    height: 50px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 50px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
}

.select2-results__option {
    padding: 8px;
    display: flex;
    align-items: center;
    color: #000;
}

/* .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { */
    /* background-color: rgba(0, 0, 0, 0.2); */
    /* color: #000; */
/* } */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes floatUp {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* New animation for guessing */
.guessing {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}