:root {
    --primary_color: #352f44;
    --secondary_color: #5c5470;
    --tertiary_color: #a395c9;
    --quaternary_color: #faf0e6;

    --secondary_color_opacity: #5c547085;

    --high_rank: #80ff46;
    --medium_rank: aliceblue;
    --low_rank: #ff2e2e;

    --high_mean: #3cff00;
    --medium_mean: #000000;
    --low_mean: #b91e1e;

    /* limegreen */
    --check_true: #80ff46;
    --check_false: gray;

    /* Teams colors */
    --recommended_team: #dc1414;
    --viable_team: #00c0e2;
    --for_fun_team: #b1c51b;
    --unique_team: #ff6701;

    /* Teams collapsible colors */
    --recommended_collapsible_team: #ee4f4f;
    --viable_collapsible_team: #5acbdf;
    --for_fun_collapsible_team: #b3c04e;
    --unique_collapsible_team: #ff9650;

    /* Text color */
    --light_text: aliceblue;
    --gray_text: rgb(195, 202, 211);
    /* --dark_text: #313131; */
    --dark_text: #000000;

    /* Character rarity */
    --character_4_stars: #5c2391;
    --character_5_stars: #a07a1b;
    --character_5_stars_light: #e9b124;

    /* Material rarity */
    --material_1_stars: #929292;
    --material_2_stars: #239135;
    --material_3_stars: #234f91;
    --material_4_stars: #5c2391;
    --material_5_stars: #a07a1b;

    /* Background */
    --dark_background: #313131;
    --shadow_background: rgba(0, 0, 0, 0.4);
    --light_background: blanchedalmond;

    /* Extra */
    --star_shadow: #e3721b;

    /* Archetypes */
    --pyro: rgb(177, 46, 48);
    --electro: rgb(132, 16, 233);
    --dendro: rgb(145, 201, 14);
    --anemo: rgb(14, 192, 103);
    --cryo: rgb(163, 227, 239);
    --geo: rgb(255, 216, 59);
    --hydro: rgb(1, 229, 255);
    --flex: rgb(255, 100, 172);

    --pyro_collapsible: rgb(224, 117, 119);
    --electro_collapsible: rgb(170, 104, 228);
    --dendro_collapsible: rgb(169, 202, 92);
    --anemo_collapsible: rgb(85, 184, 134);
    --cryo_collapsible: rgb(187, 226, 233);
    --geo_collapsible: rgb(250, 227, 133);
    --hydro_collapsible: rgb(119, 220, 231);
    --flex_collapsible: rgb(255, 181, 215);

    --warning: rgb(255, 238, 0);
    --warning_background: rgb(165, 144, 50);
    --warning_background_opacity: rgba(165, 144, 50, 0.514);

    --light_link_link: rgb(255, 243, 81);
    --light_link_visited: rgb(255, 191, 73);
    --light_link_hover: rgb(255, 191, 73);
    --light_link_active: rgb(255, 243, 81);

    --calendar_background_color: rgba(247, 247, 247, 1);
}

@font-face {
    font-family: 'GenshinImpact';
    src: url('https://morteux.github.io/AliceWorkshop/font/genshin_impact.ttf') format('truetype');
}

html,
body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;

    font-family: GenshinImpact;

    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100%;

    padding: 0;
    margin: 0;

    background-color: var(--primary_color);
}

.primary_button {
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    color: var(--light_text);
    background-color: var(--secondary_color);
    cursor: pointer;
    font-family: GenshinImpact;
}

.primary_button:hover {
    color: var(--dark_text);
    background-color: var(--tertiary_color);
}

.primary_button:active {
    color: var(--dark_text);
    background-color: var(--quaternary_color);
}

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

.title_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-top: 2vh;
    margin-bottom: 3vh;

    width: 100%;
    min-height: 100%;

    font-size: 10vh;
    font-family: GenshinImpact;
}

.tab_teams_workshop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 90%;

    margin-top: 5vh;
}

.tab_teams_search {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 90%;

    margin-top: 5vh;
}

.tab_user {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 90%;

    margin-top: 5vh;
}

.scroll_top_button {
    display: none;
    position: fixed;
    bottom: 2vh;
    right: 3vh;
    width: 5vh;
    height: 5vh;
    z-index: 99;

    background-image: url('../images/icons/up_arrow.png');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary_color);

    border: none;
    outline: none;
    color: white;
    cursor: pointer;

    padding: 1.5vh;
    border-radius: 4px;
}

/* Switch styles */

.switch input {
    display: none;
}

.switch {
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 1vh;
    /* transform: translateY(50%); */
    position: relative;
}

.slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 30px;
    box-shadow: 0 0 0 2px red, 0 0 8px red;
    cursor: pointer;
    border: 4px solid transparent;
    overflow: hidden;
    transition: 0.2s;
}

