:root {
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --text-color: #ffffff;
    --red-button: #e53935;
    --red-button-hover: #f44336;
    --green-button: #43a047;
    --green-button-hover: #4caf50;
    --accent-color: #bb86fc;
    --gold-border: #ffd700;
    --next-button: #3f51b5;
    --next-button-hover: #5c6bc0;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

header {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
    padding-top: 30px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.player-headshot {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 5px;
    vertical-align: bottom;
}

.leaderboard-link {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.leaderboard-link:hover {
    text-decoration: underline;
}

.video-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.video-and-actions-container {
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.video-container {
    width: 100%;
    height: 60vh;
    background-color: var(--darker-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.arrow {
    font-size: 50px;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0.7;
    margin: 0 15px;
    cursor: pointer;
}

.arrow:hover {
    opacity: 1;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 5px;
}

.btn {
    padding: 12px 30px;
    font-size: 22px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: translateY(1px);
}

.btn-red {
    background-color: var(--red-button);
}

.btn-red:hover {
    background-color: var(--red-button-hover);
}

.btn-green {
    background-color: var(--green-button);
}

.btn-green:hover {
    background-color: var(--green-button-hover);
}

.btn-next {
    background-color: var(--next-button);
    margin-top: 20px;
}

.btn-next:hover {
    background-color: var(--next-button-hover);
}

.btn-selected {
    border: 3px solid var(--gold-border);
}

.btn-inactive {
    background-color: #555555;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
    cursor: default;
}

.btn-inactive:hover {
    transform: none;
    box-shadow: none;
}

.undecided-link-container {
    text-align: center;
    margin-top: 15px;
}

.undecided-link {
    color: #9e9e9e;
    text-decoration: none;
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.undecided-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.results-container {
    width: 100%;
    max-width: 600px;
    margin: 30px auto 0;
    padding: 20px;
    background-color: var(--darker-bg);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.results-container h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.chart-container {
    height: 120px; /* Reduced from 250px */
    margin-bottom: 20px;
}

/* Add percentage labels to the chart results */
.results-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.foul-bait-percent {
    color: var(--red-button);
}

.ethical-percent {
    color: var(--green-button);
}

/* Loader animation */
.loader {
    border: 6px solid #333;
    border-radius: 50%;
    border-top: 6px solid var(--accent-color);
    width: 50px;
    height: 50px;
    animation: spin 1.5s linear infinite;
    margin: 0 auto;
}

.action-links-container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 5px 5px;
    margin-top: 5px;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    font-size: 14px;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

.action-link:hover {
    color: #a56fe2;
    text-decoration: underline;
}

.action-link svg {
    stroke: var(--accent-color);
    transition: all 0.2s ease;
}

.action-link:hover svg {
    stroke: #a56fe2;
}

.action-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
}

.action-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.action-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

/* Remove old share button styles */
.share-button-container {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .buttons-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .title {
        font-size: 22px;
    }
    
    .video-and-actions-container {
        max-width: 100%;
    }
    
    .video-container {
        height: 40vh;
    }
    
    .arrow {
        display: none;
    }
    
    .action-links-container {
        justify-content: flex-end;
        gap: 15px;
        padding: 5px 5px;
    }
    
    .action-link {
        font-size: 12px;
    }
    
    .action-link svg {
        width: 14px;
        height: 14px;
    }
}