@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700;900&display=swap");

* {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow-x: hidden;
}

.form-wrap {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    display: flex;
    overflow: hidden;
}

.form-area {
    padding-top: 118px;
    padding-bottom: 2%;
    width: 100%;
    min-height: 1350px;
    bottom: 0;
    top: 118px;
    padding-right: 50px;
}

@media all and (max-width: 768px) {
    .form-area {
        min-height: 100vh;
    }
}

.frog {
    position: relative;
    height: 100%;
    width: 78vw;
    background: url(/assets/images/desktop-bcg.webp) no-repeat;
    background-size: 100% 100%;
}

.frog .desktop-frog {
    width: 755px;
    height: auto;
    object-fit: cover;
    object-position: left top;
    position: absolute;
    top: 118px;
    left: -275px;
}

.logo {
    display: block;
    width: 195px;
    margin: 0 auto;
}

.brand {
    width: 220px;
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding-top: 55px;
}

.brand  .hsr {
    width: 47px;
    height: 28px;
    background-image: url("/assets/images/hsr.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.brand  .text {
    color: #6d8398;
    font-family: Roboto, sans-serif;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: normal;
    line-height: 17px;
    text-align: left;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
    padding-left: 7px;
    padding-right: 7px;
}

.brand  .gbl {
    width: 61px;
    height: 28px;
    background-image: url("/assets/images/gbl.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.form-area .title {
    width: 422px;
    margin: 0 auto;
    margin-top: 25px;
    color: #000000;
    font-family: Poppins, sans-serif;
    font-size: 28px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: normal;
    line-height: 38px;
    text-align: center;
    margin-bottom: 16px;
}


.form-area .desc {
    width: 415px;
    margin: 0 auto;
    text-align: center;
    font-family: Poppins, sans-serif;
    color: #4D4D4D;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px;
    margin-bottom: 42px;
}

.tablet-frog {
    display: none;
}

.top-part {
    display: flex;
    height: 785px;
    box-shadow: 59px 49px 73px rgba(218, 218, 218, 0.52);
    background-color: #ffad00;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.13) 100%);
    overflow: hidden;
}

.rect-1 {
    min-width: 260px;
    height: 785px;
    transform: skewX(-25deg);
    background-color: #ffc200;
    margin-left: 165px;
}

.rect-2 {
    min-width: 23px;
    height: 785px;
    transform: skewX(-25deg);
    background-color: #c32222;
    margin-left: 455px;
}

.rect-3 {
    min-width: 23px;
    height: 785px;
    transform: skewX(-25deg);
    background-color: #6300ff;
    margin-left: 460px;
}

.bottom-part {
    position: relative;
    height: calc(100vh - 785px);
    background-image: url("/assets/images/touch-area.svg");
    background-repeat: no-repeat;
    background-position: 100% 100%;
}

.form-wrap .copyright {
    display: none;
    width: 422px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 42px;
    padding-top: 62px;
    color: #B8B8B8;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
}

.copyright.desktop {
    display: block;
}

.copyright.mobile {
    display: none;
}

.form-area .copyright {
    width: 422px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 42px;
    padding-top: 62px;
    color: #B8B8B8;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
}

.event {
    margin: 0 auto;
}

.ui-selectmenu-button {
    display: flex;
    align-items: center;
    margin: 0 auto;
    width: 422px !important;
    border-radius: 24px;
    border: 1px solid #e8eaec !important;
    background: #fff !important;
    height: 74px;
    padding-left: 20px;
}

.ui-selectmenu-button[aria-expanded="true"] {
    border-color: #5A0DF5 !important;
    border-bottom: none !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ui-selectmenu-button .ui-selectmenu-text {
    max-width: 340px;
    color: #000000;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: normal;
    line-height: 25px;
    text-align: left;
    overflow: visible;
    text-overflow: inherit;
    white-space: normal;
}

.role .ui-selectmenu-button {
    height: 47px;
}

.role .ui-selectmenu-button.ui-selectmenu-button-open {
    height: 74px;
}

.ui-selectmenu-button .ui-selectmenu-icon {
    transform: rotate(180deg);
    position: absolute;
    right: 20px;
    background-image: url("/assets/images/dropdown-arrow.svg") !important;
    background-repeat: no-repeat;
    background-position: center;
}

.ui-corner-top .ui-selectmenu-icon {
    transform: rotate(0deg);
    transition: transform .2s;
}

.ui-widget.ui-widget-content {
    border: 1px solid #E4E7ED;
}


.ui-selectmenu-menu.ui-front.ui-selectmenu-open .ui-widget-content {
    border: 1px solid #5A0DF5;
    border-top: none;
    box-shadow: none;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.ui-menu-item-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 72px;
    padding: 3px 1em 3px 20px !important;
    padding-right: 80px;
    color: #222 !important;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    border: none !important;
}

ul[aria-labelledby="role-button"] .ui-menu-item-wrapper {
    height: 56px;
}

ul[aria-labelledby="role-button"] {
    max-height: calc(48px * 5) !important;
}


.ui-menu-item-wrapper:hover {
    background: #F5F7FA !important;
}

.ui-menu-item-wrapper.ui-state-active {
    background: #F5F7FA !important;
}

.team.empty {
    position: relative;
}

.role.empty {
    position: relative;
}

.team.empty:after {
    content: "No Teams";
    position: absolute;
    top: 40px;
    left: 20px;
    color: #bfbfbf;
    font-family: Roboto, sans-serif;
    font-size: 17px;
    font-weight: 400;
}

.select-field {
    width: 422px;
    margin: 0 auto;
    margin-bottom: 24px;
    display: none;
}

.select-field.show {
    display: block;
}

.select-field label {
    display: block;
    padding-left: 18px;
    color: #8799aa;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-align: left;
    margin-bottom: 15px;
}

.button {
    width: 422px;
    display: block;
    padding: 0 24px;
    height: 48px;
    line-height: 48px;
    vertical-align: middle;
    text-align: center;
    border-radius: 24px;
    background-color: #000000;
    font-size: 18px;
    color: white;
    cursor: pointer;
    border: 1px solid #000000;
    font-family: Roboto, sans-serif;
    margin: 0 auto;
    margin-top: 40px;
    z-index: 1;
    position: relative;
    display: none;
}

.button.show {
    display: block;
}

.button:hover {
    background-color: #ffffff;
    color: black;
}

.loader-wrapper {
    text-align: center;
}
.loader {
    display: inline-block;
    border: 5px solid #f3f3f3;
    border-top: 5px solid orange;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ui-widget.ui-widget-content {
    max-height: calc(72px * 3); /* Set a maximum height for the dropdown */
    overflow-y: auto; /* Enable vertical scrolling */
    border: 1px solid #E4E7ED;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
    max-width: 422px !important;
}

@media all and (max-width: 768px) {
    .ui-widget.ui-widget-content {
        max-width: 100% !important;
    }
}

.powered-by {
    width: 422px;
    position: relative;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 26px;
    margin-right: auto;
    margin-left: auto;
}

.powered-by:after {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    content: '';
    height: 1px;
    width: 422px;
    background: #E4E6E9;
}

.powered-by span {
    padding: 0 20px;
    background: #fff;
    position: relative;
    color: #4D4D4D;
    z-index: 2;
}

.icons {
    width: 422px;
    margin-top: 26px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    display: flex;
    gap: 26px
}


.items-1 + #speed-button.ui-selectmenu-button-open,
.items-1 + #team-button.ui-selectmenu-button-open {
    margin-bottom: 80px;
}

.items-2 + #speed-button.ui-selectmenu-button-open,
.items-2 + #team-button.ui-selectmenu-button-open {
    margin-bottom: 160px;
}

.items-3 + #speed-button.ui-selectmenu-button-open,
.items-3 + #team-button.ui-selectmenu-button-open {
    margin-bottom: 240px;
}

.items-5 + #role-button.ui-selectmenu-button-open {
    margin-bottom: calc((48px * 5) + 46px);
}


