ul {
    list-style-type: none;

}

.header {
    background-color: #082146;
    color: #fff;
    padding: 10px;
    text-align: center;
}

.admin-options-check {
    font-size: 12px;
}

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

.admin-subheader {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    padding-top: 1rem;
}

.admin-force-reveal {
    margin-left: 24px;
    cursor: pointer;
    color: #fff;
}

.admin-force-reveal:hover {
    text-decoration: underline;
}

.content {
    margin-bottom: 150px;
}

.footer {
    background-color: #082146;
    color: #fff;
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.poker-button {
    background-color: #082146;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.poker-button:hover {
    background-color: #365C78;
}

.poker-button:active {
    background-color: #365C78;
}

.poker-button:disabled {
    background-color: #365C78;
    cursor: not-allowed;
}

.text-footer {
    color: #fff;
    font-size: 0.8em;
    margin: 0;
}

/* Vote list */
.fibonacci-list {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
}

.fibonacci-button {
    width: 50px;
    height: 75px;
    border: 1px solid #082146;
    background-color: #fff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #082146;
    transition: transform 250ms;
}

.fibonacci-button:hover {
    cursor: pointer;
    background-color: #082146;
    color: #fff;
    transform: translateY(-5px);
}

.fibonacci-button:active {
    cursor: pointer;
    background-color: #082146;
    color: #fff;
    transform: translateY(-5px);
}

.fibonacci-button-selected {
    transform: translateY(-10px);
    color: #fff;
    font-weight: bold;
    background-color: #082146;
}

.fibonacci-title {
    text-align: center;
    margin-top: 20px;
}

/* Game board */

.user-table {
    width: auto;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 8px;
}

.user-vote {
    width: 50px;
    height: 75px;
    border: 1px solid #082146;
    background-color: #fff;
    font-weight: bold;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: ease all .5s;
}

.votes-count {
    font-size: 1.2em;
    font-weight: 500;
    color: #082146;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
}

.vote-count {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.votes-count-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.winner {
    width: 65px;
    height: 90px;
    background-color: #365C78;
    color: white;
    font-size: 36px;
}

.average {
    width: 65px;
    height: 90px;
    background-color: #367866;
    color: white;
    font-size: 36px;
}

.stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20%;
    align-items: flex-end;
}

@keyframes reveal-card {
    0% {
        transform: rotateY(180deg);
        background-color: #082146;
        /*background-image: url("/img/bbva-api-market.svg");*/
        background-size: 45px;
        background-repeat: no-repeat;
        background-position: center;
        color: rgba(8, 33, 70, 0);
        white-space: nowrap;
    }
    50% {
        transform: rotateY(90deg);
        color: rgba(8, 33, 70, 0.2);
    }
    75% {
        transform: rotateY(45deg);
        color: rgba(8, 33, 70, 0.5);
    }
    100% {
        transform: rotateY(0deg);
        color: #082146;
    }
}

@keyframes hide-card {
    0% {
        transform: rotateY(180deg);
        background-color: #fff;
    }
    50% {
        transform: rotateY(90deg);
        background-color: #fff;
    }
    75% {
        transform: rotateY(45deg);
        background-color: rgba(8, 33, 70, 0.5);
    }
    100% {
        transform: rotateY(0deg);
        background-color: #082146;
        background-image: url("/img/bbva-api-market.svg");
        background-size: 45px;
        background-repeat: no-repeat;
        background-position: center;
        color: rgba(8, 33, 70, 0);
        white-space: nowrap;
    }
}

.user-name {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.user-vote-hidden {
    background-color: #082146;
    background-image: url("/img/bbva-api-market.svg");
    background-size: 45px;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    white-space: nowrap;
}

.user-vote-hide {
    background-color: #082146;
    background-image: url("/img/bbva-api-market.svg");
    background-size: 45px;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    white-space: nowrap;
    animation: hide-card 1s;
}

.user-vote-reveal {
    background-color: #fff;
    animation: reveal-card 1s;
}

.vote-check {
    color: green;
}

/* grid table */
.grid-table {
    display: inline-grid;
    grid-template-rows: auto 1fr auto;
    grid-gap: 0.4rem;
    grid-template-areas:
        "left top right"
        "left center right"
        "left bottom right";
    grid-template-columns: 10.4rem 1fr 10.4rem;
    margin: 2rem auto auto;
    min-height: 200px;
    width: auto;
    transition: ease all .5s;
}

.grid-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    min-height: 100px;
    min-width: 100px;
}

.grid-table-top {
    grid-area: top;
}

.grid-table-top div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.grid-table-center {
    grid-area: center;
    background-image: url("/img/fibonacci_spiral.svg");
    background-size: 300px;
    background-repeat: no-repeat;
    background-position: center;
    transition: ease all .5s;
}

.grid-table-center-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 200px;
    min-width: 300px;

    border: 1px solid #082146;
    border-radius: 5px;
    padding: 1rem;
    background: rgb(8, 33, 70);
    background: linear-gradient(90deg, rgba(8, 33, 70, 1) 0%, rgba(8, 33, 70, 0.5382528011204482) 100%);
    color: #fff;
    transition: ease all .5s;
}

