.ui-progressbar-value {
    background: #7D6DFA !important;
}

.ui-widget-overlay {
    background: linear-gradient(45deg, #6B63F2, #8E8BF0, #FBDDC0 80%);
    opacity: 1;
}

.ui-widget {
    transform: unset !important;
    -webkit-transform: unset !important;
}

.ui-progressbar {
    border: none !important;
    padding: unset !important;
}

#progressbar {
    position: fixed;
    bottom: 4%;
}

.background-shape {
    visibility: hidden;
    background-image: url("./BackgroundShape.png");
    background-repeat: no-repeat;
    position: fixed;
    right: -120px;
    opacity: 0.2;
    z-index: 101;
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 70%;
    top: 0%;
}

body {
    margin: unset;
}

#game-wrapper {
    position: relative;
    z-index: 10000;
    padding: 20px 44px 0px 0px;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.game-header {
    display: flex;
    position: relative;
    z-index: 10000;
    color: white;
}

.game-header img {
    height: 98px;
    width: 128px;
    margin-top: -12px;
}

.header-icon {
    height: 56px;
}

.main-header {
    display: flex;
    flex-direction: column;
    flex: 1 1;
}

.header-top {
    position: relative;
}

.header-top .name {
    font-size: 25px;
    font-family: 'Manrope';
    font-weight: bold;
}

.header-middle {
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.header-middle hr {
    margin-block-start: 0;
    margin-block-end: 0;
    flex: 1 1;
    border: unset;
    border-top: 2px solid white;
}

.header-bottom {
    font-size: 15px;
    font-family: 'Manrope';
}

.header-middle .container-score {
    background-color: lightcoral;
    border-radius: 12px;
    padding: 4px 12px;
}

.header-top,
.header-middle,
.header-bottom {
    display: flex;
    justify-content: space-between;
}

#instruction-screen {
    margin-left: 128px;
    height: 100%;
    position: relative;
    color: white;
}

#instruction-screen .title {
    font-size: 25px;
    font-family: 'Manrope';
    font-weight: 500;
    margin-bottom: unset;
    margin-top: 26px;
}

#instruction-screen .message {
    font-size: 19px;
    font-family: 'Manrope';
    line-height: 30px;
    margin-block-start: 12px;
    padding-right: 136px;
}

#instruction-screen .buttons-container {
    display: flex;
    position: absolute;
    width: 100%;
    bottom: 152px;
}

.buttons-container .next-button {
    color: #C1B3FC;
}

.buttons-container .next-button svg {
    transform: rotate(-90deg);
    padding-right: 2px;
    width: 8px;
    height: 15px;
}

.buttons-container .next-button svg path {
    fill: #C1B3FC;
}

.buttons-container .back-button {
    color: #C1B3FC;
}

.buttons-container .back-button svg {
    transform: rotate(90deg);
    width: 8px;
    height: 15px;
}

.buttons-container .back-button svg path {
    fill: #C1B3FC;
}

#overlay-text {
    position: absolute;
    top: 50%;
    font-size: 24px;
    left: calc(50% - 190px);
    visibility: hidden;
    color: white;
    font-family: 'Manrope';
}

.header-action-buttons {
    display: none;
    gap: 28px;
    align-items: center;
}

.header-action-buttons .level {
    font-size: 15px;
    font-family: 'Manrope';
    font-weight: bold;
    visibility: hidden;
}

.header-action-buttons>button {
    background-color: white;
    border-radius: 20px;
    padding: 7px 38px;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Manrope';
    width: 122px;
}

.header-action-buttons>button:focus-visible {
    outline: none;
}

.header-action-buttons #pause-button {
    visibility: hidden;
}

.header-action-buttons #pause-button:disabled {
    color: black;
    border-color: unset;
}

canvas {
    top: 93px !important;
}

body.mobile canvas {
    top: 154px !important;
}


/* Mobile Handling */
.ui-widget-overlay.mobile {
    background: linear-gradient(to top, #6B63F2, #FAD1A8);
}

#expDialog.mobile #progressbar {
    display: none;
}

#expDialog.mobile .header-logo {
    left: 50%;
    transform: translate(-50%, -50%);
}

.background-shape.mobile {
    right: -24px;
    background-size: cover;
    width: 124%;
    height: 100%;
    top: 0%;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    background-image: url("./BackgroundShapeMobile.png");
    background-position: center;
}

#game-wrapper.mobile {
    padding: 28px 24px;
}

#game-wrapper.mobile #instruction-screen {
    margin-left: 13px;
}


#game-wrapper.mobile #instruction-screen .title {
    font-size: 16px;
    font-weight: 600;
}

#game-wrapper.mobile #instruction-screen .message {
    font-size: 19px;
    font-size: 14px;
    line-height: 20px;
    margin-block-start: 12px;
    padding-right: 0;
}

#game-wrapper.mobile #overlay-text {
    visibility: hidden !important;
}

#game-wrapper.mobile .buttons-container {
    justify-content: center !important;
    bottom: 0px;
}

#game-wrapper.mobile .buttons-container.mini {
    justify-content: flex-end !important;
}

#game-wrapper.mobile .buttons-container .next-button {
    margin-right: unset !important;
    background: linear-gradient(45deg, #856CFF 40%, #C1B3FC) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    display: flex !important;
    justify-content: center !important;
    padding: 16px 0px;
    border-radius: 20px;
    color: white !important;
    width: 100%;
}

.game-header-mobile {
    position: relative;
    z-index: 10000;
    color: white;
    font-family: 'Manrope';
}

.game-header-mobile img {
    height: 60px;
}

.game-header-mobile .mode-buttons-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    align-items: center;
}

.game-header-mobile .mode-buttons-wrapper .exit-button {
    padding-top: 3px;
    width: 24px;
}

.game-header-mobile .logo-game-wrapper {
    display: flex;
    align-items: center;
    font-size: 25px;
    gap: 8px;
}

.game-header-mobile hr {
    border: unset;
    border-top: 2px solid white;
}

.game-header-mobile .mode-buttons-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.game-header-mobile .mode {
    font-size: 22px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.game-header-mobile .mode .game-mode-mobile {
    margin: auto;
}

.game-header-mobile .mode img {
    height: 18px;
    margin-right: 52px;
}

.game-header-mobile .mobile-level {
    text-align: right;
    display: none;
}

.game-header-mobile .pause-button {
    visibility: hidden;
    height: 28px;
    width: 40px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-input-buttons {
    display: none;
    justify-content: space-between;
    flex-direction: column;
    gap: 18px;
    color: black;
}

.mobile-input-buttons > div {
    display: flex;
    justify-content: space-between;
}

.mobile-utility-button {
    color: white;
}

.mobile-input-buttons>button {
    display: flex;
    align-items: center;
    border-radius: 24px;
    width: 45px;
    height: 45px;
    border: none;
}

.mobile-input-buttons .beep-button {
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    width: 60px;
    height: 47px;
    user-select: none;
    background: linear-gradient(to bottom,
            #c1b3fc 0%,
            #856cff 100%);
}

:fullscreen,
::backdrop {
    background-color: unset;
}

:fullscreen #game-wrapper.mobile .buttons-container {
    bottom: 4px;
}

.beep-button {
    background-position: center;
    transition: background 0.8s;
}

.beep-button:active {
    background: #c1b3fc;
    background-size: 100%;
    transition: background 0s;
}

#game-wrapper.mobile .buttons-container .next-button:active {
    background: #c1b3fc !important;
}