@font-face {
    font-family: "Baloo Bhai";
    font-display: swap;
    font-weight: 400;
    src: url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-regular.eot);
    src: local(''),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-regular.ttf) format("truetype"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-regular.svg) format("svg"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-regular.woff) format("woff"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-regular.woff2) format("woff2");
  }
@font-face {
    font-family: "Baloo Bhai";
    font-display: swap;
    font-weight: 500;
    src: url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-500.eot);
    src: local(''),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-500.ttf) format("truetype"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-500.svg) format("svg"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-500.woff) format("woff"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-500.woff2) format("woff2");
  }
@font-face {
    font-family: "Baloo Bhai";
    font-display: swap;
    font-weight: 600;
    src: url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-600.eot);
    src: local(''),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-600.ttf) format("truetype"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-600.svg) format("svg"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-600.woff) format("woff"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-600.woff2) format("woff2");
  }
@font-face {
    font-family: "Baloo Bhai";
    font-display: swap;
    font-weight: 700;
    src: url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-700.eot);
    src: local(''),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-700.ttf) format("truetype"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-700.svg) format("svg"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-700.woff) format("woff"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-700.woff2) format("woff2");
  }
@font-face {
    font-family: "Baloo Bhai";
    font-display: swap;
    font-weight: 800;
    src: url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-800.eot);
    src: local(''),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-800.ttf) format("truetype"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-800.svg) format("svg"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-800.woff) format("woff"),
    url(fonts/baloo-bhai-2-v19-vietnamese_latin-ext_latin_gujarati-800.woff2) format("woff2");
  }

/* Styling */
/* Variables */

:root {
    --background-color-hex: #0b0b11;
    --background-color-dropdown-out-of-focus: #171724;
    --background-color-dropdown-in-focus: #323741;
    --background-color-dropdown-in-focus-rim: #363a43;
    --background-color-dropdown-rim-glow: #a558e8;
    --background-color-dropdown-active: #2e2e47;
    --background-color-dropdown-selected-item: #23242a;
    --background-color-dropdown-hovered-item: #2a2d35;
    --font-color-dropdown-option-font: #9fa5b5;
}

/* General styling */

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    height: clamp(100vh,100vh,100vh);
    background-color: var(--background-color-hex);
    overflow-x: hidden;
}

/* Header section */

header {
    margin-top: 20px;
}

nav {
    display: flex;
    height: 100px;
    position: relative;
    justify-content: center;
    background-image: url(https://www.hexis-esports.de/wp-content/themes/pixiehuge/assets/img/header-bg.webp);
    background-repeat: repeat-x;
}

#nav-container {
    display: flex;
    justify-content: right;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    gap: 25px;
    padding-right: 25px;
}

#nav-logo {
    position: absolute;
    height: 171px;
    width: 460px;
    display: block;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(https://www.hexis-esports.de/wp-content/themes/pixiehuge/assets/img/logo-bg.webp);
}

#logo-image {
    position: absolute;
    height: 100%;
    aspect-ratio: 1/1;
    left: 230px;
    top: -12px;
    transform: translateX(-50%);
    background-image: url(https://www.hexis-esports.de/wp-content/uploads/2022/11/Logo.webp);
    background-position: center;
    background-size: 80%;
    background-repeat: no-repeat;
}

/* Dropdown menu */

.tierlistGameDropdown {
    background-color: var(--background-color-dropdown-selected-item);
    font-family: 'Baloo Bhai', sans-serif;
    color: white;
    display: flex;
    justify-content: center;
    border: none;
    border-radius: 5px;
    padding: 0.75em 1em;
    cursor: pointer;
    width: 100%;
}

/* Main section */

main {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 67px;
    padding-bottom: 10px;
}

#headers {
    display: none;
}

#headers h1 {
    font-family: 'Baloo Bhai', sans-serif;
    font-weight: 800;
    color: white;
    margin: 0;
    text-align: right;
}

#headers span {
    text-align: right;
    margin: 0;
    font-family: 'Baloo Bhai', sans-serif;
    font-weight: 400;
    color: #fff5;
}

