/* Custom Font - Updated with actual font filename */
@font-face {
    font-family: 'DevilFont';
    src: url('fonts/devil_font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Luminari', 'Palatino', 'Book Antiqua', Georgia, serif;
    background-color: #F5A623; /* Match the orange/gold of the image edges */
    color: #333;
    margin: 0;
    padding: 0;
    /* Fixed viewport - 1920x1080 optimized, no scrolling */
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    /* Set background image - contain to show full image without cropping */
    background-image: url('Images/logo\ copy.jpg');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

/* Group all Luminari-using elements together */
.title,
.subtitle,
.btn,
.team-banner,
.topic-header,
.good-topic .topic-content {
    font-family: 'Luminari', 'Copperplate', 'Papyrus', fantasy;
}

/* Group all DevilFont-using elements together */
.devils-advocate-text,
.debate-time-text,
.footer span {
    font-family: 'DevilFont', 'Luminari', 'Copperplate', 'Papyrus', fantasy !important;
    letter-spacing: 1px;
    font-weight: normal;
}

/* Keep normal title styling */
.title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: normal;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.7), 0 0 20px rgba(255, 50, 50, 0.5);
}

/* Ensure debate title has all styling properties */
.debate-title {
    font-size: 2.5rem; /* Compact for 1080p */
    color: #ffffff;
    font-weight: normal;
    font-family: 'DevilFont', 'Luminari', 'Copperplate', 'Papyrus', fantasy;
    line-height: 1.2;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.7), 0 0 20px rgba(255, 50, 50, 0.5);
    margin: 5px 0;
}

/* Ensure footer with Devil's Advocate has proper styling */
.footer span {
    font-family: 'DevilFont', 'Luminari', 'Copperplate', 'Papyrus', fantasy;
}

/* Add data attribute selectors for more flexibility */
[data-text-type="DEVIL'S ADVOCATE"],
[data-text-type="DEBATE TIME"],
[data-text-type="devil's advocate"],
[data-text-type="debate time"] {
    font-family: 'DevilFont', 'Luminari', 'Copperplate', 'Papyrus', fantasy !important;
}

/* Devil emoji decorations */
.devil-emoji {
    position: absolute;
    font-size: 80rem; /* Base size if JavaScript sizing fails */
    z-index: 1;
    pointer-events: none;
    user-select: none;
    transform: translate(-50%, -50%); /* Center the emoji on its position point */
    opacity: 0.7;
    display: block; /* Ensure block display */
    line-height: 1; /* Tight line height */
}

.container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1); /* Very subtle transparent overlay */
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    border: 2px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    backdrop-filter: blur(5px); /* Slight blur effect */
    /* Constrain to viewport */
    max-height: 90vh;
    overflow-y: auto;
}

.container.debate-container {
    max-width: 1800px;
    width: 95vw;
    padding: 10px 15px;
    /* Center the debate container in viewport */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-height: 95vh;
    overflow-y: auto;
}

/* Ensure the container spaces left and right teams */
.teams-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin: 20px 0;
}

/* Remove old team section title */
.team-section-title {
    display: none; /* Hide the old title */
}

