:root {
    --color-theme: #a17c7a;
    --color-theme-light: #ece5e4;
    --color-theme-shadow: #a17c7aa0;
    --color-text: var(--color-theme);
}

/* custom fonts */
@font-face {
    font-family:'Quicksand';
    src: url("/f/Quicksand.ttf");
}

/* custom animations */
@keyframes loading {
	0% {
		rotate: 0deg;
	}
	100% {
		rotate: 360deg;
	}
}

body, div, p {
    margin: 0;
    padding: 0;
}

/* body */
body{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: "Quicksand";
    color: var(--color-text);
    overflow: hidden;
}

#body-wrapper{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* visibility: hidden;
  opacity: 0; */
  transition:
    opacity 240ms ease-out;
}

.loading-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: loading 15s linear infinite;
}
.loading-wrapper::before {
    content: '';
    position: absolute;
    top: calc(50% - 6rem);
    left: calc(50% - 6rem);
    width: 12rem;
    height: 12rem;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-left: 1px solid var(--color-theme);
    border-right: 1px solid var(--color-theme);
    border-radius: 50%;
    animation: loading 1800ms cubic-bezier(.6,-0.24,.4,1.24) infinite;
}
.loading-wrapper::after{
    content: '';
    position: absolute;
    top: calc(50% - 3.6rem);
    left: calc(50% - 3.6rem);
    width: 7.2rem;
    height: 7.2rem;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-top: 1px solid var(--color-theme);
    border-bottom: 1px solid var(--color-theme);
    border-radius: 50%;
    animation: loading 2880ms cubic-bezier(.75,-0.3,.55,1.18) infinite reverse;
}

#player-selection-wrapper {
    position: absolute;
    box-sizing: border-box;
    padding: 10vmin;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 9rem 6rem 1fr;
    gap: 3rem;
    align-content: start;
    justify-content: start;
}

#player-selection-title {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 9rem;
    text-align: center;
    font-size: 3.6rem;
    font-weight: normal;
}

#player-selection-search-wrapper {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 2rem;
    border: 2px solid var(--color-theme);
}

#player-selection-search {
    position: absolute;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    top: 1.2rem;
    left: 7.6rem;
    right: 2rem;
    height: 3.6rem;
    outline: none;
    border: none;
    border-bottom: 1px solid var(--color-theme);
    background-color: transparent;
    line-height: calc(3.6rem - 1px);
    font-size: 2.4rem;
    color: var(--color-text);
}
#player-selection-search::placeholder {
    font-size: 2.4rem;
    color: var(--color-text);
    opacity: 0.48;
}

#player-selection-list {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 9rem;
    gap: 2rem;
    align-content: start;
    justify-content: start;
    overflow: auto;
}

.player-selection-button {
    position: relative;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 2rem;
    border: 2px solid var(--color-theme);
    background-color: var(--color-theme-light);
    line-height: 3.6rem;
    font-size: 2.4rem;
    text-align: center;
    align-content: center;
    word-break: break-all;
}

#player-working-wrapper {
    position: absolute;
    box-sizing: border-box;
    padding: 10vmin;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 6rem);
}

#player-navi-wrapper {
    position: absolute;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6rem;
    border-top: 2px solid var(--color-theme);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
}

#player-nickname,
#player-type-selection-button,
#player-logout-button {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 2.4rem;
    color: var(--color-theme);
}

#player-nickname,
#player-type-selection-button,
#player-logout-button {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 2.4rem;
    color: var(--color-theme);
}

#player-nickname,
#player-type-selection-button,
#player-logout-button {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 2.4rem;
    color: var(--color-theme);
}

#type-selection-wrapper,
#team-type-selection-wrapper {
    position: absolute;
    box-sizing: border-box;
    padding: 10vmin;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 9rem 1fr;
    gap: 3rem;
    align-content: start;
    justify-content: start;
}

#type-selection-title,
#team-type-selection-title {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 9rem;
    text-align: center;
    font-size: 3.6rem;
    font-weight: normal;
}

#type-selection-list,
#team-type-selection-list {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 2rem;
    align-content: start;
    justify-content: start;
    overflow: auto;
}

.type-selection-button,
.team-type-selection-button {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 2rem;
    border: 2px solid var(--color-theme);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 3.6rem 1fr;
    align-content: start;
    justify-content: start;
    overflow: hidden;
}

.type-selection-button.unavailable,
.team-type-selection-button.unavailable {
    pointer-events: none;
}
.type-selection-button.unavailable::before,
.team-type-selection-button.unavailable::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffffc0;
    text-align: center;
    align-content: center;
    line-height: calc(3.6rem);
    font-size: 2.4rem;
    color: var(--color-text);
    z-index: 100;
}
.type-selection-button.unavailable::before {
    content: '该玩法低于队伍目标';
}
.team-type-selection-button.unavailable::before {
    content: '新目标不能高于队伍成员的玩法';
}

