/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f0f0;
    color: #333;
}

.screen {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Start screen */
.start-container {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.start-container h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.start-container p {
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Player form styling */
.player-form {
    margin: 20px 0;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 60px;
    resize: none;
}

.input-with-button {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-button input,
.input-with-button textarea {
    flex-grow: 1;
    background-color: #f5f5f5;
}

.dice-button {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 2px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.dice-button:hover {
    background-color: #e0e0e0;
}

.dice-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Game screen */
.game-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Left column */
.left-column {
    flex: 0 0 300px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.candidate-avatar {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #ecf0f1;
    margin: 20px auto;
    overflow: hidden;
    border: 4px solid #3498db;
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated; /* pour que les images pixelisées soient nettes */
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.game-stats {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #34495e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

.score-value.negative {
    color: #ff4163;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-button {
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-button.reject {
    background-color: #e74c3c;
    color: white;
}

.action-button.accept {
    background-color: #2ecc71;
    color: white;
}

.action-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Right column */
.right-column {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.file-header {
    background-color: #ecf0f1;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-type {
    background-color: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.file-content-wrapper {
    flex-grow: 1;
    padding: 40px;
    overflow: auto;
    width: 100%;
}

.file-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    line-height: 1.5;
    color: #333;
    font-size: 18px;
}

.document-section {
    position: relative;
    padding: 5px 0;
    transition: opacity 0.2s;
}

.document-section.greyed-out {
    opacity: 0.3;
}

.section-tooltip {
    position: absolute;
    top: -25px;
    left: 0;
    background-color: #2c3e50;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100;
}

.file-content {
    position: relative;
}

/* Day summary screen */
.summary-container {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    margin: auto;
}

.summary-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-stat label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #7f8c8d;
}

.summary-stat span {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

#difficultyIncrease {
    background-color: #f39c12;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.main-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.main-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.overlay-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.overlay-content p, .overlay-content ul {
    margin-bottom: 15px;
}

.overlay-content ul {
    padding-left: 20px;
}

.section-order-item {
    background-color: #f5f5f5;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

pre.file-content {
    font-family: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* Rules button style */
.action-button.rules {
    background-color: rgba(226, 182, 66, 0.83);
    color: white;
    margin-bottom: 20px;
}

/* Emojis storm */
.emoji-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 1000;
}

.animated-emoji {
    position: absolute;
    font-size: 24px;
    transition: transform 1s ease-out, opacity 1s ease-out;
}