@keyframes start-menu-slide {
    0% {height: 100vh;}
    100% {height: 0vh;}
}

@keyframes start-button-fade {
    0% {
        display: block;
        background-color: var(--yellow-1);
        border: 5px solid var(--yellow-1);
        color: white;
    }
    100% {
        display: none;
        background-color: #ffc04b00;
        border-color: #ffc04b00;
        color: rgba(255, 255, 255, 0);
    }
}

#game-space {
    position: relative;
}

#start-menu.inactive {
    height: 0vh;
    animation: start-menu-slide 1s ease-in-out;
}

#title-wrapper {
    display: flex;
    width: 680px;
    height: 90px;
    position: fixed;
    z-index: 100;
    top: calc(50vh - 125px);
    left: calc(50vw - 340px);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#title {
    font-family: 'Bungee';
    font-weight: 400;
    font-size: 4rem;
    color: var(--yellow-1);
}

#title-underline {
    display: block;
    width: 680px;
    height: 5px;
    background-color: var(--yellow-1);
    border: none;
}

#title-wrapper.small {
    width: 300px;
    height: 50px;
    top: 20px;
    left: calc(50vw - 150px);
    transition-duration: 1s;
}

#title-wrapper.small #title {
    font-size: 2rem;
    transition: inherit;
}

#title-wrapper.small #title-underline {
    width: 300px;
    transition: inherit;
}

#sb-wrapper {
    width: 320px;
    height: 80px;
    position: fixed;
    top: calc(50vh);
    left: calc(50vw - 160px);
}

#start-button {
    width: 320px;
    height: 80px;
    background-color: var(--trans-black);
    border-radius: 100px;
    border: 5px solid var(--yellow-1);
    font-family: 'Heebo';
    font-weight: 900;
    font-size: 2.25rem;
    color: var(--yellow-1);
    transition-duration: 0.5s;
}

#start-button:hover {
    background-color: var(--yellow-1);
    color: var(--text-color);
    transition-duration: 0.5s;
    cursor: pointer;
}

#start-button.hidden {
    display: none;
    animation: start-button-fade 1s ease-in-out;
}

#sm-links-container {
    display: flex;
    width: 650px;
    position: absolute;
    bottom: 5px;
    left: calc(50vw - 325px);
    justify-content: space-between;
    transition: 0.5s;
}

#sm-links-container a, .sm-text {
    font-family: 'Heebo';
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--yellow-0);
}

.sm-text {
    position: absolute;
    bottom: 5px;
    font-size: 1rem;
    font-weight: 700;
    transition: 0.5s;
}

#version {
    left: 10px;
}

#author {
    right: 10px;
}

#game-board {
    display: block;
    width: 640px;
    height: 240px;
    position: absolute;
    top: 95px;
    left: calc(50vw - 352px);
    border-collapse: collapse;
    box-sizing: content-box;
    background-color: var(--brown-1);
    border: 32px solid var(--brown-1);
    border-radius: 30px;
}

#game-board td {
    width: 80px;
    height: 80px;
    box-sizing: border-box;
    background-color: var(--brown-2);
    border: 2px solid var(--brown-1);
    border-radius: 8px;
}

#game-board td.usable:hover {
    background-color: var(--brown-3);
    cursor: pointer;
}

[data-space-type="empty"], [data-space-type="exit"] {
    background-color: var(--trans-black) !important;
}

[data-space-special="helix"] {
    background-color: var(--yellow-1) !important;
}

[data-space-special="helix"].usable:hover {
    background-color: var(--yellow-2) !important;
    cursor: pointer;
}

[data-piece-team] {
    width: 60px;
    height: 60px;
    border: 1px solid;
    border-radius: 5px;
    margin: auto;
}

[data-piece-team="red"] {
    background-color: var(--red-2);
    border-color: var(--red-1);
}

[data-piece-team="blue"] {
    background-color: var(--blue-2);
    border-color: var(--blue-1);
}

[data-piece-team="red"].movable:hover {
    background-color: var(--red-3);
    border-color: var(--red-2);
    cursor: pointer;
}

