﻿
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.mainContent {
    flex: 1 0 auto;
}

/*
    TODO: This isn't a real footer at the moment, as it doesn't float to bottom
*/
.footer {
    flex-shrink: 0;
    text-align: center;
    font-family: Bemio;
    font-style: normal;
    font-weight: normal;
    font-size: 20px;
    line-height: 33px;
    /* identical to box height, or 165% */
    text-decoration-line: underline;
    color: #337DFF;
}

.titleDiv {
    padding-top: 50px;
    padding-bottom: 60px;
}

.centeredImage {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.logo-image {
    width: 85%;
}

#joinGameDiv {
    text-align: center;
}

.textSpan {
    font-family: Bemio;
    font-style: normal;
    font-weight: normal;
    font-size: 26px;
    line-height: 33px;
    /* or 127% */
    text-align: center;
    text-transform: uppercase;
    color: #344184;
}

.textSpanSmall {
    font-size: 14px;
    line-height: 20px;
}

.textSpan.textSpanMedium {
    font-size: 20px;
    line-height: 28px;
    text-transform: none;
}

.textSpanBig {
    font-size: 40px;
    line-height: 49px;
    /*TODO:*/
    /*should be bemio*/
}

.inputClass {
    padding-top: 10px;
    padding-bottom: 10px;
    width: 300px;
    text-align: center;
    font-family: Bemio;
    font-style: normal;
    font-weight: normal;
    font-size: 40px;
    line-height: 49px;
    /* identical to box height */
    text-align: center;
    color: #344184;
    border: 3px solid #337DFF;
    box-sizing: border-box;
    border-radius: 10px;
}

.gameCodeInputClass {
    text-transform: uppercase;
    margin-top: 10px;
}

.textSpan {
    font-family: Bemio;
    font-style: normal;
    font-weight: normal;
    font-size: 26px;
    line-height: 33px;
    /* or 127% */
    text-align: center;
    text-transform: uppercase;
    color: #344184;
}

.nameInputClass {
    font-size: 30px;
    margin-top: 10px;
}

.buttonClass {
    width: 315px;
    height: 64px;
    background: #337DFF;
    border-radius: 41px;
    font-family: Bemio;
    font-style: normal;
    font-weight: normal;
    font-size: 20px;
    line-height: 33px;
    /* identical to box height, or 165% */
    text-align: center;
    color: #FFFFFF;
}

.buttonClass:disabled,
.buttonClass[disabled] {
    background-color: #337dff66;
}

.twitchLoginButton {
    margin-top: 25px !important;
    width: 280px !important;
    background-color: #9146FF !important;
}

#tosDiv {
    margin-top: 10px;
    font-size: small;
}

#waitingForGameToStartDiv {
    text-align: center;
}
#viewRoleDiv {
    text-align: center;
}
#seeScreenDiv {
    text-align: center;
}

.avatar-image-big {
    width: 58%;
    max-width: 300px;
    margin-bottom: 20px;
}

#startGameButton {
    margin-top: 40px;
}

#waitingForPlayersNonMvp {
    margin-top: 40px;
}

.fancyTiltedText {
    font-family: SignPainter;
    font-size: 49.6px;
    line-height: 58px;
    text-align: center;
    color: #344184;
    text-shadow: -2.5px 1.5px 0px #33C1FF;
    transform: rotate(-7deg);
}

#reconnectOverlay {
    background-color: rgba(0,0,0,0.5);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
}

#reconnectDiv {
    background-color: white;
    width: 100%;
    height: 150px;
    line-height: 50px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    z-index: 201;
}

#roundDivContent {
    height: 100%;
    padding-left: 30px;
    padding-right: 30px;
    /*    display: flex;
    flex-flow: column nowrap;
    justify-content: space-evenly;
    align-items: center;*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#questionDiv {
    padding-top: 30px;
    font-size: x-large;
    font-weight: bold;
}
#questionDataDiv {
    padding-top: 30px;
}
#helpTopDiv, #helpBottomDiv {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 30px;
}
.question-list {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}
.question-list-item {
    width: 100%;
    height: 75px;
    border: 2px solid black;
}
.optionLetterDiv {
    padding-left: 10px;
    padding-top: 10px;
    font-size: large;
}
.optionRankDiv {
    padding-left: 5px;
    font-size: large;
}
.optionRankNumDiv {
    background-color: #f5f5f5;
    color: red;
    width: 25px;
    text-align: center;
    border-radius: 10px;
}
.earthlingOptionInfoDiv {
    text-align:center; 
    padding-bottom:5px;
}
.optionTextDiv {
    text-align: center;
    font-size: large;
}
.listGhost {
    opacity: .5;
    background: #C8EBFB;
}
.lockInButton {
    margin-bottom: 20px;
}

#selectCategoryDivContent {
    height: 100%;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#scTitleDiv {
    margin-top: 30px;
    font-size: x-large;
    font-weight: bold;
}

#scCategoriesDiv {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}
.scCategoryItem {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 75px;
    border: 2px solid black;
    font-size: large;
    font-weight: bold;
}

.finalVoteContainer {
    width: 100%;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(3, 1fr);
}

.finalVoteItem {
    height: 100px;
    margin: 12px;
}
.finalVoteItem.selected {
    border: 2px solid black;
    border-radius: 10px;
    margin: 10px;
    background-color: lightgray;
}

.pieContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    height: 70px;
}

/*
@property --p {
    syntax: '<number>';
    inherits: true;
    initial-value: 1;
}*/
/*From https://stackoverflow.com/a/52205730/503550*/
.pie {
    --p: 20; /* the percentage */
    --b: 5px; /* the thickness */
    --c: #1FE256; /* the color */
    --w: 70px; /* the size*/

    width: var(--w);
    aspect-ratio: 1/1;
    position: relative;
    display: inline-grid;
    margin: 5px;
    place-content: center;
    font-size: 25px;
    font-weight: bold;
    font-family: sans-serif;
}

.pie:before,
.pie:after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.pie:before {
    inset: 0;
    background: 
        radial-gradient(farthest-side,var(--c) 98%,#0000) top/var(--b) var(--b) no-repeat, 
        conic-gradient(transparent calc(var(--p)*1%), #FF7777 0),
        conic-gradient(var(--c) calc(var(--p)*1%), #0000 0);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(99% - var(--b)),#000 calc(100% - var(--b)));
    mask: radial-gradient(farthest-side,#0000 calc(99% - var(--b)),#000 calc(100% - var(--b)));
}

.pie:after {
    inset: calc(50% - var(--b)/2);
    background: var(--c);
    transform: rotate(calc(var(--p)*3.6deg - 90deg)) translate(calc(var(--w)/2 - 50%));
}

.animate {
    animation: p 1s .5s both;
}

.no-round:before {
    background-size: 0 0,auto;
}

.no-round:after {
    content: none;
}

@keyframes p {
    from {
        --p: 0;
    }
}