/* Index page styling */
.subtitle {
    font-size: 1rem;
    color: #ffcccb;
    margin-bottom: 10px;
    max-width: 95%;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.btn {
    display: inline-block;
    background-color: rgba(244, 67, 54, 0.8); /* Semi-transparent red */
    color: #fff;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: normal;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(3px);
}

/* Explicit primary style to mirror landing page semantics */
.btn.primary {
    background-color: rgba(244, 67, 54, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
    background-color: rgba(183, 28, 28, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn.secondary {
    background-color: rgba(255, 205, 210, 0.3); /* Semi-transparent light pink */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(3px);
}

.btn.secondary:hover:not(#judge-mode-btn) {
    background-color: rgba(229, 115, 115, 0.5); /* Semi-transparent light red */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Judge button hover should not override inline styles */
#judge-mode-btn:hover {
    opacity: 1; /* Prevent any default hover effects */
}

/* Judge button initial state - JavaScript will handle state changes with inline styles */
#judge-mode-btn {
    /* Base styles - will be overridden by JavaScript inline styles */
    background-color: rgba(255, 205, 210, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: none; /* Disable transitions that might interfere */
}


.loading {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #ffcccb; /* Light pink */
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.hidden {
    display: none;
}

.dots {
    display: inline-block;
}

/* Logo styling */
.logo-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    position: relative;
}

/* Debate page styling */
.debate-header {
    margin-bottom: 10px;
}

/* filepath: /Users/macbook/Desktop/Devil's Advocate/static/styles.css */
.debate-container .topic-box {
    margin: 0 auto; /* Center the topic box horizontally */
    text-align: center; /* Center the text inside the box */
    display: flex; /* Use flexbox for vertical alignment */
    flex-direction: column; /* Ensure content stacks vertically */
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    height: 100%; /* Optional: Adjust height if needed */
}

.debate-container .topic-header {
    text-align: center; /* Center the "Today's Topic" header */
}

.debate-container .topic-content {
    align-items: center; /* Center the question text */
    margin: 0 auto; /* Center the content horizontally */
}


.topic-content {
    padding: 20px 20px;
    font-size: 2.5rem;  /* Reduced for 1920x1080 fit */
    color: #ffffff;
    font-weight: bold;
    align-items: center;
    line-height: 1.3;
    word-break: break-word;
    position: relative;
    top: 0;
}

.debate-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px; 
    width: 100%; 
    margin: 10px auto; 
    flex-wrap: wrap;
    position: relative;
}

.team {
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid;
    min-width: 200px;
    max-width: 450px;
    width: 100%;
    margin-top: 0; /* No overlap for cleaner 1080p layout */
}

.team-left {
    order: 1; /* Left team is the first item */
}

.team-right {
    order: 3; /* Right team is the third item */
}

.team-banner {
    font-size: 2rem; /* Slightly smaller */
    font-weight: normal; 
    padding: 12px;
    border: none; /* Remove individual border */
    border-bottom: 2px solid; /* Add border between banner and members, color set by specific class */
    border-radius: 0; /* Remove radius */
    text-align: center; /* Center banner text */
}

.team-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Two columns for members */
    row-gap: 2px;/* Space between members */
    column-gap: 40px; /* No gap between columns */
    padding: 15px;
    background-color: transparent; /* Let .team background show */
    border: none; /* Remove individual border */
    border-radius: 0; /* Remove radius */
    text-align: center; /* Center  member names */
}

.member {
    font-size: 1.7rem; /* Slightly smaller */
    margin: 8px 0;
    font-weight: bold;
}

.team-style-for {
    border-color: #FFD700; /* Red border */
}
.team-style-for .team-banner {
    background-color: #ffffff; /* Light red background */
    color: #000000; /* Dark red text */
    border-bottom-color: #FFD700; /* Red border at the bottom */
}
.team-style-for .member {
    color: #000000; /* Dark red text for members */
}

.team-style-against {
    border-color: #FFD700; /* Slightly darker red border */
}
.team-style-against .team-banner {
    background-color: #ffffff; /* Slightly darker red background */
    color: #000000; /* Dark red text */
    border-bottom-color: #FFD700; /* Darker red border at the bottom */
}
.team-style-against .member {
    color: #000000; /* Dark red text for members */
}

/* Judge Display Box Styling */
.judge-display {
    background-color: rgba(255, 255, 255, 0.9);
    color: #52152E;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 0 15px; /* align horizontally between teams */
    display: flex; /* center content */
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-family: 'Luminari', fantasy;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3px);
    max-width: 300px; /* fixed reasonable width */
    order: 2; /* place between left (1) and right (3) */
}

/* Flash Message Styling */
.flash-message {
    padding: 12px 18px;
    margin: 15px auto; /* Center horizontally */
    border-radius: 6px;
    font-size: 1rem;
    max-width: 800px; /* Limit width */
    text-align: center;
    border: 1px solid transparent;
}

.flash-message.info {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

.flash-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.flash-message.success { /* Optional: Add success style if needed */
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Feedback message styling (if still used directly, otherwise rely on flash) */
.feedback-message {
    padding: 0;
    margin: 15px 0 0 0;
    background: none;
    color: inherit;
    border: none;
    border-radius: 0;
    text-align: center;
    font-size: 0.95rem;
}

/* Topic rating buttons styling */
.topic-rating {
    display: flex;
    justify-content: center;
    /* remove box styling around rating buttons */
    border-top: none;
    background-color: transparent;
    /* optional: remove extra padding */
    padding: 0;
    gap: 15px;
}

.inline-form {
    display: inline-block;
}

.rating-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 20px;
    min-width: 120px;
}

.good-btn {
    background-color: #e57373;
    color: white;
    border: 1px solid #f44336;
}

.good-btn:hover {
    background-color: #f44336;
}

/* Button group styling */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}


/* Form styling */
.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px; /* Reduced from 18px */
    text-align: left;
    max-width: 90%; /* Added to constrain width */
    margin-left: auto;
    margin-right: auto;
}

