/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

/* Screen styling */
.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Button styles */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.primary-btn {
    background-color: #3498db;
    color: white;
}

.primary-btn:hover {
    background-color: #2980b9;
}

.secondary-btn {
    background-color: #ecf0f1;
    color: #34495e;
    border: 1px solid #bdc3c7;
}

.secondary-btn:hover {
    background-color: #bdc3c7;
}

/* Enter code screen */
.code-entry {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

#room-code-input {
    padding: 0.8rem;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 3px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
}

/* Lobby screen */
#room-code-display {
    font-size: 1.5rem;
    padding: 0.5rem;
    background-color: #ecf0f1;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

#player-list {
    list-style: none;
    margin: 1rem 0;
    text-align: left;
    max-width: 300px;
    margin: 0 auto 1.5rem;
}

#player-list li {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Game screen */
.game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

#timer {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    background-color: #f9f9f9;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#question-text {
    margin-bottom: 1.5rem;
}

#answers-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.answer-btn {
    padding: 1rem;
    text-align: left;
    background-color: white;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.answer-btn:hover {
    background-color: #f7f7f7;
}

.answer-btn.selected {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

.answer-btn.correct {
    background-color: #2ecc71;
    color: white;
    border-color: #27ae60;
}

.answer-btn.incorrect {
    background-color: #e74c3c;
    color: white;
    border-color: #c0392b;
}

/* Transition screen */
#transition-timer {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.current-standings {
    margin-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    position: relative;
}

.mini-leaderboard {
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    padding-right: 70px; /* Make room for score changes */
}

.mini-leaderboard .leaderboard-item {
    padding: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    position: relative;
}

.score-change {
    position: absolute;
    right: -70px;
    font-size: 0.85rem;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    min-width: 40px;
    text-align: right;
}

.score-change.positive {
    color: #27ae60;
}

.score-change.neutral {
    color: #7f8c8d;
}

/* Leaderboard screen */
#leaderboard-container {
    margin: 1.5rem 0;
    text-align: left;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.leaderboard-item.top {
    background-color: #f9f9d7;
    font-weight: bold;
}

.share-section {
    margin: 2rem 0;
}

#share-url {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
}

#copy-url-btn {
    margin-bottom: 1.5rem;
}

/* Cenoa button styles */
.cenoa-button-container {
    margin-top: 2rem;
    text-align: center;
}

#cenoa-button {
    max-width: 180px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 8px;
}

#cenoa-button:hover {
    transform: scale(1.05);
}

/* Media Queries */
@media (min-width: 768px) {
    .button-container {
        flex-direction: row;
        justify-content: center;
    }
    
    #answers-container {
        grid-template-columns: 1fr 1fr;
    }
}

#logo-container {
    text-align: center;
    margin-bottom: 20px;
}

#game-logo {
    max-width: 250px;
    height: auto;
    border-radius: 10px;
}

#meme-container {
    margin: 20px auto;
    text-align: center;
}

#meme-container img {
    max-height: 250px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nowrap {
    white-space: nowrap;
} 