.type-selection-button-title,
.team-type-selection-button-title {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-theme);
    color: white;
    text-align: center;
    font-size: 2.4rem;
    font-weight: normal;
}

.type-selection-button-objective,
.team-type-selection-button-objective {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 12px;
    line-height: 2.4rem;
    font-size: 1.8rem;
    word-break: break-all;
    overflow: auto;
}

#team-selection-wrapper {
    position: absolute;
    box-sizing: border-box;
    padding-top: 10vmin;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 9rem 1fr 9rem;
    align-items: center;
    justify-items: center;
}

#team-selection-title {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 9rem;
    text-align: center;
    font-size: 3.6rem;
    font-weight: normal;
}

#team-selection-list {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 3rem 10vmin 3rem 10vmin;
    width: 100%;
    height: 100%;
    border-bottom: 2px solid var(--color-theme);
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 2rem;
    align-content: start;
    justify-content: start;
    overflow: auto;
}

.team-selection-button {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    height: 12rem;
    border-radius: 2rem;
    border: 2px solid var(--color-theme);
    user-select: none;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 3.6rem 1fr;
    align-content: start;
    justify-content: start;
    overflow: hidden;
}

.unsuitable-team {
    pointer-events: none;
}
.unsuitable-team::before {
    content: '无法加入';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffffc0;
    text-align: center;
    line-height: calc(12rem - 4px);
    font-size: 2.4rem;
    color: var(--color-text);
    z-index: 100;
}
.unsuitable-team.full-team::before {
    content: '该队伍已满员';
}
.unsuitable-team.high-team::before {
    content: '该队伍有更高目标';
}

.team-selection-button-title {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-theme);
    color: white;
    text-align: center;
    font-size: 2.4rem;
    font-weight: normal;
}

.team-selection-button-player-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    justify-items: center;
}

.team-selection-button-player {
    position: relative;
    margin: 0;
    padding: 0;
    font-size: 1.8rem;
    color: var(--color-text);
}

#team-creation-button {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    padding-left: 2rem;
    padding-right: 2rem;
    width: max-content;
    height: 6rem;
    border-radius: 2rem;
    border: 2px solid var(--color-theme);
    line-height: calc(6rem - 4px);
    font-size: 2.4rem;
}

#team-wrapper {
    position: absolute;
    box-sizing: border-box;
    padding-top: 10vmin;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 9rem 1fr calc(9rem + 1px);
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

#team-title {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 9rem;
    text-align: center;
    font-size: 3.6rem;
    font-weight: normal;
}

#team-detail-wrapper {
    position: relative;
    box-sizing: border-box;
    width: calc(100% - 20vmin);
    height: 100%;
    border-radius: 2rem;
    border: 2px solid var(--color-theme);
    user-select: none;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 3.6rem calc(8.4rem - 1px) 1fr 1fr;
    align-content: start;
    justify-content: start;
    overflow: hidden;
}

#team-detail-title {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-theme);
    color: white;
    text-align: center;
    font-size: 2.4rem;
    font-weight: normal;
}

#team-detail-player-wrapper {
    position: relative;
    box-sizing: border-box;
    border-bottom: 1px solid var(--color-theme);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    justify-items: center;
}

.team-detail-player {
    position: relative;
    margin: 0;
    padding: 0;
    font-size: 1.8rem;
    color: var(--color-text);
}

#team-detail-objective{
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 2.4rem;
    border-bottom: 1px solid var(--color-theme);
    line-height: 2.4rem;
    font-size: 1.8rem;
    word-break: break-all;
    overflow: auto;
}

#team-detail-prompt{
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 2.4rem;
    border-bottom: 1px solid var(--color-theme);
    text-align: center;
    align-content: center;
    line-height: 3.6rem;
    font-size: 2.4rem;
    word-break: break-all;
    overflow: auto;
}


#team-button-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    border-top: 2px solid var(--color-theme);
    grid-auto-columns: max-content;
    grid-template-rows: 1fr;
    grid-auto-flow: column;
    gap: 6rem;
    justify-content: center;
    align-items: center;
    justify-items: center;
}

.team-button {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    padding-left: 2rem;
    padding-right: 2rem;
    height: 6rem;
    border-radius: 2rem;
    border: 2px solid var(--color-theme);
    line-height: calc(6rem - 4px);
    font-size: 2.4rem;
    user-select: none;
}