.form-group label {
    font-size: 1.5rem; /* Increased further from 1.3rem */
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: bold; /* Make labels bolder */
    text-shadow: 0 0 5px rgba(0,0,0,0.3); /* Add text shadow for better readability */
}

textarea, input[type="text"], input[type="email"], input {
    width: 100%;
    padding: 12px; /* Increased from 10px */
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #333333;
    font-size: 1.6rem; /* Increased from 1.4rem */
    font-family: 'Luminari', 'Palatino', 'Book Antiqua', Georgia, serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(2px);
}

/* For textarea specific styles */
textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 150px;
}

/* Add focus styles for all input types */
textarea:focus, input[type="text"]:focus, input[type="email"]:focus, input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Ensure placeholders are visible */
textarea::placeholder, input::placeholder {
    color: rgba(70, 70, 70, 0.7); /* Darker placeholder for better visibility on light backgrounds */
    opacity: 1; /* Ensure consistent opacity across browsers */
}

/* Apply specific styles for the setup/topic page */
body[data-page="setup-topic"] .form-group label,
.setup-topic-page .form-group label {
    font-size: 1.7rem; /* Even larger for the specific page */
    margin-bottom: 12px;
}

body[data-page="setup-topic"] textarea, 
body[data-page="setup-topic"] input,
.setup-topic-page textarea,
.setup-topic-page input {
    font-size: 1.8rem; /* Even larger for the specific page */
    padding: 15px;
}

.error-message {
    color: #ffb3b3;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(183, 28, 28, 0.3);
    border-left: 3px solid #ff5252;
    text-align: left;
    border-radius: 4px;
}

/* Flash message styles */
.flash-message {
    margin-bottom: 15px;
    padding: 10px;
    text-align: left;
    border-radius: 4px;
    border-left: 3px solid;
}

.flash-error {
    color: #ffb3b3;
    background-color: rgba(183, 28, 28, 0.3);
    border-left-color: #ff5252;
}

.flash-info {
    color: #b3e5fc;
    background-color: rgba(13, 71, 161, 0.3);
    border-left-color: #2196f3;
}

/* Account Banner Styles */
.account-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #4B0082;
    color: white;
    padding: 6px 20px;
    z-index: 1000;
    font-size: 0.85rem;
    height: 36px;
    display: flex;
    align-items: center;
}

.account-banner-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.account-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.account-banner-text {
    font-weight: 500;
}

