/* Importing Fonts */
@import url('https://fonts.googleapis.com/css2?family=Jost&display=swap');

/* Defining some variables */
#app{
    --bar-color-1: rgb(156, 68, 133);
    --bar-color-darker-1: rgba(110, 28, 88, 0.466);
}

/* Customizing Global Elements */
::selection{
    background-color: rgba(0, 0, 0, 0.178);
}
*{
    font-family: 'Jost', sans-serif;
}
#app{
    height: 100%;
}
html, body{
    margin: 0px !important;
    height: 100%;
    scroll-behavior: smooth;
}
body{
    background-color: rgb(223, 106, 145);
    color: rgb(250, 225, 229);
}
.background-animated{
    animation: background-color-change 10s infinite;
}
.wrapper{
    margin-right: auto;
    margin-left: auto;
    width: 70%;
    transition: background-color 0.2s;
    background-color: rgba(0, 0, 0, 0.123);
}

/* Main Screen Styling */
#main-screen{
    margin-top: 15px;
}
#main-screen .wrapper{
    padding: 15px;
    padding-top: 5px;
    border-radius: 10px;
    width: 80%;
}
#question-input{
    display: block;
}
#main-screen h2{
    margin-bottom: 5px;
}
#question-input{
    width: 97%;
    max-width: 300px;
}
#main-screen input[type=text]{
    font-size: 1.05em;
}
.range-label{
    margin-right: 6px;
}
.main-screen-input{
    border-radius: 5px;
    color: rgb(250, 225, 229);
    background-color: rgba(0, 0, 0, 0.096);
    border: 2px solid rgb(156, 53, 87);
    width: 70%;
}
.main-screen-input:focus{
    border: 3px solid rgb(161, 37, 78);
    outline: none;
}
.start-button{
    background-color: rgb(194, 102, 171);
    border: 3px solid rgb(194, 102, 171);
    color: rgb(145, 56, 122);
    width: fit-content;
    display: block;
    cursor: pointer;
    font-size: 1.5em;
    padding: 5px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 30px;
    transition: 0.3s;
    margin-bottom: 10px;
    user-select: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}
.start-button:hover{
    background-color: rgb(173, 87, 152);
    border-color: rgb(173, 87, 152);
}
.custom-choice-block{
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-radius: 30px;
    background-color: rgb(172, 71, 147);
    color: rgb(59, 23, 50);
    width: fit-content;
    max-width: 85%;
    overflow-wrap: break-word;
    transition: background-color 0.1s;
}
.custom-choice-block:hover{
    background-color: rgb(156, 58, 132);
    text-decoration: line-through;
    cursor: pointer;
}
#add-choice-btn{
    margin-left: 5px;
    background-color: rgb(194, 102, 171);
    border: 2px solid rgb(145, 56, 122);
    color: rgb(145, 56, 122);
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 30px;
    font-size: 1.12em;
    cursor: pointer;
}

/* Vote Screen Styling */
#vote-screen{
    padding-top: 15px;
    padding-bottom:8px;
    min-height: 100vh;
}
#vote-screen .wrapper{
    width: 90%;
    padding-right: 4px;
    padding-left: 4px;
    padding-top: 5px;
    padding-bottom: 15px;
    margin-bottom: 8px;
    border-radius: 15px;
    text-align: center;
}
#vote-screen p{
    margin-top: 0px;
    margin-bottom: 0px;
}
#vote-screen h1{
    margin-bottom: 5px;
}
#vote-screen h2{
    margin-top: 5px;
}
#vote-finish-btn{
    background-color: rgba(255, 255, 255, 0);
    padding-left: 15px;
    padding-right: 15px;
    color: rgba(250, 225, 229, 0.658);
}
#vote-finish-btn>div.darker{
    padding-left: 15px;
    padding-right: 15px;
    margin-left: -15px;
    margin-right: -15px;
}
.total-votes{
    margin-bottom: 0px;
    margin-top: 0px;
}
.vote-screen-btn{
    border-radius: 30px;
    animation: vote-btn-color-change 10s infinite;
    border: 2px solid rgba(255, 255, 255, 0.397);
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.vote-screen-btn:hover{
    cursor: pointer;
}
.vote-button{
    width: 90%;
    text-align: center;
    max-width: 600px;
    margin-bottom: 10px;
    margin-top: 10px;
    font-size: 1.2em;
}
.darker{
    padding-bottom: 5px;
    padding-top: 5px;
    border: 2px solid rgba(255, 255, 255, 0);
    border-radius: 30px;
}
.vote-title{
    text-align: center;
}

/* Result Screen Styling */
/* TODO */
#result-screen .wrapper{
    padding-bottom: 15px;
    padding-left: 5px;
    padding-right: 5px;
    margin-top: 15px;
    margin-bottom: 500px;
    border-radius: 15px;
    height: max-content;
}
#result-screen{
    height: 100%;
    padding-bottom: 10px;
}
#result-screen h1{
    margin-bottom: 0px;
}
#result-screen h2{
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: center;
}
#result-screen ul{
    margin-bottom: 15px;
}
#result-screen .info{
    text-align: center;
    margin-top: 0px;
    margin-bottom: 0px;
}
#vote-avg{
    text-align: center;
    margin-top: 0px;
}
#total-votes{
    background-color: var(--bar-color-darker-1);
}
.vote-result-bar{
    width: 98%;
    height: fit-content;
    background-color: var(--bar-color-1);
    margin-top: 5px;
    margin-bottom: 5px;
    border-radius: 8px;
    text-align: center;
    max-width: 350px;
}
.vote-result-bar-darker{
    width: 0%;
    height: 100%;
    transition: width 1.5s;
    border-radius: 8px;
    background-color: var(--bar-color-darker-1);
    white-space: nowrap;
}
.vote-result-bar-text{
    margin-left: 20px;
}

/* General Styling */
.fullscreen{
    margin-top: 0px;
    height: max-content;
    width: 100%;
}
.wrapper:hover{
    background-color: rgba(0, 0, 0, 0.15);
}
.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.5s, opacity 0.5s linear;
}
.visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s linear;
}
h1{
    margin-top: 0px;
    text-align: center;
}
.vertical-separator{
    height: 7px;
}
.info{
    margin-top: 3px;
    margin-bottom: 5px;
    color: rgba(250, 225, 229, 0.568);
    font-size: 0.9em;
}
.warning{
    color:rgb(148, 17, 17);
    font-size: 1.07em;
    margin-top: 8px;
    margin-bottom: 5px;
}

/* Animations */
@keyframes background-color-change{
    from{
        background-color: rgb(52, 170, 170);
    }
    50%{
        background-color: rgb(149, 71, 201);
    }
    100%{
        background-color: rgb(52, 170, 170);
    }
}
@keyframes vote-btn-color-change{
    from{
        background-color: rgb(149, 71, 201);
    }
    50%{
        background-color: rgb(52, 170, 170);
    }
    100%{
        background-color: rgb(149, 71, 201);
    }
}

/* Media Queries */
@media screen and (max-width: 1000px) {
    .wrapper{
        width: 70%;
        margin-right: auto;
        margin-left: auto;
    }
}
@media screen and (max-width: 900px) {
    .wrapper{
        width: 90%;
        margin-right: auto;
        margin-left: auto;
    }
}
@media (hover: hover) and (pointer: fine) {
    .darker:hover{
        background-color: rgba(0, 0, 0, 0.144);
    }
  }