.slider:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: red;
    border-radius: 30px;
    transform: translateX(-30px);
    /*translateX(-(w-h))*/
    transition: 0.2s;
}

input:checked+.slider:before {
    transform: translateX(30px);
    /*translateX(w-h)*/
    background-color: limeGreen;
}

input:checked+.slider {
    box-shadow: 0 0 0 2px limeGreen, 0 0 8px limeGreen;
}




/* Autocomplete */

.autocomplete {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    /*the container must be positioned relative:*/
    position: relative;
}

input {
    border: 1px solid transparent;
    background-color: var(--light_background);
    padding: 1vh;
    font-size: 1.9vh;
}

input[type=text] {
    background-color: var(--light_background);
    width: 100%;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    padding: 1vh;
    cursor: pointer;
    color: var(--dark_text);
    background-color: var(--light_background);
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    /*when hovering an item:*/
    color: var(--light_text);
    background-color: var(--dark_background);
}

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    color: var(--light_text);
    background-color: var(--dark_background) !important;
}

.scrollable_div {
    /* padding: 2vh 2vw; */
    height: 10vh;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: justify;
}





/* Select style */

.list_choice {
    width: 20vh;
    margin: 2vh;
    position: relative;
    cursor: pointer;

    z-index: 15;
}

.list_choice input[type="radio"] {
    position: absolute;
    left: -9999px;
}

.list_choice_title {
    width: 100%;
    display: block;
    background-color: var(--secondary_color);
    color: var(--light_text);
    text-align: center;
    padding: 0.55em 1em;
    box-sizing: border-box;
    text-shadow: 0 1px 0 #CACACA;
    border-radius: 0.2em;
}

.list_choice:hover .list_choice_title {
    border-radius: 0.2em 0.2em 0 0;
}

.list_choice_objects label:nth-last-of-type(1) span {
    border-radius: 0 0 0.2em 0.2em;
}

.list_choice input[type="radio"]+span {
    color: #FFF;
    background-color: var(--secondary_color);
    padding: 0.55em 1em;
    display: block;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    width: 100%;
}

.list_choice_objects {
    position: absolute;
    top: 0;
    padding-top: 2.1em;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: all 250ms ease;
}

.list_choice:hover .list_choice_objects input[type="radio"]+span {
    position: relative;
    top: 0;
    transition: all 250ms ease-in-out;
}

.list_choice:hover input[type="radio"]+span:hover {
    background-color: var(--tertiary_color);
    color: var(--dark_text);
}

.list_choice:hover input[type="radio"]:checked+span:hover {
    background-color: var(--tertiary_color);
    color: var(--dark_text);
}

.list_choice input[type="radio"]:checked+span {
    background-color: var(--tertiary_color);
    color: var(--dark_text);
    position: absolute;
    top: 0em;
    border-radius: 0.2em;
}

.list_choice:hover input[type="radio"]:checked+span {
    border-radius: 0;
}

.list_choice:hover .list_choice_objects label:nth-last-of-type(1) input[type="radio"]:checked+span {
    border-radius: 0 0 0.2em 0.2em;
}

.list_choice:hover .list_choice_objects {
    max-height: 540px;
}



/* Checkbox filters style */

.checkbox_filter {
    margin: 0px;
}

.checkbox_filter label {
    padding: 0.5vh;
    border: var(--tertiary_color) 2px solid;
    border-radius: 10px;
}

.checkbox_filter input[type="checkbox"] {
    width: 0%;
    opacity: 0;
    margin: 0;
}

.checkbox_filter input[type="checkbox"]+label {
    color: var(--check_false);
    /* text-decoration: line-through 2px; */
}

.checkbox_filter input[type="checkbox"]:checked+label {
    color: var(--check_true);
    text-decoration: none;
}







/* Popup container */

/* The actual popup (appears on top) */
.popup .popuptext {
    visibility: hidden;
    width: 8vh;
    background-color: #398d12;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 150%;
    margin-left: -80px;

    cursor: default;
}

/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
    visibility: visible;
    -webkit-animation: fadeIn ease 2s;
    animation: fadeIn ease 2s;
    opacity: 0;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Tooltip text */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    visibility: hidden;
    width: 150%;
    height: 5vh;
    background-color: black;
    color: var(--light_text);
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    font-size: small;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: -45%;

    overflow-wrap: break-word;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.warning_panel {
    font-size: small;

    color: var(--warning) !important;
    background-color: var(--warning_background_opacity) !important;
    border-color: var(--warning_background) !important;
}

.warning_img {
    width: 4vw;
    margin-right: 1vw;
}

