@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,300;8..144,500&display=swap');
@font-face {
    font-family: 'Futura';
    src: url('../fonts/futura.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Minecraft';
    src: url('../fonts/Minecraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'Minecraft', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #302420;
	overflow: hidden;
    position: relative;
}

#title {
    display: block;
    z-index: 1;
    text-align: center;
    margin: 0;
    position: absolute;
    top: 10px;
    width: 100%;
}
#title img {
    width: 100%;
    max-width: 800px;
    display: inline-block;
}

#content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: 100px;
}

.center {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.background {
    background: url("../imgs/ui/background.gif") no-repeat no-repeat center;
    background-size: cover;
    width: 1156px;
    height: 650px;
}


.user-character .nameplate {
    z-index: 1;
    position: absolute;
    background: url("../imgs/ui/nameplate.png") no-repeat no-repeat center;
    background-size: cover;
    width: 135px;
    height: 24px;
    top: 0;
}


.user-character .balloon {
    z-index: 1;
    position: absolute;
    background: url("../imgs/ui/balloon.png") no-repeat no-repeat center;
    background-size: cover;
    width: 57px;
    height: 48px;
}

.balloon span {
    color: white;
    display: inline-block;
    letter-spacing: 2px;
    margin: 12px 0 0 17px;
    text-align: center;
    font-size: 28px;
    text-shadow:
            -1.5px -1.5px 0 #000,
            1.5px -1.5px 0 #000,
            -1.5px  1.5px 0 #000,
            1.5px  1.5px 0 #000;
}

.nameplate span {
    color: white;
    margin-left: 6px;
    text-align: center;
    font-size: 14px;
    display: inline-block;
    width: 124px;
    position: relative;
    top: 3px;
    text-shadow:
            -1.5px -1.5px 0 #000,
            1.5px -1.5px 0 #000,
            -1.5px  1.5px 0 #000,
            1.5px  1.5px 0 #000;
}

#c1.user-character {
    position: absolute;
    top: 287px;
    left: 522px;
    width: 135px;
    height: 196px;
}

#c1.user-character .character {
    position: absolute;
    background: url("../imgs/characters/1.png") no-repeat no-repeat center;
    width: 115px;
    height: 106px;
    background-size: cover;
    top: 25px;
}

#c1.user-character .balloon {
    top: 34px;
    left: 77px;
}

#c2.user-character {
    position: absolute;
    top: 79px;
    left: 478px;
    /*min 135*/
    width: 135px;
    /* + 26px*/
    height: 123px;
}

#c2.user-character .character {
    position: absolute;
    background: url("../imgs/characters/2.png") no-repeat no-repeat center;
    width: 107px;
    height: 97px;
    background-size: cover;
    top: 25px;
}

#c2.user-character .balloon {
    top: 34px;
    left: 77px;
}

#c3.user-character {
    position: absolute;
    top: 118px;
    left: 651px;
    /*min 135*/
    width: 140px;
    /* + 26px*/
    height: 166px;
}

#c3.user-character .character {
    position: absolute;
    background: url("../imgs/characters/3.png") no-repeat no-repeat center;
    width: 114px;
    height: 140px;
    background-size: cover;
    top: 25px;
}

#c3.user-character .balloon {
    top: 71px;
    left: 88px;
}

#c3.user-character .nameplate {
    top: 32px;
}

#c4.user-character {
    position: absolute;
    top: 251px;
    left: 361px;
    /*min 135*/
    width: 135px;
    /* + 26px*/
    height: 125px;
}

#c4.user-character .character {
    position: absolute;
    background: url("../imgs/characters/4.png") no-repeat no-repeat center;
    width: 86px;
    height: 99px;
    background-size: cover;
    top: 25px;
}

#c4.user-character .balloon {
    top: 28px;
    left: 88px;
}

#c5.user-character {
    position: absolute;
    top: 309px;
    left: 240px;
    /*min 135*/
    width: 135px;
    /* + 26px*/
    height: 132px;
}

