#expDialog > svg {
    color: white;
}

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

.ui-widget-overlay {
    background: linear-gradient(45deg, #1D52AB, #659FD0, #B3DEF2 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;
    opacity: 0.2;
    z-index: 101;
    background-size: contain;
    height: 130%;
    width: 100%;
    top: -14%;
    right: 2%;
    background-position: right;
}

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;
    gap: 8px;
    position: relative;
    z-index: 10000;
    color: #6D55DC;
}

.game-header img {
    scale: 1.6;
    width: 120px;
    padding-left: 14px;
    box-sizing: border-box;
    margin-top: -16px;
}

.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 #6D55DC;
}

.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;
}

#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, .buttons-container .back-button {
    color: #6D55DC !important;
}

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

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

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

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

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

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

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

.header-action-buttons>button {
    background-color: white;
    border: 1px solid #6D55DC;
    color: #6D55DC;
    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;
}

canvas {
    top: 93px !important;
}

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

#exit-button, #pause-button {
    border: 1px solid #6D55DC;
}




/* Mobile Handling */
.ui-widget-overlay.mobile {
    background: linear-gradient(to top, #1D52AB, #B3DEF2);
}

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

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

.background-shape.mobile {
    right: 0%;
    background-size: cover;
    width: 160%;
    height: 142%;
    transform: unset;
    top: -10%;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    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: 14px;
    line-height: 20px;
    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);
    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-wrapper.mobile .buttons-container.mini .next-button{
    width: 60px;
}

#game-wrapper.mobile .buttons-container.mini .next-button svg{
    width: 24px;
}

#game-wrapper.mobile .buttons-container.mini .next-button svg path {
    fill: white;
}

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

.game-header-mobile img {
    height: 60px;
    width: 80px;
    position: relative;
}

.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 .mode-buttons-wrapper .exit-button svg path {
    fill: #6D55DC;
}

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

.game-header-mobile .logo-game-wrapper .game-name {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

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

.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;
}

.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;
}

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

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

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

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