:root {
  --stark: #10A800;
  --purple: #4F1B8A;
  --pink: #C546C4;
  --pink_dark: #F421A7;
  --red: #D70779;
  --red_dark: #8A0468;
  --pastel: #F2ECC4;
  --p1: #70E36D;
  --p2: #5CBDAE;
  --p3: #5B7CE3;
}
html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow-y: hidden;
}

* {
    font-family: sans-serif;
}

#popup {
    color: white;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 22;
    overflow-y: auto;
    pointer-events: none;
}

#fadein {
    pointer-events: none;
}

.iceparty_logo {
    width: 300px;
    height: 107px;
    margin-top: 10px;
}
#iceparty_welcome {
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    width: 320px;
    padding: 10px;
    box-shadow: -10px 10px 40px rgba(182, 111, 191, 0.5) , 10px -10px 40px rgba(50, 166, 166, 0.5);
    margin-bottom: 50px;
    pointer-events: bounding-box;
}

#iceparty_legal {
    position: fixed;
    bottom: 0px;
    left: 20px;
    color: #b5b5b5;
    margin: 15px 0px;
    font-size: 16px;
    line-height: 16px;
    z-index: 30;
}

.legal_link {
     text-decoration: underline !important;
     color: #b5b5b5;
     border: none !important;
}


#choose_skin {
	width: 50px;
	height: 50px;
    cursor: pointer;
}
#choose_skin:hover {
    transition: transform .2s;
    transform: scale(1.25);
}
#arrow_left , #arrow_right {
    display: inline-block;
    line-height: 0px;
    width: 50px;
    height: 50px;
    cursor: pointer;
}
#name_input {
    border-radius: 8px;
    font-size: 24px;
    padding: 4px;
    text-align: center;
    border: 0px solid black;
    width: 300px;
    background-color: rgba(0, 0, 0, 0);
    color: white;
}


/* PLAY */
.welcome_button {
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    width: 300px;
    border: 1px solid black;
    margin: 4px;
    background: #F26457;
}

.welcome_button:hover {
    background: #cf3f32;
}

#play_button {
    font-size: 32px;
    
}

#pri_start {
    font-size: 24px;
}

h1 {
    font-size: 20px;
}
#init_loading {
    text-align: center;
    font-size: 40px;
    position: absolute;
    top: 100px;
    left: 0px;
    right: 0px;
    width: auto;
}


#starfieldCanvas {
  width: 100%;
  height: 100%;
  background: black;
  position: absolute;
  position-area: center;
}


#logo_text {
    font-size: 100px;
    margin-bottom: 0px;
    background-image: linear-gradient(1.4turn, cyan, violet);
    background-clip: text;
    color: transparent;
}


a {
    color: #F26457;
}