.cookies_background {
    position: fixed;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    z-index: 100;

    background-color: rgba(0, 0, 0, 0.541);
}

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

    background-color: var(--primary_color);

    width: 40vw;

    padding: 2vh 1vw;

    color: var(--light_text);

    border: solid var(--secondary_color) 2px;

    border-radius: 20px;
}

.cookies_img {
    width: 6vw;
    margin-right: 1vw;
}

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

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

.cookies_buttons>button {
    margin: 1vh 1vw;
}

.discord_img {
    width: 4vw;
    /* margin-right: 1vw; */

    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

.discord_widget {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    position: fixed;
    bottom: 2vh;
    left: 3vh;

    z-index: 10;

    width: 13vw;

    background-color: var(--secondary_color);
    border: solid 2px var(--tertiary_color);
    border-radius: 10px;

    font-size: small;
    color: var(--dark_text);

    padding: 1vh 1vw 1vh 0vw;
}

.close_icon {
    position: absolute;
    top: 2px;

    width: 1.5vw;
}

.close_left {
    left: 2px;
}

.close_right {
    right: 2px;
}

.close_icon:hover {
    filter: invert(100%);
}

.welcome_background {
    position: fixed;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    z-index: 50;
}

.welcome_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;

    background-color: var(--primary_color);

    width: 40vw;

    padding: 2vh 1vw;

    color: var(--light_text);

    border: solid var(--secondary_color) 2px;

    border-radius: 20px;
}

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

    margin: 1vh 1vw;
}

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

    margin: 1vh 1vw;
}

.welcome_title {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-top: 2vh;
    margin-bottom: 3vh;

    width: 100%;
    min-height: 100%;

    font-size: 6vh;
    font-family: GenshinImpact;
}

.disclaimer_panel {
    position: relative;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    width: 95%;

    font-size: small;

    color: var(--warning);
    background-color: var(--warning_background_opacity);
    border: solid 2px var(--warning_background);
    border-radius: 10px;

    text-wrap: wrap;

    padding: 1vh 1vw;

    margin: 2vh 0vw;
}

.disclaimer_text {
    margin: 1vh 0vw;
}

.workinprogress_panel {
    position: fixed;
    bottom: 10vh;
    right: 1vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;

    margin: 2vh 0vw;

    height: 60vh;
    width: 3vw;

    font-size: 3vh;

    background-color: var(--warning_background_opacity);

    border-left: 3px solid var(--warning);
    border-right: 3px solid var(--warning);

    z-index: 10;

    overflow: hidden;
}

.workinprogress_vertical_text {
    color: var(--warning);

    writing-mode: vertical-rl;
    /* text-orientation: upright; */

    /* height: 90%; */
}

.workinprogress_img {
    width: 4vw;
}

/* Light links styles */
/* spans link */
.light_link {
    color: var(--light_link_link);
    cursor: pointer;
    /* text-decoration: underline; */
}

/* unvisited link */
.light_link:link {
    color: var(--light_link_link);
}

/* visited link */
.light_link:visited {
    color: var(--light_link_visited);
}

/* mouse over link */
.light_link:hover {
    color: var(--light_link_hover);
}

/* selected link */
.light_link:active {
    color: var(--light_link_active);
}




/* Vertical text ticker */
@-webkit-keyframes ticker {
    0% {
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
        visibility: visible;
    }

    100% {
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
}

@keyframes ticker {
    0% {
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
        visibility: visible;
    }

    100% {
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
}

.ticker-wrap {
    overflow: hidden;

    .ticker {
        -webkit-animation-iteration-count: infinite;
        animation-iteration-count: infinite;
        -webkit-animation-timing-function: linear;
        animation-timing-function: linear;
        -webkit-animation-name: ticker;
        animation-name: ticker;
        -webkit-animation-duration: 10s;
        animation-duration: 10s;
    }
}

















/* Wide laptop version (Width: 1024->1440px) */
@media only screen and (min-width: 1025px) and (max-width: 1440px) {
    .footer {
        font-size: smaller;
    }
}
















/* Small desktop/laptop version (Width: 769->1024px) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {}











/* Mobile version (Width: 300->768px) */
@media only screen and (min-width: 0px) and (max-width: 768px) {
    .close_icon {
        width: 6vw;
    }

    .workinprogress_panel {
        right: 1vw;
    }

    .list_choice {
        width: 40vw;
    }

    .welcome_container {
        width: 80vw;

        height: 90vh;
        overflow-x: hidden;
        overflow-y: auto;
        text-align: justify;
    }

    .welcome_title {
        font-size: 3vh;
    }

    .welcome_p {
        margin: 1vh 4vw;
    }

    .cookies_container {
        flex-direction: column;
        width: 60vw;
    }

    .cookies_img {
        width: 20vw;
    }

    .cookies_buttons {
        flex-direction: row;
    }

    .cookies_message {
        margin: 4vw;
    }
}