.player-nickname {
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.account-banner-btn {
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.account-banner-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 15px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 20px 25px 25px;
}

.modal-body p {
    color: #bdc3c7;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
}

.modal-body input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal-body input:focus {
    outline: none;
    border-color: #3498db;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.modal-body input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.form-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-body .feedback-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.modal-footer-text {
    margin-top: 20px;
    text-align: center;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.modal-footer-text a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.modal-footer-text a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Adjust layout when banner is visible */
body.has-account-banner {
    /* Shift background down to fit below banner (44px banner height) */
    background-position: center calc(50% + 22px);
    background-size: auto calc(100vh - 44px);
}

body.has-account-banner .container {
    top: calc(50% + 22px); /* Center in remaining space below banner */
}

body.has-account-banner .container.debate-container {
    top: calc(50% + 22px); /* Also adjust debate container for banner */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .account-banner-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

.rules-section {
    text-align: left;
    margin-top: 15px;
    color: #ffffff;
    font-size: 1.1rem; /* Increased from 0.9rem */
    line-height: 1.4;
}

/* Footer styling */
.footer {
    margin-top: 10px;
    padding: 8px 0;
    color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.85;
    letter-spacing: 1px;
}

/* Good Questions page styling */
.good-questions-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 100px 0 20px 0; /* Increased top margin to 60px */
}

.good-topic {
    padding: 0; /* Remove padding */
    background: none; /* Remove background */
    border: none; /* Remove border */
    border-radius: 0; /* Remove border radius */
    backdrop-filter: none; /* Remove blur */
    text-align: left;
}

.good-topic .topic-content {
    padding: 0;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: normal;
    text-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.no-topics {
    padding: 30px 0;
    color: #ffcccb;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.6;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    animation: fadeInAnim 0.8s forwards;
}
@keyframes fadeInAnim {
    to { opacity: 1; }
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpAnim 0.8s forwards;
}
@keyframes slideUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure elements are initially hidden for animation */
.animated-hide {
    opacity: 0;
}

/* TIMER STYLES */
.timer-section {
    margin: 0 auto 10px auto;
    text-align: center;
    padding: 5px 0 10px 0;
}
#timer-controls {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

#timer-select {
    padding: 8px 15px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

#timer-select:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

#timer-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

#timer-select option {
    background-color: #52152E;
    color: #ffffff;
    padding: 8px;
}
#timer-display {
    font-size: 2.5rem;
    font-family: 'Luminari', 'Copperplate', 'Papyrus', fantasy;
    color: #fff;
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    padding: 8px 28px;
    display: inline-block;
    margin-bottom: 5px;
    letter-spacing: 2px;
    min-width: 120px;
}
#timer-turn-label {
    font-size: 1.1rem;
    color: #FFD700;
    margin-top: 2px;
    font-family: 'Luminari', 'Copperplate', 'Papyrus', fantasy;
    letter-spacing: 1px;
}

/* TEAM TURN HIGHLIGHTING */
.team.turn-active-for {
    background-color: #d4ffd4 !important; /* light green */
    border-color: #4caf50 !important;
    box-shadow: 0 0 20px 2px #4caf5055;
}
.team.turn-active-against {
    background-color: #ffd4d4 !important; /* light red */
    border-color: #f44336 !important;
    box-shadow: 0 0 20px 2px #f4433655;
}

/* --- Styles for Would You Rather Game Mode --- */

/* WYR Container adjustments */
.wyr-container {
    max-width: 1200px; /* Wider container for WYR */
}

/* WYR Question Box */
.wyr-question-box {
    padding: 30px 20px;
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center; /* Center content within the box */
}

/* WYR Question Text */
.wyr-question-content {
    font-size: 2.5rem; /* Adjust as needed */
    color: #ffffff;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 30px; /* Space before rating */
    font-family: 'Luminari', 'Copperplate', 'Papyrus', fantasy;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
}

/* WYR Options Layout */
.wyr-options-container {
    display: flex;
    justify-content: space-around; /* Space out options */
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 20px; /* Add space above options */
}