#c5.user-character .character {
    position: absolute;
    background: url("../imgs/characters/5.png") no-repeat no-repeat center;
    width: 70px;
    height: 106px;
    background-size: cover;
    top: 25px;
}

#c5.user-character .balloon {
    top: 28px;
    left: 62px;
}

#c6.user-character {
    position: absolute;
    top: 119px;
    left: 806px;
    /*min 135*/
    width: 135px;
    /* + 26px*/
    height: 132px;
}

#c6.user-character .character {
    position: absolute;
    background: url("../imgs/characters/6.png") no-repeat no-repeat center;
    width: 88px;
    height: 96px;
    background-size: cover;
    top: 25px;
}

#c6.user-character .balloon {
    top: 28px;
    left: 62px;
}

#c7.user-character {
    position: absolute;
    top: 129px;
    left: 939px;
    /*min 135*/
    width: 135px;
    /* + 26px*/
    height: 132px;
}

#c7.user-character .character {
    position: absolute;
    background: url("../imgs/characters/7.png") no-repeat no-repeat center;
    width: 118px;
    height: 112px;
    background-size: cover;
    top: 25px;
}

#c7.user-character .balloon {
    top: 40px;
    left: 83px;
}

#c8.user-character {
    position: absolute;
    top: 293px;
    left: 1009px;
    width: 135px;
    height: 132px;
}

#c8.user-character .character {
    position: absolute;
    background: url("../imgs/characters/8.png") no-repeat no-repeat center;
    width: 98px;
    height: 96px;
    background-size: cover;
    top: 25px;
}

#c8.user-character .balloon {
    top: 29px;
    left: -29px;
    transform: rotateY(180deg);
}

#c8.user-character .balloon span {
    transform: rotateY(-180deg);
    margin: 11px 0 0 13px;
}

#c9.user-character {
    position: absolute;
    top: 333px;
    left: 1119px;
    width: 135px;
    height: 132px;
}

#c9.user-character .character {
    position: absolute;
    background: url("../imgs/characters/9.png") no-repeat no-repeat center;
    width: 121px;
    height: 93px;
    background-size: cover;
    top: 25px;
}

#c9.user-character .balloon {
    top: 40px;
    left: 83px;
}

#c10.user-character {
    position: absolute;
    top: 381px;
    left: 633px;
    width: 135px;
    height: 132px;
}

#c10.user-character .character {
    position: absolute;
    background: url("../imgs/characters/10.png") no-repeat no-repeat center;
    width: 88px;
    height: 96px;
    background-size: cover;
    top: 25px;
}

#c10.user-character .balloon {
    top: 28px;
    left: -34px;
    transform: rotateY(180deg);
}

#c10.user-character .balloon span {
    transform: rotateY(-180deg);
    margin: 11px 0 0 13px;
}

#c11.user-character {
    position: absolute;
    top: 506px;
    left: 536px;
    /*min 135*/
    width: 135px;
    height: 132px;
}

#c11.user-character .character {
    position: absolute;
    background: url("../imgs/characters/11.png") no-repeat no-repeat center;
    width: 133px;
    height: 103px;
    background-size: cover;
    top: 25px;
}

#c11.user-character .balloon {
    top: 32px;
    left: -3px;
    transform: rotateY(180deg);
}

#c11.user-character .balloon span {
    transform: rotateY(-180deg);
    margin: 11px 0 0 13px;
}

#c12.user-character {
    position: absolute;
    top: 525px;
    left: 707px;
    width: 135px;
    height: 132px;
}

#c12.user-character .character {
    position: absolute;
    background: url("../imgs/characters/12.png") no-repeat no-repeat center;
    width: 99px;
    height: 83px;
    background-size: cover;
    top: 25px;
}

#c12.user-character .balloon {
    top: 37px;
    left: 101px;
}

#c13.user-character {
    position: absolute;
    top: 368px;
    left: 796px;
    width: 135px;
    height: 132px;
}

#c13.user-character .character {
    position: absolute;
    background: url("../imgs/characters/13.png") no-repeat no-repeat center;
    width: 99px;
    height: 83px;
    background-size: cover;
    top: 25px;
}