#socials {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 30;
}
#menu_wrapper {
    height: 100vh;
    width: 100vw;
    display: flex;
    place-items: center;
    background-color: black;
    align-content: center;
    justify-content: center;
    pointer-events: none;
}
#menu {
    height: 65%;
    width: 80%;
    color: white;
    background-color: #363636;
    border-radius: 5vh;
    z-index: 23;
    padding: 1.9532%;
    display: flex;
    justify-content: flex-start;
    align-content: center;
    /* flex-wrap: wrap; */
    flex-direction: column;
    padding-top: 0.6512%;
    pointer-events: bounding-box;
}
#menu_title {
    height: 9%;
    font-size: xxx-large;
    background-image: linear-gradient(1.4turn, cyan, violet);
    background-clip: text;
    color: transparent;
    text-align: center;
    width: 100%;
    font-weight: bold;
    unicode-bidi: isolate;
}
#menu_container {
    width: 100%;
    margin-top: 2%;
    height: 88%;
}
#menu_close_button {
    position: absolute;
    margin-top: 1vh;
    margin-left: -1vw;
    font-size: xx-large;
    color: white;
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    width: 4vw;
    height: 4vw;
    font-family: cursive;
    border-radius: 30px;
}
#menu_close_button:hover {
    background-color: rgba(0, 0, 0, 0.3);
}
#menu_back_button {
    position: absolute;
    display: none;
    margin-top: 1vh;
    margin-left: -1vw;
    font-size: xx-large;
    color: white;
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    width: 4vw;
    height: 4vw;
    font-family: cursive;
    border-radius: 30px;
	background-image: url(/iceparty_lobby/assets/icons/arrow-counterclockwise.svg);
    background-size: cover;
    background-position: center;
    border-radius: 25px;
}
#menu_back_button:hover {
    background-color: rgba(0, 0, 0, 0.3);
}
#menu_map_editor_container {
    display: flex;
    flex-direction: row;
    height: 59vh;
    width: 100%;
}
#menu_map_editor_left_container {
    display: flex;
    flex-direction: column;
    height: 425px;
    width: 45%;
}
#menu_map_editor_middle_container {
    display: flex;
    flex-direction: column;
    height: 425px;
    width: 15%;
}
#menu_map_editor_right_container {
    display: flex;
    flex-direction: column;
    height: 425px;
    width: 45%;
}
#menu_map_editor_results {
    margin-top: 15px;
    overflow-y: auto;
    overflow-x: clip;
    width: 98%;
}
.menu_map_result {
    padding: 5px;
    margin-top: 5px;
    border-radius: 10px;
    border: 2px solid black;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: rgba(0, 0, 0, 0.1);
    height: 18.5px;
    display: flex;
    justify-content: flex-start;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
}
.menu_map_name_right_container {
    padding: 5px;
    margin-top: 5px;
    border-radius: 10px;
    border: 2px solid black;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: rgba(0, 0, 0, 0.1);
    height: 18.5px;
    display: flex;
    justify-content: flex-start;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
}
#menu_map_editor_right_top_container {
    height: 50%;
}
#menu_map_editor_right_bottom_container {
    height: 50%;
}
#menu_map_editor_chosen_maps {
    height: 75%;
    overflow-y: auto;
    overflow-x: hidden;
}
#menu_map_editor_removed_maps {
    height: 75%;
    overflow-y: auto;
    overflow-x: hidden;
}
#menu_map_editor_search {
    width: 40%;
    margin-left: 10%;
    height: 1.25em;
}
.menu_editor_state_toggle {
    border: 2px solid black;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 1%;
    position: relative;
    font-size: large;
}
.map_name {
    margin-left: 5px;
}
.map_name_right {
    margin-left: 5px;
}
.menu_default_button {
    margin: 5px;
    width: max-content;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 1em;
    height: 1.7em;
}
.menu_default_button:hover {
    background-color: rgba(0, 0, 0, 0.3);
}
#menu_map_editor_difficulty_filter {
    margin: 5px;
    width: max-content;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 1em;
    height: 1.7em;
    appearance: auto;
    text-rendering: auto;
    letter-spacing: normal;
    word-spacing: normal;
    line-height: normal;
    text-transform: none;
    text-shadow: none;
    display: inline-block;
    text-align: center;
    cursor: default;
    box-sizing: border-box;
    padding-block: 2px;
    padding-inline: 6px;
    border-width: 2px;
    border-style: outset;
    border-color: buttonborder;
}
#menu_games_container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-around;
}
/* .menu_game {
    height: fit-content;
    width: 75%;
    margin-top: 1%;
    border: 2px solid black;
    border-radius: 30px;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 6em;
    font-family: fantasy;
    font-style: italic;
}
.menu_game:hover {
    background-color: rgba(0, 0, 0, 0.3);
} */
.menu_game {
    height: 45%;
    width: 30%;
    margin-top: 1%;
    border: 2px solid black;
    border-radius: 30px;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 6em;
    font-family: fantasy;
    font-style: italic;
    cursor: pointer;
}
.menu_game:hover {
    background-color: rgba(0, 0, 0, 0.3);
}
.menu_game:disabled {
    background-color: rgba(0, 0, 0, 0.7);
    cursor: not-allowed;
}
.menu_game_type_container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-around;
}
#menu_games_casual {
    display: none;
}
#menu_games_ranked {
    display: none;
}
#menu_games_private {
    display: none;
}
#menu_games_tournament {
    display: none;
}
#game_tournament_list {
    font-size: 4em;
}
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    filter: brightness(0.5);
}
#menubar_toggle {
    position: fixed;
    height: 10%;
    width: 5%;
    top: 2%;
    right: 2%;
    background-image: linear-gradient(to bottom, rgb(0 27 255 / 44%) 0%, rgb(231 101 101 / 71%) 100%), url(/iceparty_lobby/assets/icons/list.svg);
    background-size: cover;
    background-position: center;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    box-shadow: 0px 10px 40px rgba(182, 111, 191, 0.5), 0px -10px 40px rgba(50, 166, 166, 0.5);
    z-index: 30;
}
#menubar_container {
    position: fixed;
    height: 0%;
    width: 4%;
    top: 12%;
    right: 2%;
    background-color: gray;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    overflow-x: hidden;
    z-index: 28;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.menubar_button {
    aspect-ratio: 1;
    width: 85%;
    background-color: gray;
    border: 0px;
    margin-bottom: 10%;
    white-space: nowrap;
    z-index: 29;
}
.menubar_button:hover {
    background-color: #474747;
}
#menubar_account_button {
    background-image: url(/iceparty_lobby/assets/icons/person-circle.svg);
    background-size: cover;
    background-position: center;
    border-radius: 25px;
}
#menubar_settings_button {
    background-image: url(/iceparty_lobby/assets/icons/gear-wide-connected.svg);
    background-size: cover;
    background-position: center;
    border-radius: 25px;
}
#menubar_stats_button {
    background-image: url(/iceparty_lobby/assets/icons/trophy.svg);
    background-size: cover;
    background-position: center;
    border-radius: 13px;
}
#menubar_history_button {
    background-image: url(/iceparty_lobby/assets/icons/history_icon.png);
    background-size: cover;
    background-position: center;
    border-radius: 13px;
}
#menu_settings_container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.menu_setting_container {
    height: max-content;
}
#temp_hide {
    display: block;
}
#sign_in_options {
    display: flex;
}
#account_options {
    display: none;
}
#account_uuid {
    all: unset;
    margin-left: 1vw;
    cursor: pointer;
}
#account_email {
    all: unset;
    filter: blur(6px);
    margin-left: 1vw;
    cursor: text;
}
.flex_container {
    display: flex;
}
#menu_skins_container {
    width: 100%;
    height: 57vh;
    display: grid;
    grid-template-columns: repeat(10, 10%);
    overflow-y: scroll;
    align-content: start;
    justify-content: space-between;
}
.menu_skin_unlocked {
    width: 12vh;
    height: 12vh;
    margin-top: 20%;
    -webkit-user-drag: none;
    transition: transform .2s;
}
.menu_skin_locked {
    width: 12vh;
    height: 12vh;
    margin-top: 20%;
    filter: blur(5px) grayscale(1);
    -webkit-user-drag: none;
}
.menu_skin_unlocked:hover {
    transform: scale(1.1);
}
.skin_selected {
    border: 5px solid yellow;
    box-sizing: border-box;
}
#menu_stats_container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#menu_history_container {
    display: grid;
    height: 99%;
    width: 100%;
    top: 1%;
    position: relative;
    grid-template-columns: 20% 20% 20% 20% 20%;
    grid-template-rows: 50% 50%;
}
.menu_history_match {
    display: flex;
    border: 2px solid black;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    border-radius: 30px;
    width: 95%;
    height: 95%;
    flex-direction: column;
    align-items: center;
    font-size: medium;
    cursor: pointer;
}
.menu_history_match:hover {
    background-color: rgba(0, 0, 0, 0.3);
}
.menu_history_match_timestamp {
    display: flex;
    width: 100%;
    margin-top: 5%;
    justify-content: center;
}
.menu_history_match_players {
    display: flex;
    width: 100%;
    flex-direction: column;
}
.menu_history_match_player {
    height: 100%;
    width: 100%;
}
.menu_history_match_player_myself {
    font-weight: bold;
}
.menu_history_match_player_info_1, .menu_match_ranking_1 {
    color: #d4af37;
}
.menu_history_match_player_info_2, .menu_match_ranking_2 {
    color: #c0c0c0;
}
.menu_history_match_player_info_3, .menu_match_ranking_3 {
    color: #ce8946;
}
.menu_history_match_player_info_4, .menu_match_ranking_4 {
    color: white;
}
#menu_match_container {
    display: flex;
    height: 99%;
    width: 100%;
    top: 1%;
    position: relative;
}
#menu_match_settings {
    height: 100%;
    width: 25%;
    font-size: larger;
    line-height: 1.5;
}
#menu_match_middle {
    border: 4px solid black;
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: larger;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}
#menu_match_top {
    border: 3px solid black;
    display: flex;
    justify-content: center;
    height: 7%;
    width: 63%;
    align-items: center;
    border-top: none;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
#menu_match_top_round {
    width: 50%;
    display: flex;
    justify-content: center;
}
#menu_match_ranking_top {
    display: flex;
    width: 100%;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}
#menu_match_ranking_top_rank, .menu_match_ranking_rank {
    width: 10%;
    margin-left: 2%;
}
#menu_match_ranking_top_name, .menu_match_ranking_name {
    width: 30%;
}
#menu_match_ranking_top_score, .menu_match_ranking_score {
    width: 20%;
}
#menu_match_ranking_top_score_increase, .menu_match_ranking_score_increase {
    width: 20%;
}
#menu_match_ranking {
    height: 70%;
    width: 100%;
}
.menu_match_ranking_player {
    display: flex;
    width: 100%;
}