/* Custom params */
:root {
    --sgs-ui-gradientStartColor: #1d162a;
    --sgs-ui-gradientEndColor: #2e3041;
}

:focus {
    outline: none !important;
}

body {
    -webkit-tap-highlight-color: transparent;
}

* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    -webkit-touch-callout: none;
}

/* Generic classes*/

.sgs-transition {
    transition: opacity 2.5s;
    -webkit-transition: opacity 2.5s;
}

.sgs-showing {
    opacity: 1;
    animation: sgs-fade-in 0.5s;
}

.sgs-hidden {
    opacity: 0;
    animation: sgs-fade-out 0.5s;
}

.sgs-enabled {
    pointer-events: all;
}

.sgs-disabled {
    pointer-events: none;
    touch-action: none;
}

.sgs-faded {
    opacity: 0.4;
}

.sgs-idle {
    animation: sgs-idle 2s infinite;
}

.sgs-infopanel-main-showing {
    visibility: visible;
    animation: sgs-fade-in 0.2s;
}

.sgs-infopanel-main-hidden {
    opacity: 0;
    animation: sgs-fade-out 0.2s;
}

.sgs-partyMode {
    animation: sgs-partyMode 1.2s infinite;
    animation-timing-function: linear;
}

.sgs-ui-small-panel {
    max-width: 60vw; /* at most 90% of viewport width */
    max-width: min(600px, 60vw); /* you can combine min/max to keep it cute */
    width: 100%; /* fill available width but never exceed max */

    box-sizing: border-box;

    /* Keep your existing styles too! */
    background: linear-gradient(115deg, #2e3041 0%, #1d162a 100%);
    border-radius: 11px;
    color: #b7b7b7;
    font-family: "Inter Bold", sans-serif;
    text-align: center;

    /* For smaller height landscape phones */
    max-height: 80vh;
    overflow-y: auto; /* scroll vertically if content is too tall */
    pointer-events: all;
}

.sgs-ui-main {
    /* z-index: 10; */
    position: relative;
    max-width: 90vw;
    overflow: hidden;
    min-height: 0;
    z-index: 2;
    background-image: linear-gradient(318deg, var(--sgs-ui-gradientStartColor) 0%, var(--sgs-ui-gradientEndColor) 100%);
    color: #b7b7b7;
    font-family: "Inter Bold", sans-serif;
    text-align: center;
    border: 2px solid #404040;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    pointer-events: all;
    user-select: none;
    display: flex;
    flex-direction: column;

    min-width: 65vw;
    margin: 8vh 20px 20px 20px;
}

.sgs-ui-main-small {
    position: relative;
    max-width: 90vw;
    overflow: hidden;
    min-height: 0;
    z-index: 2;
    background-image: linear-gradient(318deg, var(--sgs-ui-gradientStartColor) 0%, var(--sgs-ui-gradientEndColor) 100%);
    color: #b7b7b7;
    font-family: "Inter Bold", sans-serif;
    text-align: center;
    border: 2px solid #404040;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    pointer-events: all;
    user-select: none;
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-width: 25vw;
    max-height: 60vh;
    margin: auto;
}

.sgs-ui-main-small-nosnap {
    position: relative;
    max-width: 90vw;
    overflow: hidden;
    min-height: 0;
    z-index: 2;
    background-image: linear-gradient(318deg, var(--sgs-ui-gradientStartColor) 0%, var(--sgs-ui-gradientEndColor) 100%);
    color: #b7b7b7;
    font-family: "Inter Bold", sans-serif;
    text-align: center;
    border: 2px solid #404040;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    pointer-events: all;
    user-select: none;
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-width: 25vw;
    max-height: 60vh;
    margin: auto;
}

.sgs-ui-prizechart {
    min-width: 45vw;
}

.sgs-ui-fixed {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 15px;
}

.sgs-ui-fixed-small {
    flex: 0 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 15px;
}

.sgs-ui-small {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 15px;
}

.sgs-ui-scrollableY {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    border: 8px solid transparent;
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
    scrollbar-color: rgba(255, 255, 255, 0.8) var(--sgs-infopanel-gradientEndColor);
    margin: clamp(2px, 5vh, 25px);
}

.sgs-ui-scrollableXY {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border: 8px solid transparent;
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
    scrollbar-color: rgba(255, 255, 255, 0.8) var(--sgs-infopanel-gradientEndColor);
}

.sgs-ui-closeHidden {
    visibility: visible;
}

@media (max-width: 750px), (max-height: 500px) {
    /* Smaller than tablet size, usually phones */
    .sgs-ui-main {
        margin: 0px;
        min-width: 100dvw;
        border-radius: 0px;
    }

    .sgs-ui-closeHidden {
        visibility: hidden;
    }

    .sgs-ui-main-small {
        flex: 1 1 auto;
        margin: 0px;
        min-width: 100dvw;
        border-radius: 0px;
        max-height: 100dvh;
    }

    .sgs-ui-fixed {
        background-color: black;
        margin: 0px;
    }

    .sgs-ui-fixed-small {
        background-color: black;
        margin: 0px;
        width: 100dvw;
        height: 100dvh;
    }

    .sgs-ui-scrollableY {
        font-size: 0.9rem;
        margin: 0px;
    }
}

.sgs-ui-scrollableY::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.sgs-ui-scrollableY::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.sgs-ui-scrollableY::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.sgs-ui-scrollableY::-moz-scrollbar {
    white-space: 4px;
    color: rgba(0, 0, 0, 0.2);
    width: 15px;
}

.sgs-ui-title {
    font-weight: 600;
    font-size: clamp(14px, 3vw, 20px);
    font-weight: 700;
    text-shadow: 0 2px #000;
    padding: 15px 0px 15px 0px;
    width: 100%;
    color: rgba(255, 255, 255);
    background-color: rgba(0, 0, 0, 0.4);
    align-self: center;
    justify-content: center;
    border-radius: 11px 11px 0px 0px;
    text-transform: uppercase;
}

.sgs-ui-autoplayCompleteSubtext {
    margin-top: 25px;
    font-weight: 600;
    font-size: 20px;
    font-weight: 700;
    margin: 15px 10px 15px 10px;
    width: 100%;
    color: rgba(255, 255, 255);
    align-self: center;
    justify-content: center;
    border-radius: 8px;
}

.sgs-ui-closeButton {
    position: absolute;
    top: 8px;
    right: 8px;

    width: clamp(30px, 8vh, 45px);
    height: clamp(30px, 8vh, 45px);
    border-radius: 50%;
    border: none;

    background: linear-gradient(144deg, #fe6455 0%, #c01119 100%);
    box-shadow: 0px 2px 0px 2px rgba(0, 0, 0, 0.2);

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.sgs-ui-closeButton::before {
    content: "";
    display: block;
    width: 60%;
    height: 60%;
    background-image: url("./../ignore/ui_icon_close.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
}

/* Generic keyframe */
@keyframes sgs-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes sgs-fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes sgs-idle {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes sgs-partyMode {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* Enable sounds */

.sgs-buttonPopup-alignment {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.sgs-enableSounds-layout {
    text-transform: uppercase;
    display: flex;

    flex-direction: column;
    align-items: stretch;
    justify-content: space-evenly;
    gap: 5vh;
    margin: 4vh 0 4vh 0;
}

.sgs-ui-subtitle {
    text-transform: uppercase;
    font-size: clamp(10px, min(8vw, 5vh), 20px);
    color: #fff;
    padding-inline: 5vw;
}

.sgs-enableSounds-buttonContainer {
    gap: 10%;
    overflow: none;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    font-size: 20px;
    /* width: 100%; */
    max-width: 100%;
    padding-inline: 5vw;
}

.sgs-enableSounds-baseButton {
    flex: 1 1 auto;
    min-width: clamp(80px, 35%, 140px);
    padding: 12px 16px;

    background: linear-gradient(108deg, #51c36d 0%, #3b9215 100%);
    border: 1px solid #3b3b3b;
    border-radius: 11px;

    font-family: "Inter", sans-serif;
    font-weight: bold;
    font-size: clamp(14px, 2vh, 20px);
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;

    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.sgs-enableSounds-yes {
    background: linear-gradient(164deg, rgba(85, 204, 124, 1) 0%, rgba(54, 134, 0, 1) 100%);
}

.sgs-enableSounds-no {
    background: linear-gradient(164deg, rgb(204, 85, 85) 0%, rgb(134, 0, 0) 100%);
}

/* Pause */
.sgs-pause-bg {
    background-color: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    pointer-events: all;
    z-index: 5;
}

.sgs-pause-imgContainer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
}

.sgs-pause-img {
    background-color: rgba(0, 0, 0, 0);
    -ms-flex-align: end;
    width: 160px;
    max-width: 75%;
    aspect-ratio: 1/1;
    border: 0px transparent;
    border-radius: 25px;
}

/* Menu bar */
.sgs-ui-gameOverlay {
    pointer-events: none;
    position: absolute;
    top: 0px;
    bottom: 0px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.sgs-ui-gradientContainer {
    background-color: #0026ff;
    margin: auto;
    height: 100dvh;
    position: absolute;
    bottom: 94px;
    width: 100%;
    height: 2vh;
    z-index: 6969;
}

.sgs-ui-sidebarBottomContainer {
    width: 100%;
    min-width: 210px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    z-index: 1;
}

.sgs-ui-sidebarBottomContainer-landscape {
    max-height: 10%;
}

.sgs-ui-fullscreenContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100dvw;
    height: auto; /* or just remove height */

    display: flex;
    justify-content: center;
    align-items: center;

    padding-top: 50px;
    /* bottom padding will be set dynamically */

    overflow: auto;
    min-height: 0;
    box-sizing: border-box;
}

.sgs-ui-centerContainer {
    flex: 1 1 auto;
    overflow: hidden;
    /* contain scroll inside child */
    display: flex;
    flex-direction: row;
    min-height: 0;
    justify-content: center;
}

.sgs-ui-sidebarTopContainer {
    /* z-index: -1; */
    z-index: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* or your preferred size */
    pointer-events: auto;
    /* so buttons work */
    background: rgba(0, 0, 0, 0);
    /* semi-transparent overlay */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* if you want buttons right aligned */
    padding: 0px;
}

.sgs-ui-sidebarBG {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    /* just behind content but still inside parent */
    background-image: linear-gradient(
        318deg,
        var(--sgs-ui-gradientStartColor) 0%,
        var(--sgs-ui-gradientStartColor) 0%,
        var(--sgs-ui-gradientEndColor) 100%
    );
    transform: translateY(100%);

    /* box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.5); */
    /* transition: transform 0.4s ease; */
}

.sgs-ui-sidebarBG-open {
    transform: translateY(0%);
}

.sgs-ui-sidebarContainer-open {
    transform: translateY(0%);
}

.sgs-ui-sidebarBG-close {
    transform: translateY(0%);
    /* transition: 0.5s; */
    pointer-events: none;
}

.sgs-leftAligned {
    left: 0%;
    display: flex;
    height: 100%;
    width: 20vw;
    margin-top: 3px;
    margin-bottom: 3px;
    align-items: end;
}

.sgs-rightAligned {
    right: 0%;
    display: flex;
    height: 100%;
    justify-content: end;
    width: 20vw;
    margin-top: 3px;
    margin-bottom: 3px;
    align-items: end;
}

.sgs-flexLandscape {
    flex-direction: row;
}

.sgs-flexPortrait {
    margin-top: auto;
}

.sgs-centerAligned {
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

.sgs-ui-overlayButton {
    width: clamp(20px, min(16vw, 15vh), 80px);
    height: 100%;
    background-color: transparent;
    border: 0px transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sgs-ui-test {
    background-color: #0026ff;
}

.sgs-ui-menu .sgs-ui-legalText {
    color: "white";
    text-align: "center";
}

.sgs-ui-sidebarOptionsContainer-landscape {
    opacity: 0;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;

    width: 100%;
    height: auto;
    /* padding: 10px; */
    align-items: end;

    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.sgs-ui-sidebarOptionsContainer-open {
    opacity: 1;
    transform: translateY(0%);
}

.sgs-ui-sidebarOption {
    width: clamp(20px, min(16vw, 15vh), 80px);
    aspect-ratio: 1 / 1;

    display: flex;
    flex-direction: column;
    /* stack img + label */
    align-items: center;
    justify-content: center;

    gap: 4px;
    padding: 5px;

    background: linear-gradient(108deg, #2e3041 0%, #1d162a 100%);
    border-radius: 12px;
    border: 4px solid rgba(0, 0, 0, 0.6);
    font-size: clamp(10px, 2vw, 16px);
    color: white;
    cursor: pointer;
    overflow: hidden;
    /* Prevent image pokies! */
}

.sgs-ui-sidebarOption-landscape {
    aspect-ratio: 1/1;
    /* flex-basis: 25%; */
    width: 100%;
    font-size: 10px;
    /* max-width: 10%; */
}

.sgs-ui-sidebarOption-portrait {
    width: 90%;
    justify-content: start;
}

@media (hover: hover) and (pointer: fine) {
    .sgs-ui-sidebarOption:hover {
        box-shadow: rgba(0, 0, 0, 0.35) 0px 0px 6px;
        border-color: #e7e7e7;
    }
}

.sgs-ui-sidebarOption-selected {
    background-color: rgba(0, 0, 0, 0.5);
    border: 4px #fff solid;
    opacity: 1;
    transition: 0.2s;
    display: flex;
    box-shadow: 0px 0px 7px 4px rgba(0255, 255, 255, 0.3);
}

.sgs-ui-sidebarOption-hidden {
    display: none;
}

.sgs-ui-menuOptionImage-landscape {
    aspect-ratio: 1/1;
    flex: none;
    width: 100%;
}

.sgs-ui-menuOptionImage-portrait {
    /* aspect-ratio: 1/1; */
    width: 45px;
    flex: none;
    margin-right: 5px;
}

.sgs-ui-menuOptionLabel {
    color: "fff";
    pointer-events: none;
}

.icon-wrapper {
    width: 70%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sgs-ui-menuOptionImg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Keeps aspect ratio! No squishies! */
    pointer-events: none;
    /* Prevent weird clicks */
    user-select: none;
}

.sgs-ui-menuOptionOpen {
    content: url("./../ignore/ui_icon_menu.svg");
}

.sgs-ui-menuOptionClose {
    content: url("./../ignore/ui_icon_close.svg");
}

/* .sgs-ui-butt {
    content: url("./../ignore/ui_icon_sound_off.svg");
    max-height: 60px;
} */

.sgs-ui-menuOptionHome {
    content: url("./../ignore/ui_icon_home.svg");
}

.sgs-ui-menuOptionInfo {
    content: url("./../ignore/ui_icon_info.svg");
}

.sgs-ui-menuOptionOddsTable {
    content: url("./../ignore/ui_icon_table.svg");
}

.sgs-ui-menuOptionPrizeChart {
    content: url("./../ignore/ui_icon_prize_chart.svg");
}

.sgs-ui-menuOptionVolume {
    content: url("./../ignore/ui_icon_sound_on.svg");
}

.sgs-ui-menuOptionVolume-off {
    content: url("./../ignore/ui_icon_sound_off.svg");
}

.sgs-ui-menuOptionSettings {
    content: url("./../ignore/ui_icon_cog.svg");
}

.sgs-ui-menuOptionExternalHelp {
    content: url("./../ignore/ui_icon_question_mark_2.svg");
}

.sgs-ui-deposit {
    content: url("./../ignore/ui_icon_deposit.svg");
}

@media screen and (max-height: 700px) {
    .sgs-ui-sidebarOption {
        font-size: 16px;
    }

    .sgs-ui-menuOptionImage-landscape {
        aspect-ratio: 1/1;
        flex: none;
        width: 100%;
        max-height: 45px;
        max-width: 45px;
    }
}

.sgs-ui-popupTopBar {
    width: 100%;
    padding-top: 3px;
    padding-bottom: 4px;
    min-width: 210px;
    border: 2px transparent;
    transition: right 0.4s;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    pointer-events: none;
    max-height: 9%;
    background-color: rgba(0, 0, 0, 0.6);
}

.sgs-ui-popupButtonsContainer {
    width: 65%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap-reverse;
}

.sgs-ui-popupButton {
    width: 29%;
    max-width: 90px;
    height: 100%;
    padding: 5px;
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    border: 4px rgba(0, 0, 0, 0.6) solid;
    border-radius: 12px;
    opacity: 0.85;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex: 1;
    gap: 5px;
    margin-left: 12px;
    margin-right: 12px;
}

.sgs-ui-popupButton-selected {
    background-color: rgba(0, 0, 0, 0.5);
    border: 4px #fff solid;
    opacity: 1;
    transition: 0.2s;
    display: flex;
    box-shadow: 0px 0px 7px 4px rgba(0255, 255, 255, 0.3);
}

/* Game information */
.sgs-infopanel-markdown {
    padding: 1rem;
    margin: 0 auto;
    max-width: 800px;
    text-align: left !important;
}

.sgs-infopanel-markdown h1 {
    color: rgba(255, 255, 255, 1);
    font-size: clamp(1.8rem, 4vw, 36px);
    margin: 5vh 0.5rem 0;
    text-align: center !important;
}

.sgs-infopanel-markdown h2 {
    color: rgba(255, 255, 255, 1);
    font-size: clamp(1.5rem, 3vw, 30px);
    margin: 5vh 0.5rem 0;
    border-left: 5px white solid;
    text-align: left !important;
    padding-left: 16px;
}

.sgs-infopanel-markdown p,
.sgs-infopanel-markdown img {
    font-size: clamp(1rem, 2vw, 19px);
    margin: 3vh 0.5rem 0;
}

.sgs-infopanel-markdown blockquote {
    text-align: center !important;
    font-size: clamp(1rem, 2vw, 19px);
    margin: 3vh 0.5rem 0;
}

.sgs-infopanel-markdown strong {
    color: rgba(255, 255, 255, 1);
}

.sgs-infopanel-markdown-imgCont {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.sgs-infopanel-markdown img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.sgs-infopanel-titleElement {
    display: flex;
    justify-content: left;
    font-size: clamp(14px, 3vw, 20px);
    text-align: center;
    margin-top: 20px;
    margin-left: 40px;
    margin-right: 40px;
    color: rgba(255, 255, 255);
}

.sgs-infopanel-bodytextElement-titleSpacer {
    width: 4px;
    height: 32px;
    background-color: rgba(255, 255, 255);
    margin-right: 20px;
    border-radius: 12px;
}

.sgs-infopanel-bodytextElement {
    display: flex;
    justify-content: left;
    font-size: 19px;
    text-align: left;
    margin-left: 10px;
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.56);
}

.sgs-infopanel-versiontextElement {
    display: flex;
    justify-content: center;
    font-size: 14px;
    text-align: center;
    color: #bbbbbb;
}

.sgs-infopanel-scrollableXY::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.sgs-infopanel-scrollableXY::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255);
    border-radius: 10px;
}

.sgs-infopanel-scrollableXY::-webkit-scrollbar-track {
    background: var(--sgs-ui-gradientEndColor);
}

.sgs-infopanel-tableColumnTitle {
    left: 65px;
    position: sticky;
    left: 0;
    z-index: 4;
    top: 0;
    font-size: 28px;
    background-color: rgba(0, 0, 0, 0.3);
    min-height: 25px;
    padding: 15px 15px 15px 125px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.sgs-infopanel-tableStaticHeader {
    z-index: 2;
    position: sticky;
    top: 0px;
    left: 0;
    border: solid;
    background-color: rgba(0, 0, 0.5);
    color: rgb(161, 176, 255);
    border-color: rgba(255, 255, 255, 0.7);
    margin-left: 20px;
    margin-right: 20px;
}

.sgs-infopanel-tableColTitle {
    text-align: right;
    padding: 3px 3px 7px 3px;
    color: rgb(161, 176, 255);
    border-bottom: solid rgba(255, 255, 255, 0.7);
}

.sgs-infopanel-tableRowTitle {
    text-align: right;
    padding: 7px 3px 3px 3px;
    color: rgb(255, 120, 120);
}

.sgs-infopanel-tableColHeader {
    z-index: 1;
    position: sticky;
    top: 0px;
    border: solid;
    background-color: #000000;
    border-width: 1;
    color: rgb(161, 176, 255);
    border-color: rgba(255, 255, 255, 0.5);
    padding: 12px 25px 12px 25px;
}

.sgs-infopanel-tableColHeaderValue {
    z-index: 1;
    position: sticky;
    top: 0px;
    border: solid;
    background-color: #000000;
    border-width: 1;
    color: rgb(161, 176, 255);
    border-color: rgba(255, 255, 255, 0.5);
    padding: 5px 25px 5px 25px;
}

.sgs-infopanel-tableRowHeader {
    z-index: 1;
    position: sticky;
    left: 0;
    border: solid;
    background-color: rgba(0, 0, 0, 0.5);
    border-width: 1;
    color: rgb(255, 120, 120);
    border-color: rgba(255, 255, 255, 0.5);
    padding: 3px 25px 3px 25px;
}

.sgs-infopanel-tableCell {
    z-index: 0;
    color: #cccccc;
    border: solid;
    border-width: 1px;
    border-color: #666666;
    padding: 10px;
}

.sgs-infopanel-tableCellStyle1 {
    background-color: rgba(0, 0, 0, 1);
}

.sgs-infopanel-tableCellStyle2 {
    background-color: rgba(22, 22, 22, 1);
}

.sgs-infopanel-tableCellStyle3 {
    background-color: rgba(45, 45, 45, 1);
}

.sgs-infopanel-tableHeaderStyle1 {
    background-color: rgba(0, 0, 0, 1);
}

.sgs-infopanel-tableHeaderStyle2 {
    background-color: rgba(22, 22, 22, 1);
}

.sgs-infopanel-tableColOdds {
    color: rgb(255, 255, 255);
}

.sgs-infopanel-tableHiderDiv {
    min-width: 100px;
    min-height: 54px;
    background-color: #000000;
    position: absolute;
    left: 0;
    top: 10;
    z-index: 2;
    align-content: center;
}

/* Volume */
.sgs-mute-bar {
    margin: 2vh 4vw 3vh 4vw;
    display: flex;
    flex-direction: row;
    gap: 20px;
    color: white;
}

.sgs-volume-container {
}

.sgs-volumeTitle {
    margin: auto;
}

.sgs-volume {
    margin: 2vh 4vw 5vh 4vw;
    text-align: left;
    color: white;
}

@media (orientation: landscape) {
    .sgs-volume {
        display: flex;
        gap: 5vw;
    }

    .sgs-volumeTitle {
        margin: auto;
        margin-bottom: clamp(6px, 1vh, 17px);
        margin-right: 0px;
        width: 100px;
        text-wrap: nowrap;
    }

    .sgs-volumeSlider-range {
        width: 60%;
    }
}

@media (max-width: 750px), (max-height: 500px) {
    .sgs-volume-container {
        border: 3px rgba(255, 255, 255, 0.4) solid;
        background-image: linear-gradient(
            318deg,
            var(--sgs-ui-gradientStartColor) 0%,
            var(--sgs-ui-gradientStartColor) 0%,
            var(--sgs-ui-gradientEndColor) 100%
        );
        border-radius: 6px;
        padding: 4px;
        transform: scale(0.83);
    }
}
.sgs-muteTitle {
    height: 100%;
    color: white;
    align-content: center;
    margin: 2vh auto 2vh 0px;
}

.sgs-volume-faded {
    opacity: 0.5;
    pointer-events: none;
}

.sgs-muteButton {
    width: clamp(40px, 8vh, 55px);
    height: clamp(40px, 8vh, 55px);
}

button.sgs-ui-volume {
    font-weight: 700;
    font-size: 20px;
    text-shadow: 0 2px #000;
    color: transparent;
    border-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    background-color: transparent;
}

input[type="range"].sgs-volumeSlider-range {
    -webkit-appearance: none;
    appearance: none;
    width: 70vw;
    max-width: 400px;
    height: 5px;
    border-radius: 20px;
    z-index: 2;
    cursor: pointer;
    margin-top: 2vh;
}

@media (orientation: portrait) {
    input[type="range"].sgs-volumeSlider-range {
        margin-top: 5vh;
    }
}

input[type="range"].sgs-volumeSlider-range::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    background-color: transparent;
}

input[type="range"].sgs-volumeSlider-range::-moz-range-track {
    -webkit-appearance: none;
    background: transparent;
    background-color: transparent;
}

input[type="range"].sgs-volumeSlider-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    color: #000000;
    background-color: var(--sgs-ui-gradientStartColor);
    width: clamp(20px, 7vh, 38px);
    height: clamp(20px, 7vh, 38px);
    border-radius: 50%;
    z-index: 2;
    line-height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.4);
    transition: border-radius 0.2s, width 0.2s, height 0.2s;
    cursor: grab;
}

input[type="range"].sgs-volumeSlider-range::-webkit-slider-thumb:active {
    -webkit-appearance: none;
    color: #000000;
    background-color: #666699;
    width: clamp(20px, 7vh, 38px);
    height: clamp(20px, 7vh, 38px);
    border-radius: 35%;
    z-index: 2;
    line-height: 40px;
    border: 7px solid #ffffff;
    transition: border-radius 0.2s, width 0.2s, height 0.2s;
    cursor: grabbing;
}

input[type="range"].sgs-volumeSlider-range::-moz-range-thumb {
    color: #000000;
    background-color: #404040;
    width: clamp(20px, 7vh, 38px);
    height: clamp(20px, 7vh, 38px);
    border-radius: 50%;
    z-index: 2;
    line-height: 40px;
    border: 4px solid rgba(200, 200, 230, 1);
    transition: border-radius 0.2s, width 0.2s, height 0.2s;
    cursor: grab;
}

input[type="range"].sgs-volumeSlider-range::-moz-range-thumb:active {
    -webkit-appearance: none;
    color: #000000;
    background-color: var(--sgs-ui-gradientEndColor);
    width: clamp(20px, 7vh, 50px);
    height: clamp(20px, 7vh, 50px);
    border-radius: 35%;
    z-index: 2;
    line-height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.7);
    transition: border-radius 0.2s, width 0.2s, height 0.2s;
    cursor: grabbing;
}

/* Autoplay */
.sgs-autoplay-main {
    /* height: 95%; */
    /* max-height: 400px; */
    position: relative;
    margin: auto;
    overflow: visible;
    /* width: 562px; */
    max-width: 90vw;
    /* max-height: 80vh; */
    /* UI Properties */
    background: transparent linear-gradient(115deg, #2e3041 0%, #1d162a 100%) 0% 0% no-repeat padding-box;
    border: 1px solid #3b3b3b;
    border-radius: 11px;
    opacity: 1;

    color: #b7b7b7;
    font-family: "Inter Bold", sans-serif;
    text-align: center;
    border: 2px solid #404040;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    pointer-events: all;
    user-select: none;
    display: flex;
    flex-direction: column;

    z-index: 4;
}

.sgs-autoplay-main.showing {
    visibility: visible;
    animation: sgs-fade-in 0.5s;
}

.sgs-autoplay-main.hidden {
    animation: sgs-fade-out 0.5s;
}

.sgs-autoplay-fixed {
    /* width: 550px; */
    /* height: 300px; */
    height: 100%;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3%;
}

.sgs-autoplay-title {
    text-transform: uppercase;
    font-weight: 600;
    font-family: Inter Bold;
    font-size: clamp(14px, 3vw, 20px);
    font-weight: 700;
    text-shadow: 0 2px #000;
    padding: 3vh 0px 3vh 0px;
    width: 100%;
    color: rgba(255, 255, 255);
    background-color: rgba(0, 0, 0, 0.4);
    align-self: center;
    justify-content: center;
    border-radius: 11px 11px 0px 0px;
}

.sgs-title-buttonsContainer {
    display: flex;
    flex-direction: row;
    width: 65%;
}

.sgs-autoplay-header {
    text-transform: uppercase;
    font-weight: 600;
    font-family: Inter Bold;
    font-size: clamp(12px, 4vh, min(3vw, 3vh));
    color: rgb(255, 255, 255);
    padding: 1vh;
    padding-inline: 2%;
    /* width: 100%; */
    align-self: center;
    justify-content: center;
}

.sgs-autoplay-innerBox {
    text-transform: uppercase;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    justify-self: anchor-center;
    width: 90%;
    padding: 2vh;
    border-width: 5px;
    border-radius: 8px;
}

.sgs-autoplay-innerBox-noBG {
    background-color: rgba(0, 0, 0, 0);
}

.sgs-autoplay-sliderContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 15px 40px 15px;
    gap: 2vw;
}

.sgs-autoplay-buttonContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: space;
}

.sgs-autoplay-sliderInfo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.sgs-autoplay-sliderInfoTitle {
    font-family: Inter Bold;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px;
}

.sgs-autoplay-sliderInfoValue {
    font-family: Inter Bold;
    font-size: 20px;
    padding: 10px;
    margin-left: auto;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
}

input[type="range"].sgs-autoplay-range {
    -webkit-appearance: none;
    background-color: rgba(0, 0, 0, 0.8);
    appearance: none;
    width: 400px;
    height: 5px;
    border-radius: 20px;
    z-index: 2;
    cursor: pointer;
}

input[type="range"].sgs-autoplay-range::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    background-color: transparent;
}

input[type="range"].sgs-autoplay-range::-moz-range-track {
    -webkit-appearance: none;
    background: transparent;
    background-color: transparent;
}

/* Slider Thumb */
input[type="range"].sgs-autoplay-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    color: #000000;
    background-color: var(--sgs-ui-gradientStartColor);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    z-index: 2;
    line-height: 30px;
    margin-bottom: 1px;
    border: 4px solid rgba(255, 255, 255, 0.4);
    transition: border-radius 0.2s, width 0.2s, height 0.2s;
    cursor: grab;
}

input[type="range"].sgs-autoplay-range::-webkit-slider-thumb:active {
    -webkit-appearance: none;
    color: #000000;
    background-color: var(--sgs-ui-gradientEndColor);
    width: 35px;
    height: 35px;
    border-radius: 35%;
    z-index: 2;
    line-height: 30px;
    margin-bottom: 5px;
    border: 4px solid rgba(255, 255, 255, 0.7);
    transition: border-radius 0.2s, width 0.2s, height 0.2s;
    cursor: grabbing;
}

input[type="range"].sgs-autoplay-range::-moz-range-thumb {
    color: #000000;
    background-color: var(--sgs-ui-gradientStartColor);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    z-index: 2;
    line-height: 40px;
    margin-bottom: 15px;
    border: 4px solid rgba(255, 255, 255, 0.4);
    transition: border-radius 0.2s, width 0.2s, height 0.2s;
    cursor: grab;
}

input[type="range"].sgs-autoplay-range::-moz-range-thumb:active {
    -webkit-appearance: none;
    color: #000000;
    background-color: var(--sgs-ui-gradientEndColor);
    width: 35px;
    height: 35px;
    border-radius: 35%;
    z-index: 2;
    line-height: 40px;
    margin-bottom: 15px;
    border: 4px solid rgba(255, 255, 255, 0.7);
    transition: border-radius 0.2s, width 0.2s, height 0.2s;
    cursor: grabbing;
}

.sgs-autoplay-sliderTicks {
    z-index: 0;
    width: 545px;
    display: flex;
    justify-content: space-evenly;
    padding: 0 10px;
    pointer-events: none;
    padding: 5px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: -10px;
}

.sgs-sliderTick-line {
    display: flex;
    background-color: #000;
    width: 3px;
    height: 20px;
    justify-content: center;
}

.sgs-sliderTick {
    font-family: Inter Bold;
    font-size: 17px;
    top: 5px;
    padding: 0px;
    border: 0px;
    margin-top: 30px;
    min-width: 100px;
}

.sgs-sliderTick-active {
    color: #ffffff;
    font-family: Inter Bold;
    font-size: 18px;
}

.sgs-autoplay-buttonsHolder {
    grid-column-gap: auto;
    grid-row-gap: auto;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    margin-left: 10px;
    margin-right: 10px;
    display: grid;

    margin: 0px;
    /* display: flex; */
    justify-content: space-evenly;
    align-items: center;
    width: 98vh;
    max-width: 98%;
}

.sgs-autoplay-button {
    display: flex;
    justify-content: center;
    align-items: center;

    font-family: "Inter", sans-serif;
    font-weight: bold;
    font-size: clamp(12px, 5vh, 4vw);
    letter-spacing: 0px;

    color: #fff;
    margin: 3px;

    box-shadow: 0px 2px 0px 2px rgba(0, 0, 0, 0.2);
    background: transparent linear-gradient(134deg, #4ea8f7 0%, #2f35d7 100%) no-repeat padding-box;

    border: 1px solid #3b3b3b;
    border-radius: 11px;
    cursor: pointer;

    width: min(12vh, 12vw);
    height: min(12vh, 12vw);

    opacity: 0.5;
    transition: background-color 0.3s, transform 0.1s;
}

.sgs-autoplay-button-active {
    background: transparent linear-gradient(134deg, #4ea8f7 0%, #2f35d7 100%) 0% 0% no-repeat padding-box;
    border: 2px solid #ffffff;
    border-radius: 11px;
    opacity: 1;
    -webkit-appearance: none;
    margin-top: auto;
    font-family: Inter Bold;
    font-size: 29x;
    color: #fff;
    margin: 3px;
    box-shadow: 0px 2px 0px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    pointer-events: none;
    touch-action: none;
    cursor: default;
}

.sgs-autoplay-startButton {
    width: 80vh;
    max-width: 90%;
    padding: 2vh;
    /* Layout Properties */
    top: 642px;
    left: 2094px;
    /* width: 382px;
    height: 60px; */
    /* UI Properties */
    background: transparent linear-gradient(108deg, #51c36d 0%, #3b9215 100%) 0% 0% no-repeat padding-box;
    border: 1px solid #3b3b3b;
    border-radius: 11px;
    opacity: 1;
    /* -webkit-appearance: none;
    margin-top: auto;
    height: 50px;

    /* text-shadow: 0 2px #000; */
    text-align: center;
    font-family: Inter Bold;
    font-size: clamp(12px, 4vh, 3vw);
    letter-spacing: 0px;
    color: #ffffff;
    opacity: 1;

    /* font-weight: 700; */
    /* color: #fff; */
    /* margin-inline: 10%; */
    /* background: linear-gradient(164deg, rgba(85, 204, 124, 1) 0%, rgba(54, 134, 0, 1) 100%);
    box-shadow: 0px 2px 0px 2px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-width: 0px;
    border-color: transparent; */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.sgs-autoplay-startButton-disabled {
    background: linear-gradient(164deg, rgba(85, 204, 125, 0.4) 0%, rgba(54, 134, 0, 0.4) 100%);
    color: #a6a6a6;
}

.sgs-autoplayComplete-container {
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}

.sgs-autoplayComplete-textContainer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.sgs-autoplayComplete-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sgs-autoplayComplete-text {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    justify-content: center;

    font-size: 85px;
    font-family: Luckiest Guy;
    color: rgba(255, 255, 255);
}

/* .sgs-autoplayComplete-reason {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    width: 550px;
    font-size: 40px;
    font-family: Inter Bold;
    color: rgba(255, 255, 255, 0.8); */
/* } */

/* Prize chart */

.sgs-ui-prizechart-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
    justify-content: space-evenly;
    width: 100%;
    gap: 10px;
    overflow: auto;
}

.sgs-prizeChart-scrollableNoMargin {
    margin: 0px;
    max-width: 66vw;
    min-width: 50vw;
}

@media screen and (min-height: 630px), (orientation: portrait) {
    .sgs-ui-prizechart-layout {
        flex-direction: column;
        margin-top: 5px;
    }

    .sgs-prizeChart-scrollableNoMargin {
        max-width: 100dvw;
    }
}

.sgs-ui-bottomText {
    text-transform: uppercase;
    padding: 10px;
}

.sgs-prizeChart-symbols {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.sgs-prizeChart-symbolImage {
    background-color: rgba(0, 0, 0, 0.3);
    -ms-flex-align: end;
    aspect-ratio: 1/1;
    border: 0px transparent;
    border-radius: 25px;
    width: clamp(8vw, 15vh, 25vw);
}

@media (max-width: 750px), (max-height: 500px) {
    .sgs-prizeChart-symbolImage {
        border: 3px rgba(255, 255, 255, 0.7) solid;
        background-image: linear-gradient(
            318deg,
            var(--sgs-ui-gradientStartColor) 0%,
            var(--sgs-ui-gradientStartColor) 0%,
            var(--sgs-ui-gradientEndColor) 100%
        );
        margin: 0px;
        width: clamp(12vw, 15vh, 30vw);
    }
}

.sgs-prizeChart-selectorArrow {
    display: inline-block;
    border: none;
    cursor: pointer;
    pointer-events: all;
    background-color: transparent;
}

.sgs-prizeChart-arrowRight {
    content: url("./../ignore/ui_icon_arrow_right.svg");
    display: block;
    width: clamp(40px, 5vh, 150px);
    height: auto;
}

.sgs-prizeChart-arrowLeft {
    content: url("./../ignore/ui_icon_arrow_left.svg");
    display: block;
    width: clamp(40px, 5vh, 150px);
    height: auto;
}

.sgs-prizeChart-scrollableY {
    overflow-y: scroll;
    min-width: 45vw;
}

.sgs-prizeChart-tableColHeader {
    position: sticky;
    top: 0;
    z-index: 1;

    border: 1px solid #cccccc;
    padding: 3px clamp(12px, 5vh, 25px);
    font-family: "Inter Bold", sans-serif;
    font-size: clamp(11px, 3.5vh, 30px);
    height: clamp(20px, 5vh, 60px);

    color: rgba(255, 255, 255, 1);

    /* fallback solid bg */
    background-color: var(--sgs-ui-gradientEndColor);

    /* override if supported */
    /* background-color: color-mix(in srgb, var(--sgs-ui-gradientEndColor), rgba(0, 0, 0, 1)); */

    /* OR alternatively, this is more compatible */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), var(--sgs-ui-gradientEndColor);
}

.sgs-prizeChart-tableCell {
    width: 50%;
    font-family: Inter Bold;
    font-size: clamp(10px, 3.5vh, 26px);
    height: clamp(20px, 5vh, 60px);

    z-index: 0;
    background-color: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.7);
    border: solid;
    border-width: 1px;
    border-color: #666666;
}

/* popup */

.sgs-popup-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}

.sgs-popup-background-error {
    background-color: rgba(0, 0, 0, 1);
}

.sgs-popup-background-warning {
    background-color: rgba(200, 200, 200, 0.3);
}

.sgs-popup-background-info {
    background-color: rgba(200, 200, 200, 0.3);
}

.sgs-popup-ui {
    background-image: linear-gradient(
        318deg,
        var(--sgs-ui-gradientStartColor) 0%,
        var(--sgs-ui-gradientStartColor) 0%,
        var(--sgs-ui-gradientEndColor) 100%
    );
    border-width: 2px;
    border-radius: 8px;
    box-shadow: 0px 0px 8px 8px rgba(50, 0, 0, 0.75);
    width: 90%;
    max-width: 600px;
    max-height: 75%;
}

.sgs-popup-ui-error {
    color: #ffffff;
    border-color: #d26464;
}

.sgs-popup-ui-warning {
    color: #ffffff;
    border-color: #e5b858;
}

.sgs-popup-ui-info {
    color: #ffffff;
    border-color: #0026ff;
}

.sgs-popup-icon-container {
    width: 30%;
    border-radius: 90px;
}

.sgs-popup-iconDescContainer {
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sgs-popup-icon {
    aspect-ratio: 1/1;
    width: 100%;
}

.sgs-popup-container {
    margin: 12px;
}

.sgs-popup-error {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 0, 0, 1);
}

.sgs-popup-warning {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgb(0, 0, 0);
}

.sgs-popup-info {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgb(26, 255, 244);
}

.sgs-popup-icon-generic {
    content: url("./../ignore/ui_icon_error.svg");
}

.sgs-popup-icon-funds {
    content: url("./../ignore/ui_icon_error_funds.svg");
}

.sgs-popup-title {
    font-family: Inter Bold;
    font-size: clamp(14px, 3vw, 20px);
    padding: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
    text-shadow: 0 2px rgba(0, 0, 0, 0.4);
}

.sgs-popup-title-error {
    color: #ffffff;
    border-color: #ffffff;
}

.sgs-popup-title-warning {
    color: #ffffff;
    border-color: #ffffff;
}

.sgs-popup-title-info {
    color: #ffffff;
    border-color: #ffffff;
}

.sgs-popup-id {
    font-family: Inter Bold;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
    margin-right: 8px;
    margin-left: auto;
}

.sgs-popup-description {
    width: 80%;
    font-family: Inter Bold;
    font-size: 18px;
    border-radius: 9px;
    padding: 5px;
    line-height: 2;
    text-shadow: 0 2px #000;
}

@media screen and (max-width: 600px) {
    .sgs-popup-title {
        font-size: clamp(14px, 3vw, 20px);
    }

    .sgs-popup-description {
        font-size: 14px;
    }
}

@media screen and (max-width: 420px) {
    .sgs-popup-title {
        font-size: clamp(14px, 3vw, 20px);
    }

    .sgs-popup-description {
        font-size: 11px;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .sgs-popup-title {
        font-size: clamp(14px, 3vw, 20px);
    }

    .sgs-popup-description {
        font-size: 14px;
        flex: 1;
    }

    .sgs-popup-icon {
        height: 95px;
        flex: 1;
    }

    .sgs-popup-iconDescContainer {
        flex-direction: row;
        text-align: left;
    }
}

@media (orientation: landscape) and (max-height: 380px) {
    .sgs-popup-title {
        font-size: clamp(14px, 3vw, 20px);
    }

    .sgs-popup-description {
        font-size: 11px;
    }

    .sgs-popup-icon {
        height: 75px;
    }
}

.sgs-popup-buttonContainer {
    width: 95%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: auto;
}

.sgs-popup-button {
    -webkit-appearance: none;
    width: 40%;
    height: 45px;
    text-shadow: 0 2px #000;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0px 2px 0px 2px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-width: 0px;
    margin: 6px;
    border-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

@media screen and (max-width: 600px) {
    .sgs-popup-button {
        font-size: 14px;
        width: 35%;
    }
}

.sgs-popup-button-error {
    background: linear-gradient(164deg, rgb(204, 85, 85) 0%, rgb(134, 0, 0) 100%);
}

.sgs-popup-button-warning {
    background: linear-gradient(164deg, rgb(243, 186, 63) 0%, rgb(214, 150, 40) 100%);
}

.sgs-popup-button-info {
    background: linear-gradient(164deg, rgb(85, 174, 204) 0%, rgb(49, 120, 206) 100%);
}

@media (hover: hover) {
    button.sgs-ui-closeButton:hover {
        transform: scale(1.05);
    }

    button.sgs-ui-closeButton:active {
        background: rgba(77, 77, 125, 1);
        transform: scale(1.05);
    }

    button.sgs-enableSounds-baseButton:hover {
        transform: scale(1.01);
    }

    button.sgs-enableSounds-baseButton:active {
        background: rgba(77, 77, 125, 1);
        transform: scale(1.01);
    }

    button.sgs-ui-overlayButton-landscape:active {
        background-color: rgba(255, 255, 255, 0.5);
    }

    button.sgs-ui-overlayButton-landscape:hover {
        transform: scale(1.04);
    }

    .sgs-ui-sidebarOption-selected:hover {
        /* aspect-ratio: 1/1; */
        transform: scale(1.04);
        box-shadow: 0px 0px 7px 4px rgba(0255, 255, 255, 0.8);
    }

    .sgs-ui-sidebarOption-selected:active {
        /* aspect-ratio: 1/1; */
        transform: scale(0.95);
        box-shadow: rgba(255, 255, 255, 0.8) 0px 0px 2px;
    }

    .sgs-ui-popupButton:hover {
        transform: scale(1.04);
        box-shadow: rgba(0, 0, 0, 0.35) 0px 0px 6px;
        border-color: #e7e7e7;
    }

    .sgs-ui-popupButton:active {
        transform: scale(0.95);
        box-shadow: rgba(99, 99, 99, 0.2) 0px 0px 2px;
    }

    button.sgs-ui-volume:hover {
        transform: scale(1.05);
    }

    button.sgs-ui-volume:active {
        background: rgba(77, 77, 125, 1);
        transform: scale(1.05);
    }

    button.sgs-autoplay-startButton:hover {
        transform: scale(1.01);
    }

    button.sgs-autoplay-startButton:active {
        background: rgba(77, 77, 125, 1);
        transform: scale(1.01);
    }

    button.sgs-popup-button:hover {
        transform: scale(1.01);
    }

    button.sgs-popup-button:active {
        background: rgba(77, 77, 125, 1);
        transform: scale(1.01);
    }

    .sgs-ui-sidebarOption:active {
        box-shadow: rgba(99, 99, 99, 0.2) 0px 0px 2px;
    }

    .sgs-autoplay-button:hover {
        transform: scale(1.02);
        border: 2px solid white;
    }
}