#speed-button.ui-selectmenu-button-open:after {
    content: 'Choose event';
    color: #B8B8B8;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

#speed-button.ui-selectmenu-button-open .ui-selectmenu-text {
    display: none;
}

#team-button.ui-selectmenu-button-open:after {
    content: 'Choose team';
    color: #B8B8B8;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

#team-button.ui-selectmenu-button-open:after {
    content: 'Choose team';
    color: #B8B8B8;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

#team-button.ui-selectmenu-button-open .ui-selectmenu-text {
    display: none;
}

#role-button.ui-selectmenu-button-open:after {
    content: 'Choose role';
    color: #B8B8B8;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

#role-button.ui-selectmenu-button-open .ui-selectmenu-text {
    display: none;
}

@media all and (max-width: 1440px) {
    .frog {
        width: 40vw;
    }
}

@media all and (max-width: 1280px) {
    .form-wrap {
        flex-direction: column-reverse;
    }

    .frog {
        background-image: url("/assets/images/tablet-bcg.png");
    }

    .form-area {
        padding-top: 70px;
        padding-right: 0;
        margin-bottom: auto;
    }
    
    .form-area .copyright {
        display: none;
    }

    .form-area .title {
        font-size: 24px;
    }

    .form-area .desc {
        font-size: 14px;
    }
    
    .form-wrap > .copyright.mobile {
        display: block;
    }

    .frog {
        width: 100%;
        height: 330px;
        border-top: 100px solid #fff;
        background-size: 100% 100%;
    }

    .frog .desktop-frog {
        display: none;
    }
    
    .frog .tablet-frog {
        width: 196px;
        height: 304px;
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
    }
}