#c13.user-character .balloon {
    top: 37px;
    left: 101px;
}

#c14.user-character {
    position: absolute;
    top: 468px;
    left: 912px;
    width: 135px;
    height: 132px;
}

#c14.user-character .character {
    position: absolute;
    background: url("../imgs/characters/14.png") no-repeat no-repeat center;
    width: 102px;
    height: 88px;
    background-size: cover;
    top: 25px;
}

#c14.user-character .balloon {
    top: 30px;
    left: 79px;
}

#c15.user-character {
    position: absolute;
    top: 536px;
    left: 1058px;
    width: 135px;
    height: 132px;
}

#c15.user-character .character {
    position: absolute;
    background: url("../imgs/characters/15.png") no-repeat no-repeat center;
    width: 67px;
    height: 71px;
    background-size: cover;
    top: 25px;
}

#c15.user-character .balloon {
    top: 30px;
    left: 79px;
}

#c16.user-character {
    position: absolute;
    top: 436px;
    left: 1268px;
    width: 135px;
    height: 132px;
}

#c16.user-character .character {
    position: absolute;
    background: url("../imgs/characters/16.png") no-repeat no-repeat center;
    width: 71px;
    height: 97px;
    background-size: cover;
    top: 25px;
}

#c16.user-character .balloon {
    top: 30px;
    left: -52px;
    transform: rotateY(180deg);
}

#c16.user-character .balloon span {
    transform: rotateY(-180deg);
    margin: 11px 0 0 13px;
}

#c16.user-character .nameplate {
    right: 30px;
}

.user-list {
    position: relative;
    background: url("../imgs/ui/user-list.png") no-repeat no-repeat center;
    background-size: cover;
    width: 315px;
    height: 650px;
}

.user-list .user-list-table {
    margin-top: 152px;
}

.user-list .user-list-table .table-row,
.user-list .user-list-table-result .table-row-result {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 20px;
    justify-content: space-between;
}

.user-list .user-list-table .table-row span,
.user-list .user-list-table-result .table-row-result span {
    font-size: 23px;
    color: white;
    letter-spacing: 2px;
    text-shadow:
            -1.5px -1.5px 0 #000,
            1.5px -1.5px 0 #000,
            -1.5px  1.5px 0 #000,
            1.5px  1.5px 0 #000;
    font-weight: bold;
}

.user-list .user-list-table-result {
    position: absolute;
    bottom: 40px;
    width: 315px;
    height: 30px;
}

.bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin-top: 10px;
    gap: 10px;
}

.type-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url("../imgs/ui/select-base.png") no-repeat no-repeat center;
    background-size: cover;
    width: 308px;
    height: 80px;
}

.type-select select {
    background: transparent;
    width: 80%;
    outline: none;
    border: none;
    font-size: 26px;
    font-family: 'Minecraft', sans-serif;
    letter-spacing: 2px;
    color: white;
    padding: 0 2px;
    text-shadow:
            -1.5px -1.5px 0 #000,
            1.5px -1.5px 0 #000,
            -1.5px  1.5px 0 #000,
            1.5px  1.5px 0 #000;
    text-transform: uppercase;
}

.type-select select optgroup option {
    font-size: 16px!important;
}

.buttons-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.buttons-container .fibonacci-list,
.buttons-container .fibonazzi-list,
.buttons-container .tshirt-list,
.buttons-container .storypoints-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
}

.vote-value-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border: none;
    outline: none;
    box-shadow: none;
    background: url("../imgs/ui/button-off.png") no-repeat no-repeat center;
    background-size: cover;
}

.vote-value-button:hover {
    background: url("../imgs/ui/button-hover.png") no-repeat no-repeat center;
    background-size: cover;
    width: 78px;
    height: 78px;
}

.vote-value-button.selected {
    background: url("../imgs/ui/button-on.png") no-repeat no-repeat center;
    background-size: cover;
    width: 78px;
    height: 78px;
}