#tierlist-section {
    width: 95%;
    height: 100%;
}

.tierlist-area {
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 25px;
}

#mobile-tierlist {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#m-options {
    height: 50px;
    width: 100%;
    display: flex;
    gap: 5px;
}

.m-option {
    display:flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-left: 1px transparent solid;
    border-top: 1px transparent solid;
    border-right: 1px transparent solid;
    background-color: var(--background-color-dropdown-out-of-focus);
    color: white;
    font-family: 'Baloo Bhai', sans-serif;
    font-size: 1em;
    font-weight: 800;
}

.m-option:hover {
    background-color: var(--background-color-dropdown-hovered-item);
    cursor: pointer;
}

.m-option-active {
    background-color: var(--background-color-dropdown-in-focus) !important;
    border-left: 1px var(--background-color-dropdown-rim-glow) solid;
    border-right: 1px var(--background-color-dropdown-rim-glow) solid;
    border-top: 1px var(--background-color-dropdown-rim-glow) solid;
    box-shadow: 0 0 0.8em var(--background-color-dropdown-rim-glow), inset 0 0 0.4em var(--background-color-dropdown-rim-glow);
}

.m-option-icons {
    width: 40%;
    height: 40%;
}

#m-option-remove {
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-left: 1px transparent solid;
    border-top: 1px transparent solid;
    border-right: 1px transparent solid;
    background-color: var(--background-color-dropdown-out-of-focus);
    color: white;
    font-family: 'Baloo Bhai', sans-serif;
    font-size: 1em;
    font-weight: 800;
    margin-left: auto;
}

.m-tierlist {
    display: none;
    box-sizing: border-box;
    flex-direction: column;
    flex: 1;
    gap: 20px;
    padding: 10px;
    height: 100%;
    width: 100%;
    background-color: var(--background-color-dropdown-out-of-focus);
}

.m-tierlist-tiers {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 20px;
    width: 100%;
    padding-bottom: 72px;
    transition: padding-bottom 0.3s ease;
}

.m-tierlist-active {
    display: flex !important;
}

.m-tierlist-tier {
    display: flex;
    min-height: 54px;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border: 1px white solid;
}

.m-tierlist-tier:nth-child(1){
    margin-top: 20px
}

.m-tierlist-tiername {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Baloo Bhai', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    height: 100%;
    width: 50px;
    padding: 0 5px;
    box-sizing: border-box;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    box-shadow: inset 0 0 0 1px #fff7,inset 0 0 0 5px var(--background-color-dropdown-out-of-focus);
}

#m-tierlist-default-tier-1 > .m-tierlist-tiername {
    background-color: hsl(120deg,45%,55%);
}

#m-tierlist-default-tier-2 > .m-tierlist-tiername {
    background-color: hsl(60deg,45%,55%);
}

#m-tierlist-default-tier-3 > .m-tierlist-tiername {
    background-color: hsl(0deg,45%,55%);
}

.m-tierlist-dropzone {
    position: relative;
    flex: 1;
    height: 100%;
    box-sizing: border-box;
    gap: 2px;
    padding: 2px;
    flex-wrap: wrap;
}

.m-tierlist-dropzone-settings, .m-tierlist-dropzone-order {
    flex: 1;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
    padding: 0 5px;
    gap: 10px;
    background-color: var(--background-color-dropdown-in-focus);
}


.m-tierlist-dropzone-settings input {
    display: flex;
    width: 50px;
    height: 30px;
    box-sizing: border-box;
    padding: 0 5px;
    text-align: center;
    border-radius: 5px;
    background-color: var(--background-color-dropdown-selected-item);
    border: none;
}

label, input, .m-tierlist-dropzone-order > span {
    font-family: 'Baloo Bhai', sans-serif;
    color: white
}

.m-tierlist-dropzone-settings-accept-settings, .m-tierlist-dropzone-order-up, .m-tierlist-dropzone-order-down {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: auto;
    width: 30px;
    aspect-ratio: 1/1;
    border-radius: 5px;
    background-color: var(--background-color-dropdown-selected-item);
    border: solid 1px transparent
}