@media all and (max-width: 768px) {
    .frog {
        background-image: url("/assets/images/mobile-bcg.png");
    }

    .form-area {
        padding-top: 50px;
    }

    .title {
        width: calc(100% - 36px) !important;
        margin-left: 18px;
        margin-right: 18px;
    }

    .desc {
        width: calc(100% - 36px) !important;
        margin-left: 18px;
        margin-right: 18px;
    }

    .select-field label {
        font-size: 14px;
    }

    .select-field {
        width: calc(100% - 36px) !important;
        margin-left: 18px;
        margin-right: 18px;
    }

    .ui-selectmenu-button {
        margin: 0;
        width: 100% !important;
    }

    .ui-selectmenu-button .ui-selectmenu-text {
        font-size: 14px;
    }

    .button {
        width: calc(100% - 36px) !important;
        margin-left: 18px;
        margin-right: 18px;
    }

    .icons {
        width: calc(100% - 36px) !important;
        max-width: 422px;
        gap: 0;
        justify-content: space-between;
        margin-left: auto;
        margin-right: auto;
    }

    .powered-by {
        width: calc(100% - 36px) !important;
        margin-left: auto;
        margin-right: auto;
    }

    .powered-by:after {
        width: 100%;
    }

    .icons img {
        max-width: 91px;
    }

    .copyright {
        width: calc(100% - 36px) !important;
        margin-left: auto;
        margin-right: auto;
    }

    .ui-widget.ui-widget-content {
        width: calc(100vw - 36px) !important;
    }



    .ui-selectmenu-button .ui-selectmenu-text {
        max-width: max-content;
    }
}

.ui-selectmenu-menu {
    border-radius: 24px;
    overflow: hidden;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

@media all and (max-width: 768px) {

}


::-webkit-scrollbar-track {
    background: transparent;
    outline: none;

}

::-webkit-scrollbar {
    background: transparent;
    border: none;
    width: 8px;
}

::-webkit-scrollbar-thumb {
    padding: 0 6px;
    border-right: 3px solid transparent;
    background: #222222;
    background-clip: padding-box;
    border-top-right-radius: 60px;
    border-top-left-radius: 35px;
    border-bottom-right-radius: 60px;
    border-bottom-left-radius: 35px;
}