[data-piece-team="blue"].movable:hover {
    background-color: var(--blue-3);
    border-color: var(--blue-2);
    cursor: pointer;
}

#game-messages {
    display: flex;
    width: 450px;
    height: 32px;
    position: absolute;
    bottom: 115px;
    left: calc(50vw - 225px);
    background-color: var(--yellow-1);
    border-radius: 50px;
    justify-content: center;
    align-items: center;
    gap: 45px;
}

#game-messages span {
    font-family: 'Heebo';
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-color);
}

#list-wrapper {
    width: 450px;
    height: 80px;
    position: absolute;
    bottom: 20px;
    border-radius: 25px;
    left: calc(50vw - 225px);
    overflow: hidden;
}

#list-wrapper div {
    display: flex;
    width: inherit;
    height: inherit;
    background-color: var(--yellow-1);
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

#list-wrapper div button {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    background-color: var(--yellow-2);
    border: none;
    border-radius: 20px;
    font-family: 'Heebo';
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--text-color);
    transition: 0.5s;
}

#list-wrapper div button:hover {
    background-color: var(--yellow-3);
    transition: 0.5s;
    cursor: pointer;
}

#list {
    display: flex;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    background-color: var(--yellow-1);
    box-sizing: content-box;
    padding: 16px;
    justify-content: space-around;
    align-items: center;
    margin-top: -80px;
    transition: 0.5s;
}

#list li {
    display: flex;
    width: 40px;
    height: 40px;
    list-style: none;
    background-color: var(--text-color);
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    font-family: 'Heebo';
    font-weight: 400;
    font-size: 2.8rem;
    color: #ffb329;
}

#list li.list-number {
    font-size: 1.75rem;
    font-weight: 700;
}

.info-card {
    display: flex;
    width: 220px;
    height: 210px;
    position: absolute;
    bottom: 20px;
    flex-wrap: wrap;
    flex-direction: column;
}

#red-info-card {
    left: 20px;
}

#blue-info-card {
    right: 20px;
}

.stats {
    display: flex;
    width: 220px;
    height: 130px;
    border-radius: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    font-family: 'Heebo';
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-color);
}

#red-stats {
    background-color: var(--red-2);
}

#blue-stats {
    background-color: var(--blue-2);
}

.player-titles {
    margin: auto;
    text-align: center;
    font-family: 'Bungee';
    font-weight: 400;
    font-size: 2.25rem;
}

#red-title {
    color: #ff6161;
}

#blue-title {
    color: #41afff;
}

#red-title::after, #blue-title::after {
    content: '';
    display: block;
    width: 220px;
    height: 5px;
}

#red-title::after {
    background-color: var(--red-1);
}

#blue-title::after {
    background-color: var(--blue-1);
}

.pop-up-messages {
    display: flex;
    position: fixed;
    z-index: 500;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    transition: 1s;
}

#end-screen {
    top: -100vh;
}

#winner {
    margin-top: -50px;
    font-family: 'Bungee';
    font-weight: 400;
    font-size: 5rem;
}

#winner.red {
    color: var(--red-1);
}

#winner.blue {
    color: var(--blue-1);
}

#end-screen button {
    background-color: var(--trans-black);
    border: none;
    font-family: 'Heebo';
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--yellow-0);
    cursor: pointer;
}

#intro-message {
    top: 0;
}

#intro-message h1 {
    width: 720px;
    font-family: 'Heebo';
    font-weight: 700;
    font-size: 1.85rem;
    color: var(--yellow-0);
    text-align: center;
}

#intro-message div {
    display: flex;
    width: 410px;
    height: 150px;
    margin-top: 35px;
    align-items: center;
    flex-wrap: wrap;
}

#intro-message div button, #intro-message div a {
    display: flex;
    width: 410px;
    height: 60px;
    background-color: var(--yellow-0);
    border: none;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-family: 'Heebo';
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: 0.5s;
}

#intro-message div button:hover, #intro-message div a:hover {
    background-color: var(--yellow-1);
    transition: 0.5s;
    cursor: pointer;
}