.vote-value-button span {
    position: relative;
    font-size: 40px;
    font-family: 'Futura', sans-serif;
    font-weight: 700;
    color: white;
    text-shadow:
            -1.5px -1.5px 0 #000,
            1.5px -1.5px 0 #000,
            -1.5px  1.5px 0 #000,
            1.5px  1.5px 0 #000;
    padding-bottom: 6px;
}

.reveal-area, .clear-area {
    width: 148px;
    height: 52px;
}
.reveal-area {
    position: absolute;
    left: 0;
    top: 60px;
    z-index: 1;
}
.clear-area {
    position: absolute;
    right: 0;
    top: 60px;
    z-index: 1;
}

.reveal-button, .clear-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 52px;
    border: none;
    outline: none;
    box-shadow: none;
}

.reveal-button span, .clear-button span {
    position: relative;
    display: inline-block;
    width: 100%;
    top: 5px;
    text-align: center;
    font-size: 18px;
    font-family: 'Minecraft', sans-serif;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-shadow:
            -1.5px -1.5px 0 #000,
            1.5px -1.5px 0 #000,
            -1.5px  1.5px 0 #000,
            1.5px  1.5px 0 #000;
    padding-bottom: 6px;
}
.reveal-button span {
    right: -8px;
}
.clear-button span {
    left: -5px;
}


.reveal-button {
    background: url("../imgs/ui/reveal-off.png") no-repeat no-repeat center;
    background-size: cover;
    width: 148px;
    height: 52px;
}
.reveal-button:hover {
    background: url("../imgs/ui/reveal-on.png") no-repeat no-repeat center;
    background-size: cover;
    width: 148px;
    height: 52px;
}
.clear-button {
    background: url("../imgs/ui/clear-off.png") no-repeat no-repeat center;
    background-size: cover;
    width: 148px;
    height: 52px;
}
.clear-button:hover {
    background: url("../imgs/ui/clear-on.png") no-repeat no-repeat center;
    background-size: cover;
    width: 148px;
    height: 52px;
}


.hidden { display: none!important; }
.disabled {
    background: darkgrey!important;
    color: black;!important;
    border-color: darkslategray!important;
}

#modal {
    display: flex;
    position: absolute;
    z-index: 101;
    width: 100%;
    height: 100%;
    top: 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
#modal #name-input {
    background: url("../imgs/ui/name-base.png") no-repeat no-repeat center;
    background-size: cover;
    width: 500px;
    height: 100px;
    position: absolute;
    padding: 23px 14px;
    box-sizing: border-box;
}
#modal #name-input input {
    width: calc(91% - 148px);
    height: 30px;
    border: 2px solid black;
    outline: none;
    border-radius: 4px;
    font-size: 16px;
    display: inline-block;
    position: absolute;
    left: 27px;
    top: 31px;
}
#modal #name-input button {
    background: url("../imgs/ui/clear-off.png") no-repeat no-repeat center;
    background-size: cover;
    width: 148px;
    height: 52px;
    outline: none;
    border: none;
    position: absolute;
    right: 0;
}
#modal #name-input button:hover {
    background: url("../imgs/ui/clear-on.png") no-repeat no-repeat center;
    background-size: cover;
    width: 148px;
    height: 52px;
    outline: none;
    border: none;
}

#modal-loading {
    display: flex;
    position: absolute;
    z-index: 101;
    width: 100%;
    height: 100%;
    top: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#modal-loading .modal-back {
    position: absolute;
    z-index: 101;
    display: flex;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0.5;
}
#modal-loading #loading {
    position: absolute;
    height: 50px;
    display: flex;
    font-size: 40px;
    font-family: 'Minecraft', sans-serif;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-shadow:
            -1.5px -1.5px 0 #000,
            1.5px -1.5px 0 #000,
            -1.5px  1.5px 0 #000,
            1.5px  1.5px 0 #000;
}

#modal-new-room {
    display: flex;
    position: absolute;
    z-index: 100;
    width: 100%;
    height: 100%;
    top: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.5);
}

#room-id {
    width: 35%;
}

#modal-new-room input {
    width: 100%;
    height: 30px;
    border: 2px solid black;
    outline: none;
    border-radius: 4px;
    font-size: 16px;
}
