/* ==========================================
   PAGE
========================================== */

html,
body {
    margin: 0;
    padding: 0;

    min-height: 100%;

    background:
        linear-gradient(
            to bottom,
            #1a1217,
            #100b0d,
            #070707
        );

    color: white;
}


/* ==========================================
   CONTAINER
========================================== */

.polls-container {
    width: 900px;

    margin: 0 auto;

    padding-top: 25px;
    padding-bottom: 60px;

    box-sizing: border-box;
}


/* ==========================================
   TITLE
========================================== */

.tvd-polls-title {
    margin: 0;

    font-family: "cheri", sans-serif;
    font-size: 32px;

    color: #d9a0b4;

    text-align: center;
}


/* ==========================================
   SUBTITLE
========================================== */

.tvd-polls-subtitle {
    margin: 2px 0 0 0;

    font-family: "candy", sans-serif;
    font-size: 15px;

    color: #eee;

    text-align: center;
}


/* ==========================================
   POLL
========================================== */

.poll {
    width: 280px;

    margin-top: 25px;
    margin-left: -240px;

    text-align: left;
}


/* ==========================================
   POLL QUESTION
========================================== */

.poll h2 {
    margin: 0 0 12px 0;

    font-family: "cheri", sans-serif;
    font-size: 20px;

    font-weight: normal;

    color: #d9a0b4;

    text-align: left;
}

/* ==========================================
   POLL OPTIONS
========================================== */

.poll-options {
    display: flex;

    justify-content: flex-start;
    align-items: flex-start;

    gap: 15px;

    margin-top: 0;
}


/* ==========================================
   POLL CARD
========================================== */

.poll-card {
    width: 150px;

    padding: 8px;

    background-color: #21191e;

    border: 1px solid #5a4650;
    border-radius: 12px;

    box-sizing: border-box;

    cursor: pointer;

    text-align: center;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* ==========================================
   HOVER
========================================== */

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

    box-shadow:
        0 0 18px rgba(217, 160, 180, 0.25);
}


/* ==========================================
   CHARACTER IMAGE
========================================== */

.poll-character {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 8px;
}


/* ==========================================
   NAME
========================================== */

.poll-name {
    margin-top: 7px;

    font-family: "lemonmilk", sans-serif;
    font-size: 13px;

    color: #eee;

    text-align: center;
}


/* ==========================================
   MESSAGE
========================================== */

.poll-message {
    min-height: 20px;

    margin-top: 7px;

    font-family: "candy", sans-serif;
    font-size: 14px;

    line-height: 1.2;

    color: #d9a0b4;

    text-align: center;

    opacity: 0;

    transition: opacity 0.4s ease;
}


/* ==========================================
   MESSAGE AFTER VOTE
========================================== */

.poll-card.voted .poll-message {
    opacity: 1;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 950px) {

    .polls-container {
        width: 100%;

        padding-left: 25px;
        padding-right: 25px;
    }

}


@media (max-width: 500px) {

    .polls-container {
        padding-top: 20px;
    }

    .tvd-polls-title {
        font-size: 40px;
    }

    .tvd-polls-subtitle {
        font-size: 14px;
    }

    .poll {
        width: 100%;
    }

    .poll h2 {
        font-size: 18px;
    }

}

.poll-results {
    margin-top: 8px;
    font-family: "lemonmilk", sans-serif;
    font-size: 16px;
    color: #d9a0b4;
    display: none;

}

poll-card.voted .poll-results {
    opacity: 1;
}


.tvd-poll-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.tvd-poll-frame {
    width: 100%;
    max-width: 700px;
    height: 650px;
    border: none;
    display: block;
    background: transparent;
}

/* ==========================================
   BACK TO THE VAMPIRE DIARIES
========================================== */

.tvd-polls-back {
    display: block;

    width: fit-content;

    margin: 15px auto 0 auto;

    color: #d9a0b4;

    text-decoration: none;

    font-family: "lemonmilk", sans-serif;
    font-size: 12px;

    transition: all 0.25s ease;
}

.tvd-polls-back:hover {
    color: white;
    transform: translateX(-4px);
}
