/* Application */


body {
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    background: #111111;
    font-family: 'Ubuntu', Tahoma, Verdana, sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

p {
    margin: 0
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(/KFOlCnqEu92Fr1MmYUtvAw.ttf) format('truetype');
}
@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(/4iCv6KVjbNBYlgoC1CzTtw.ttf) format('truetype');
}
@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/4iCs6KVjbNBYlgo6eA.ttf) format('truetype');
}

#root {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(90vw, 40rem);
}

a {
    text-decoration: none;
}

.button {
    background-color: #bd0081;
    border: none;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    text-decoration: none;
    border-radius: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 2rem;
    cursor: pointer;
}
@media(hover: hover) and (pointer: fine) {
    .button:hover {
        margin-left: -0.2rem;
        margin-right: -0.2rem;
        margin-top: 1.8rem;
        margin-bottom: 1.8rem;
        border: 0.2rem solid #bd0081;
    }
}

a:has(.button) {
    text-decoration: none;
}

h1 {
    margin-top: 4rem;
    color: white;
    font-size: 3rem;
    font-family: Roboto, Tahoma, Verdana, sans-serif;
    font-weight: 900;
    text-align: center;
}
@media screen and (min-width: 1200px) {
    h1 {
        font-size: 4rem;
    }
}

.spacer {
    margin-top: 4rem;
}

#root .sub-header {
    font-size: 1.4rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}
#root .sub-header a {
    font-size: 1.4rem;
    color: #bd0081;
}
@media(hover: hover) and (pointer: fine) {
    #root .sub-header a:hover {
        color: #9a00bd;
    }
}

#root img.vote-box {
    width: 10rem;
    height: 10rem;
    align-self: center;
    margin-top: 3rem
}


/* Dialog */


#dialog {
    position: fixed;
    top: 15vh;
    left: 10vw;
    right: 10vw;
    background: white;
    z-index: 2;
    border-radius: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    font-size: 1.2rem;
}
@media screen and (min-width: 1200px) {
    #dialog {
        border-radius: 1rem;
        font-size: 1.6rem;
        gap: 2rem;
        padding: 2rem;
    }
}
#dialog:not(.visible) {
    display: none
}
#dialog.visible {
    animation-name: dialog-show-animation;
    animation-duration: 0.8s;
    animation-iteration-count: 1;
}
@keyframes dialog-show-animation {
    0% { transform: translateX(-100vw); }
    100% { transform: translateX(0); }
}

#dialog h1 {
    font-size: 1.8rem;
    color: black;
    text-align: center;
}
@media screen and (min-width: 1200px) {
    #dialog h1 {
        font-size: 3rem;
    }
}

#dialog p {
    color: black;
    text-align: center;
}


/* Statement */


.statement {
    display: grid;
    margin-top: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}
@media(prefers-reduced-motion) {
    .statement {
        transition: none;
    }
}

.statement.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.statement.clickable {
    cursor: pointer;
}

.statement.selected .speech-bubble {
    animation-name: statement-selected-animation;
    animation-duration: 0.1s;
    animation-iteration-count: 1;
}
@keyframes statement-selected-animation {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-0.1deg); }
    20% { transform: translate(-1px, 0px) rotate(0.1deg); }
    30% { transform: translate(1px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(0.1deg); }
    50% { transform: translate(-1px, 2px) rotate(-0.1deg); }
    60% { transform: translate(-1px, 1px) rotate(0deg); }
    70% { transform: translate(1px, 1px) rotate(-0.1deg); }
    80% { transform: translate(-1px, -1px) rotate(0.1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-0.1deg); }
}

.speech-bubble {
    grid-column-start: 1;
    grid-row-start: 1;
    color: white;
    position: relative;
    background: #9a00bd;
    border-radius: .4em;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}
@media screen and (min-width: 1200px) {
    .speech-bubble {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
        padding-top: 1.6rem;
        padding-bottom: 1.6rem;
    }
}
@media(hover: hover) and (pointer: fine) {
    .statement.clickable .speech-bubble:hover {
        margin-left: -0.2rem;
        margin-right: -0.2rem;
        margin-top: -0.2rem;
        margin-bottom: -0.2rem;
        border: 0.2rem solid #9a00bd;
    }
}
.statement.selected .speech-bubble {
    background: #bd0081;
}
@media(hover: hover) and (pointer: fine) {
    .statement.selected .speech-bubble:hover {
        border-color: #bd0081;
    }
}
.speech-bubble:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 0;
    height: 0;
    border: 0.625em solid transparent;
    border-left-color: #9a00bd;
    border-right: 0;
    border-bottom: 0;
    margin-top: -0.312em;
    margin-right: -0.625em;
}
.statement.selected .speech-bubble:after  {
    border-left-color: #bd0081;
}

.speech-bubble p {
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.8rem;
    pointer-events: none;
}
@media screen and (min-width: 1200px) {
    .speech-bubble p {
        font-weight: 300;
        font-size: 1.8rem;
        line-height: 2.2rem;
    }
}

.statement .selection-marker {
    grid-column-start: 1;
    grid-row-start: 1;
    align-self: start;
    justify-self: start;
    width: 5rem;
    height: 3rem;
    display: grid;
    place-items: center;
    background: #9a00bd;
    border-radius: 10%;
    z-index: 1;
    animation-name: selection-marker-animation;
    animation-duration: 0.8s;
    animation-iteration-count: 1;
    transition-timing-function: ease-in-out;
    animation-fill-mode: forwards
}
@keyframes selection-marker-animation {
    0% { transform: translateY(-1rem) translateX(-1rem); }
    75% { opacity: 1; }
    100% { transform: translateY(-2rem) translateX(-1rem); opacity: 0; display: none ;}
}


/* Twitter */


a.twitter-button {
    align-self: center;
    margin-top: 1rem;
    text-decoration: none;
}

a.twitter-button div {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #1da1f2;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    border-radius: 0.3rem;
    cursor: pointer;
}
@media(hover: hover) and (pointer: fine) {
    .twitter-button div:hover {
        margin-left: -0.2rem;
        margin-right: -0.2rem;
        margin-top: -0.2rem;
        margin-bottom: -0.2rem;
        border: 0.2rem solid #1daDf2;
    }
}

a.twitter-button div svg {
    width: 0.8rem;
    height: 0.8rem;
    fill: #ffffff;
    margin-right: 0.2rem;
}

a.twitter-button div span {
    color: #ffffff;
    font-size: 0.8rem;
}


/* Front page */


#root a.about {
    align-self: center;
}

#root a.about img {
    width: 5rem;
    height: 5rem;
    margin-top: 3rem;
}
@media(hover: hover) and (pointer: fine) {
    #root a.about img:hover {
        transform: scale(110%);
    }
}


/* Pick page */


#scroll-hint {
    position: fixed;
    right: 5rem;
    bottom: 5rem;
    z-index: 1;
    display: grid;
    place-items: center;
    background: white;
    color: black;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    opacity: 0.2;
    font-size: 2.5rem;
    animation: scroll-hint-animation;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    transition-timing-function: ease-in-out;
}

#scroll-hint:not(.visible) {
    display: none
}

@keyframes scroll-hint-animation {
    0% { transform: translateY(0rem); }
    50% { transform: translateY(1rem); }
    100% { transform: translateY(0rem); }
}


/* Compare page */


.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    z-index: 1;
    display: grid;
    place-items: center;
    height: 10rem;
    font-family: 'Ubuntu', Tahoma, Verdana, sans-serif;
    font-weight: 400;
    font-size: 4rem;
}