/* Base Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #141e30, #243b55);
    color: #e0e0e0;
    line-height: 1.6;
}

/* Header Styling */
h1 {
    color: #00d9ff;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #00d9ff;
    background: linear-gradient(90deg, #00d9ff, #008cff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    transition: color 0.3s ease;
}

h1:hover {
    color: #00d9ff;
    transition: color 0.3s ease;
}

p {
    text-align: center;
    color: #a8dadc;
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Button Styling */
button {
    background: linear-gradient(90deg, #00d9ff, #008cff);
    color: #181818;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
    margin-top: 10px;
    display: inline-block;
}

button:hover {
    background: linear-gradient(90deg, #008cff, #00d9ff);
    color: #181818;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.5);
}

/* Text Area Styling */
textarea {
    width: 100%;
    height: 120px;
    margin-top: 10px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #333;
    font-size: 16px;
    background-color: #222831;
    color: #eeeeee;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* Display Sections */
#pitch-display, #feedback-display, #leaderboard {
    margin-top: 20px;
    padding: 25px;
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #00d9ff;
    color: #e0e0e0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#pitch-display:hover, #feedback-display:hover, #leaderboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

/* Section Headers */
h2 {
    color: #00d9ff;
    font-size: 1.8em;
    margin-bottom: 15px;
    border-bottom: 2px solid #00d9ff;
    padding-bottom: 5px;
}

/* Leaderboard */
#leaderboard {
    list-style: none;
    padding: 0;
}

#leaderboard li {
    padding: 10px;
    border-bottom: 1px solid #3e3e3e;
    display: flex;
    justify-content: space-between;
    transition: background 0.2s ease;
}

#leaderboard li:hover {
    background: rgba(0, 217, 255, 0.1);
}

#leaderboard li:last-child {
    border-bottom: none;
}

/* Voting Buttons */
.vote-buttons {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.vote-button {
    background: transparent;
    border: none;
    color: #00d9ff;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.vote-button:hover {
    color: #00ffff;
    transform: scale(1.2);
}

.vote-count {
    font-size: 18px;
    color: #eeeeee;
}

/* Modal Styling */
#feedback-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.5s ease;
}

.modal-content {
    background-color: #272727;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.4);
    position: relative;
    text-align: center;
    color: #eeeeee;
    animation: slideDown 0.5s ease;
}

.close-button {
    color: #eeeeee;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #00d9ff;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    button {
        font-size: 14px;
        padding: 10px 20px;
    }

    .modal-content {
        width: 90%;
    }
}