.m-tierlist-dropzone-settings-accept-settings > img, .m-tierlist-dropzone-order-up > img, .m-tierlist-dropzone-order-down > img {
    width: 55%;
}

.m-tierlist-tier-settings {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 20px;
    background-color: #9991;
}

.m-tierlist-tier-settings div {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.m-tierlist-tier-settings div:nth-child(n+2){
    border-top: 1px solid #fff2;
}

.m-tierlist-tier-settings-icon {
    width: 60%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1/1;
    cursor: pointer;
}

#m-tierlist-champs-selection {
    position: relative;
    box-sizing: border-box;
    display: flex;
    gap: 10px;
    height: 72px;
    padding: 10px 10px 10px 30px;
    transition: transform 0.3s ease;
}

#m-tierlist-champs-selection-default-text {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    width: 70%;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    hyphens: auto;
    margin: 0;
    text-align: center;
}

#m-tierlist-champs-selection-close{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    width: 35px;
    top:-20px;
    background-color: #0009;
    left: 50%;
    transform: translateX(-50%);
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    backdrop-filter: blur(2px);
    cursor: pointer;
}

#m-tierlist-champs-selection-close > img{
    height: 65%;
    aspect-ratio: 1/1;
    transform: rotate(180deg);
    transition: all 0.3s ease;
}

#m-tierlist-champs-selection-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72px;
    transition: bottom 0.5s ease;
    background-color: #0009;
    backdrop-filter: blur(2px);
}

.m-tierlist-champs-selection-option {
    position: absolute;
    height: 100%;
    width: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0005;
    backdrop-filter: blur(2px);
    top: 0;
    cursor: pointer;
    z-index: 5;
}

.m-tierlist-champs-selection-option > img {
    width: 50%;
}

#m-tierlist-champs-selection-left {
    left: 0;
}

#m-tierlist-champs-selection-left > img {
    transform: rotate(-90deg);
}

#m-tierlist-champs-selection-right {
    right: 0;
}

#m-tierlist-champs-selection-right > img {
    transform: rotate(90deg);
}

.champ {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.m-tierlist-page {
    display: none;
    background-color: var(--background-color-dropdown-in-focus);
    align-items: center;
}

.m-tierlist-page * {
    width: 100%;
    font-family: 'Baloo Bhai', sans-serif;
    font-size: 1rem;
    color: white;
}

#m-tierlist-header {
    width: 100%;
    font-family: 'Baloo Bhai', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.tierlist-page-header {
    margin-top: 10px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: underline;
}

.m-tierlist-setting {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tierlist-tier-count-buttons {
    display: flex;
    justify-content: space-evenly;
    gap: 10px;
    height: 50px;
}

.tierlist-tier-count-buttons * {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.tierlist-tier-count-buttons span {
    border: 1px #fff solid;
    border-radius: 10px;
}

.m-tierlist-page button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    border: none;
    border-radius: 10px;
    background-color: var(--background-color-dropdown-selected-item);
}

.m-tierlist-page button:active {
    background-color: var(--background-color-dropdown-hovered-item);
}

.tierlist-gradient-wrapper {
    height: 50px;
    position: relative;
    margin-bottom: 10px;
}

.tierlist-gradient-color {
    width: 50px;
    height: 50px;
    aspect-ratio: 1/1;
    border-radius: 25px;
    border: none;
    position: absolute;
    z-index: 2;
    box-shadow: inset 0 0 0 1px #fff7,inset 0 0 0 5px var(--background-color-dropdown-in-focus);
}

.tierlist-gradient-start {
    background-color: hsl(120deg,45%,55%);
    left: 0;
}

.tierlist-gradient-end {
    background-color: hsl(0deg, 45%, 55%);
    right: 0;
}

.tierlist-gradient-steps{
    width: 95%;
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 50%;
    display: flex;
    justify-content: space-evenly;
    gap: 5px;
}

.tierlist-gradient-step {
    border-radius: 5px;
    width: 100%;
}

.tierlist-gradient-default-step-1 {
    background-color: hsl(120deg,45%,55%);
}

.tierlist-gradient-default-step-2 {
    background-color: hsl(60deg,45%,55%);
}

.tierlist-gradient-default-step-3 {
    background-color: hsl(0deg,45%,55%);
}

.tierlist-gradient-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    border-radius: 25px;
    width: 50px;
    height: 50px;
    overflow: hidden;
}

.tierlist-start-color-picker {
    left:0
}

.tierlist-end-color-picker {
    right:0
}

.tierlist-setting-input {
    display: flex;
    justify-content: space-between;
    height: 50px;
    gap: 10px
}

.tierlist-setting-input input {
    display: flex;
    flex: 1;
    box-sizing: border-box;
    padding: 0 5px;
    text-align: center;
    border-radius: 5px;
    background-color: var(--background-color-dropdown-selected-item);
    border: none;
    width: 100%;
}

.tierlist-setting-input div{
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: auto;
    width: 50px;
    aspect-ratio: 1/1;
    border-radius: 5px;
    background-color: var(--background-color-dropdown-selected-item);
    border: solid 1px transparent;
    transition: all 0.15s linear;
}

.tierlistName{
    transition: all 0.15s linear;
}

.tierlist-setting-input div > img{
    width: 55%;
}

#m-tierlist-tutorial > p {
    text-align: justify;
    hyphens: auto;
    margin: 0;
}