.grid-table-bottom {
    grid-area: bottom;
}

.grid-table-bottom div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.grid-table-left {
    grid-area: left;
}

.grid-table-left div {
    padding: 0;
}

.grid-table-right {
    grid-area: right;
}

.grid-table-right div {
    padding: 0;
}


.votes-container {
    background-color: #E9E9E9;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    min-height: 100px;
    width: 100%;
    position: fixed;
    bottom: 25px;
}

.poker-title {
    color: #E9E9E9;
    font-size: 5em;
}

.copyUrl {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.copyUrl input {
    height: 30px;
    max-width: 170px;
    border: 1px solid #082146;
    border-radius: 5px;
    font-size: 13px;
    padding: 5px;
}

.copyUrl button {
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

#copyUrlDiv {
    text-align: center;
    font-size: 12px;
}

#name {
    margin-bottom: 0.4rem;
}

.room-users-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.room-users-list-action-button {
    color: #082146;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

}

.user-actions {
    cursor: pointer;
}

.room-accordion-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    color: #082146;
}

.last-rooms-link {
    color: #082146;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    width: fit-content;
}

.last-rooms-link:hover {
    text-decoration: underline;
}

.last-rooms-link:active {
    text-decoration: underline;
}

.last-rooms-title {
    margin-top: 1rem;
    font-size: 14px;
}

.last-rooms {
    display: flex;
    flex-direction: column;
}

.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

@media (max-width: 768px) {
    .grid-table {
        grid-template-rows: auto 1fr auto;
        grid-gap: 0.2rem;
        grid-template-columns: 8rem 1fr 8rem;
        min-height: 160px;
    }

    .grid-area {
        min-height: 80px;
        min-width: 80px;
    }

    .grid-table-center {
        background-image: url("/img/fibonacci_spiral.svg");
        background-size: 240px;
    }

    .grid-table-center-content {
        min-height: 160px;
        min-width: 240px;
    }

    .votes-container {
        min-height: 80px;

        padding: 1rem;
    }

    .fibonacci-list {
        gap: 0.5rem;
    }

    .user-vote {
        width: 40px;
        height: 60px;
    }

    .fibonacci-button {
        width: 40px;
        height: 60px;
    }

    .user-table {
        /* remove width */
        width: auto;
        min-height: auto;
    }

    .user-vote-hidden {
        background-size: 35px;
    }

}

@media (max-width: 480px) {
    .grid-table {
        grid-template-rows: auto 1fr auto;
        grid-gap: 0.2rem;
        grid-template-columns: 6rem 1fr 6rem;
        min-height: 120px;
    }

    .grid-area {
        min-height: 60px;
        min-width: 60px;
    }

    .grid-table-center {
        background-image: url("/img/fibonacci_spiral.svg");
        background-size: 180px;
    }

    .grid-table-center-content {
        min-height: 120px;
        min-width: 180px;
    }

    .votes-container {
        min-height: 60px;

        padding: 1rem;
    }

    .fibonacci-list {
        gap: 0.5rem;
    }

    .user-vote {
        width: 30px;
        height: 45px;
    }

    .fibonacci-button {
        width: 30px;
        height: 45px;
    }

    .poker-title {
        font-size: 3em;
    }

    .copyUrl input {
        max-width: 120px;
    }

    .copyUrl button {
        font-size: 10px;
    }

    .copyUrl {
        gap: 0.5rem;
    }

    .user-vote-hidden {
        background-size: 30px;
    }
}
