/* ================================================
   vote.css  —  Dedicated stylesheet for the Poll Vote view
   New, isolated class names (no conflict with book/flex styles)
   ================================================ */

* {
    box-sizing: border-box;
}

/* Main flex container for the candidate cards */
.vote-flex-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    padding: 0;
    margin: 40px 0 20px 0;
    list-style: none;
    gap: 20px;                    /* modern spacing between cards */
}

/* Individual vote card */
.vote-card {
    background-color: #EFEFF5;           /* fallback color */
    border: 3px solid tomato;
    width: 200px;
    height: 280px;                       /* comfortable height for text + input */
    margin-top: 10px;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border-radius: 12px;                 /* softer modern look */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.vote-card:hover {
    transform: scale(1.04);
}

/* Dark overlay that appears on hover */
.vote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.vote-card:hover::before {
    opacity: 1;
}

/* Content inside each card (always visible) */
.vote-card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 30px 25px;
    position: relative;
    z-index: 1;
}

/* Candidate name (big and bold) */
.vote-candidate-name {
    font-size: 1.35em;
    line-height: 1.3;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.75);
    margin-bottom: 10px;
}

/* Rank input section */
.vote-rank-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.25);
    padding: 16px 24px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

/* Rank label */
.vote-rank-label {
    font-size: 1.1em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

/* The number input */
.vote-rank-input {
    width: 92px;
    height: 52px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    border: 3px solid #fff;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Submit button */
.vote-submit-btn {
    display: block;
    margin: 40px auto 0;
    padding: 16px 48px;
    font-size: 1.25em;
    font-weight: bold;
    background-color: tomato;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(210, 50, 50, 0.3);
}

.vote-submit-btn:hover {
    background-color: #e03e2f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(210, 50, 50, 0.4);
}

/* Optional: make the whole form look cleaner */
.vote-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}