#m-tierlist-contact > a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    border: none;
    border-radius: 10px;
    background-image: url(./img/HalftoneDots.webp);
    background-size: cover;
    background-color: var(--background-color-dropdown-rim-glow);
    text-decoration: none;
    box-shadow: 0 0 0.5rem #0a123077;
}

#m-tierlist-contact > a > span {
    text-align: center;
} 

#m-tierlist-contact > p > span {
    font-weight: 600;
    color: var(--background-color-dropdown-rim-glow);
}

#m-tierlist-contact > a > img {
    height: 30%;
    width: 50px;
    transform: rotate(90deg);
} 

#desktop-tierlist {
    display: none;
}

#desktop-tierlist > div {
    border-radius: 25px;
    background-color: var(--background-color-dropdown-out-of-focus);
}

#d-tierlist-settings {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    min-width: 200px;
    max-width: 250px;
}


#insufficient-height {
    display: none;
    font-size: 1rem;
    color: white;
    font-family: 'Baloo Bhai', sans-serif;
    font-weight: 600;
    width: 75%;
    text-align: center;
}

.tierlist-side {
    display: none;
    background-color: var(--background-color-dropdown-in-focus) !important;
}

.tierlist-side > * {
    width: 95%;
}

.tierlist-side  * {
    font-family: 'Baloo Bhai', sans-serif;
    color: white;
    font-size: 1rem;
}

.tierlist-side button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    border: none;
    border-radius: 10px;
    background-color: var(--background-color-dropdown-selected-item);
}

#column-selection {
    display: none;
}

.display {
    display: flex;
}
.display-none {
    display: none;
}

/* Footer section */

/* Responsive design */

/* Tablets */
@media (min-width: 768px) {
    #nav-logo {
        left: 0;
        transform: unset;
    }
    
    #headers {
        display: flex;
        flex-direction: column;
    }

    #column-selection {
        display: flex;
        width: 95%;
        gap: 10px;
    }

    .settings-button {
        display: flex;
        flex: 1;
    }
    
    #column-count {
        display: flex;
        flex: 1;
        background-color: black;
    }

    #tierlist-container {
        width: clamp(300px,70%,1200px);
    }
}

/* Laptops */
@media (min-width: 992px) {
    #mobile-tierlist {
        display: none;
    }
    
    #desktop-tierlist {
        display: flex;
    }

}

/* Große Geräte */
@media (min-width: 1200px) {
}

@media (max-height: 500px) {
    #options-dropdowns {
        display: none;
    }

    #tierlist-section {
        display: none;
    }

    #insufficient-height {
        display: block;
    }
}