/* Individual WYR Option Box */
.wyr-option {
    background-color: rgba(255, 255, 255, 0.85);
    color: #52152E;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #FFD700; /* Gold border */
    min-width: 300px;
    flex: 1; /* Allow options to grow */
    max-width: 45%;
    text-align: center; /* Center text within option boxes */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* WYR Option Title (A/B Defenders) */
.wyr-option-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #FFD700;
    padding-bottom: 5px;
    font-family: 'Luminari', fantasy;
}

/* WYR Participant Name */
.wyr-member {
    font-size: 1.3rem;
    margin: 5px 0;
}

/* WYR Rating Buttons Container */
.wyr-rating {
    margin-top: 20px;
}
.wyr-rating .btn { /* Apply button styles */
    margin: 0 5px;
}
/* Use existing .rating-btn, .good-btn, .bad-btn styles */

/* --- End WYR Styles --- */

/* Mobile responsiveness */
@media (max-width: 1024px) { /* Adjust breakpoint for stacking */
    .debate-layout {
        flex-direction: column;
        align-items: center; /* Center items when stacked */
        gap: 25px; /* Increase gap when stacked */
    }
    .team {
        width: 90%; /* Teams take more width */
        max-width: 550px; /* Limit width */
        min-width: unset;
        margin-bottom: 0; /* Remove bottom margin, use gap */
        flex: unset; /* Reset flex property */
        order: 3; /* Ensure teams appear below topic when stacked - Use a higher order */
    }
    .topic-box {
        width: 90%; /* Topic takes more width */
        max-width: 550px; /* Limit width */
        order: 1; /* Move topic box to the top when stacked - Use a lower order */
        flex: unset; /* Reset flex property */
        margin: 0 auto; /* Center horizontally */
        align-self: center;
    }
    /* Explicitly set order for left/right teams when stacked if needed, */
    /* but giving .team order: 3 and .topic-box order: 1 should suffice */
    /* .team-left { order: 2; } */ /* Example if specific order needed */
    /* .team-right { order: 3; } */

    .topic-content {
        font-size: 1.8rem; /* Adjust size for stacked view */
        padding: 30px 20px;
    }
    .container.debate-container {
        padding: 25px 5px; /* Reduce padding on smaller screens */
    }
}

@media (max-width: 600px) {
    .topic-content {
        font-size: 1.5rem; /* Further reduce size on small screens */
        padding: 25px 15px;
    }
    .team-banner {
        font-size: 1.2rem;
    }
    .member {
        font-size: 1.1rem;
    }
    .team {
        width: 95%;
    }
    .topic-box {
        width: 95%;
    }
}

/* Participant input container styles */
.participant-input-container {
    position: relative;
    margin-bottom: 10px;
}

#participant-input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s ease;
}

#participant-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.participants-list {
    margin-top: 10px;
    min-height: 40px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.participant-item {
    display: inline-block;
    background-color: rgba(0, 123, 255, 0.8);
    color: white;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 20px;
    font-size: 0.9rem;
    position: relative;
    animation: fadeIn 0.3s ease-in;
}

.participant-item .remove-btn {
    background: none;
    border: none;
    color: white;
    margin-left: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.participant-item .remove-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.participants-list:empty::before {
    content: "No participants added yet. Type a name and press Enter.";
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: 0.9rem;
}

/* Back to Home Button */
.back-to-home-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Main DEBATE Button on Landing Page */
.debate-main-btn {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc3545;
    color: #ffffff;
    font-family: 'DevilFont', 'Luminari', 'Copperplate', fantasy;
    font-size: 2.5rem;
    letter-spacing: 8px;
    padding: 20px 80px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.debate-main-btn:hover {
    background: #c82333;
    transform: translateX(-50%) translateY(-3px);
    letter-spacing: 10px;
}

.debate-main-btn:active {
    transform: translateX(-50%) translateY(0);
    background: #a71d2a;
}