body {
    background: linear-gradient(45deg, #4e45b0, #2b2b4a);
    color: #fefefe;
}

    .to-cube-btn {
        text-decoration: none;
        width: fit-content;
        height: fit-content;
        position: fixed;
        bottom: 3rem;
        right: 3rem;
        padding: 1em 2em;
        background-color: #0ebac5;
        border: none;
        user-select: none;
        cursor: pointer;
        font-size: 20px;
        text-transform: uppercase;
        transition: all 0.5s linear;
        color: #fff;
    }

    .to-cube-btn:hover {
        background-color: #1e183a;
        border-radius: 0;
        scale: 1.1;
    }

    .to-cube-btn::after {
        content: '';
        background: #0ebac5;
        width: 0;
        height: 100%;
        position: absolute;
        inset: 0;
        z-index: -1;
        transition: all 0.5s linear;
        transform: translateX(-100px);
        opacity: 0;
    }

    .to-cube-btn:hover::after {
        width: 100%;
        transform: translateX(0);
        opacity: 1;
    }

    #main-container {
        display: flex;
        padding: 1.5rem;
    }

    .side {
        height: 6rem;
        width: 6rem;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: center;
        border: 0.1rem solid black;
        margin: 0;
        background-color: #222;
        border-radius: 0.2rem;
    }

    .sticker {
        width: 30%;
        height: 30%;
        margin: 0;
        background-color: #aaa;
        border-radius: 0.3rem;
    }

    .tbt-sticker {
        width: 45%;
        height: 45%;
    }

    .sticker:hover {
        box-shadow: inset 0 0 0.3rem black;
        cursor: pointer;
    }

    #cube-container {
        display: flex;
        flex-direction: row;
        width: fit-content;
        height: fit-content;
        margin-inline: auto;
    }

    .alone-side {
        margin-top: 6rem;
    }

    #color-picker, #cube-rotation-buttons-container {
        /*border: 1px solid #999;*/
        border-radius: 0.2rem;
        padding: 1rem;
        width: fit-content;
        height: fit-content;
        float: left;
        background-color: rgba(150, 150, 150, 0.05);
        box-shadow: 0 0 1rem rgba(10, 10, 10, 0.7);
        backdrop-filter: blur(5px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #cube-rotation-buttons-container {
        display: none;
    }

    #steps-btn-container {
        width: fit-content;
        margin-inline: auto;
        margin-top: 2rem;
    }

    .color-sample {
        width: 3rem;
        height: 3rem;
        border-radius: 0.3rem;
        margin: 0.3rem;
        transition: ease-in-out all 0.1s;
    }

    .color-sample:hover {
        transform: scale(1.1);
        cursor: pointer;
    }

    #white-color-picker {
        background-color: rgb(255, 255, 255);
    }

    #orange-color-picker {
        background-color: rgb(255, 150, 65);
    }

    #blue-color-picker {
        background-color: rgb(50, 115, 255);
    }

    #yellow-color-picker {
        background-color: rgb(255, 255, 153);
    }

    #red-color-picker {
        background-color: rgb(219, 88, 86);
    }

    #green-color-picker {
        background-color: rgb(134, 213, 134);
    }

    .active-color-sample {
        box-shadow: inset 0 0 0.5rem black;
    }

    .white-middle-sticker {
        background-color: white;
    }

    .orange-middle-sticker {
        background-color: rgb(255, 150, 65);
    }

    .blue-middle-sticker {
        background-color: rgb(50, 115, 255);
    }

    .yellow-middle-sticker {
        background-color: rgb(255, 255, 153);
    }

    .red-middle-sticker {
        background-color: rgb(219, 88, 86);
    }

    .green-middle-sticker {
        background-color: rgb(134, 213, 134);
    }

    .msg-bubble {
        width: fit-content;
        height: fit-content;
        position: fixed;
        bottom: 3rem;
        left: 3rem;
        color: white;
        padding: 1rem;
        border-radius: 1rem;
    }

    #cube-buttons-container {
        width: fit-content;
        height: fit-content;
        margin-block: 2rem;
        display: flex;
        flex-direction: column;
        background-color: rgba(150, 150, 150, 0.05);
        box-shadow: 0 0 1rem rgba(10, 10, 10, 0.7);
        backdrop-filter: blur(5px);
        border-radius: 0.2rem;
        padding: 1rem;
        justify-content: center;
        align-items: center;
    }

    #cube-buttons-container button {
        margin-block: 0.5rem;
        min-width: 100%;
    }

    #instructions-bubble {
        background-color: rgba(14, 186, 197, 0.3);
        backdrop-filter: blur(1rem);
        box-shadow: 0 0 1rem rgba(10, 10, 10, 0.7);
        border-radius: 0.2rem;
        position: fixed;
        right: 1.5rem;
        bottom: 1.5rem;
        font-size: x-large;
        width: fit-content;
        height: fit-content;
        padding: 0.8rem 2rem;
        margin-inline: auto;
        font-weight: bold;
        display: none;
        color: whitesmoke;
        max-width: 70dvw;
    }

    #instructions {
        overflow-wrap: break-word;
    }

    #phase-title {
        color: whitesmoke;
        font-size: small;
    }

    #solve-button, #white-corners-button, #color-edges-button, #yellow-cross-button, #yellow-edges-button, #yellow-corners-button, #yellow-corners-rotation-button, #solve-pocket-button, #yellow-corner-pocket-button, #yellow-rotation-pocket-button {
        display: none;
    }

    #progress-bar-container {
        width: 70%;
        height: 6rem;
        margin-inline: auto;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
    }

    .state {
        height: 4rem;
        width: 4rem;
        border-radius: 4rem;
        background-color: transparent;
        backdrop-filter: blur(5px);
        border: 2px solid rgb(14, 186, 197);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 1s ease-in-out;
        font-weight: bold;
    }

    .state-path {
        width: 0.4rem;
        height: 0.4rem;
        border-radius: 0.4rem;
        background-color: rgba(14, 186, 197, 0.5);
    }

    .active-state {
        transform: scale(1.3);
        background-color: rgba(14, 186, 197, 0.2);
        box-shadow: 0 0 0 0 rgba(14, 186, 197, 1);
        animation: pulse 2s infinite;
        border-width: 3px;
    }


    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(14, 186, 197, 0.7);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        }
    }

    .subpage-title {
        text-align: center;
        margin-top: 3rem;
        margin-bottom: 2rem;
    }

    #event-show-container {
        width: 70%;
        height: fit-content;
        margin: 7rem auto;
        padding: 4rem;
        background-color: rgba(0, 0, 0, 0.2);
    }

    #event-show-container div {
        margin-top: 2rem;
        margin-left: 4rem;
    }

    .event-list-container {
        width: 70%;
        height: fit-content;
        min-height: 9rem;
        margin: .5rem auto .5rem auto;
        background-color: rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 4rem;
        text-decoration: none;
        color: ghostwhite;
    }

    .event-list-container:hover {
        background-color: rgba(20, 20, 50, 0.2);
    }

    .event-list-title {
        font-size: 1.4rem;
    }

    .dropbtn {
        background-color: transparent;
        color: white;
        font-size: 16px;
        border: none;
        padding-right: 1rem;
    }

    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: rgba(50, 50, 50, 0.8);
        box-shadow: 0 0 1rem rgba(10, 10, 10, 0.7);
        min-width: fit-content;
        width: 6rem;
        z-index: 1;
    }

    .dropdown-content a {
        color: white;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

    .dropdown-content a:hover {
        background-color: rgba(150, 150, 150, 0.4);
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    #language-select {
        width: fit-content;
        margin-inline: auto;
    }

    .records-wrapper {
        min-width: fit-content;
        width: 60dvw;
        margin: 6rem auto 0 auto;
    }

    .record {
        padding: .5rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .record:hover {
        background-color: rgba(150, 150, 150, 0.05);
        box-shadow: 0 0 1rem rgba(10, 10, 10, 0.7);
    }

    .session-msg-bubble {
        display: block;
    }

    .subpage-title, #add-record-btn {
        text-align: center;
        margin-inline: auto;
        width: fit-content;
        display: block;
    }

    #add-record-btn {
        margin-bottom: 2rem;
    }

    #add-record-form {
        display: none;
        background-color: rgba(150, 150, 150, 0.05);
        box-shadow: 0 0 1rem rgba(10, 10, 10, 0.7);
        padding: 1rem;
        width: 70%;
        margin: .5rem auto 2rem auto;
    }

    #add-record-form div {
        width: fit-content;
        margin: 0.2rem auto 1rem auto;
    }

    #timer {
        background-color: rgba(150, 150, 150, 0.05);
        box-shadow: 0 0 1rem rgba(10, 10, 10, 0.7);
        margin-top: 7rem;
        padding-block: 3rem;
    }

    #timer p {
        font-family: Monospace, sans-serif;
        font-size: 8rem;
        text-align: center;
    }

    .timer-buttons, #best-time-until-now {
        width: fit-content;
        margin-inline: auto;
    }

    #best-time-until-now {
        font-size: medium;
        margin-block: 3rem;
        font-style: italic;
    }

    #sum-in-msec {
        display: none;
    }

    .timer-add-record-form {
        position: fixed;
        bottom: 2rem;
        left: 2rem;
        margin: 0;
        background-color: rgba(50, 50, 50, 0.5);
        backdrop-filter: blur(20px);
        border-radius: 0.2rem;
    }

    #dimension-selector-wrapper {
        width: fit-content;
        margin: 1rem auto 1rem auto;
        background-color: rgba(150, 150, 150, 0.05);
        box-shadow: 0 0 .5rem rgba(10, 10, 10, 0.7);
        border-radius: 0.2rem;
        cursor: pointer;
    }

    .dim-option {
        padding: .5rem 1.5rem;
        display: inline-block;
        border: none;
        background-color: transparent;
        color: white;
    }

    .active-dim-option {
        background-color: rgba(14, 186, 197, 1);
        box-shadow: 0 0 1rem rgba(14, 186, 197, 0.3);
        color: black;
        font-weight: bold;
        border-radius: 0.2rem;
    }

    progress {
        width: 100%;
    }

    #success-msg, #error-msg {
        display: none;
    }

    #hamburger-menu {
        display: none;
    }

    #hamburger-menu-icons-container, #hamburger-menu-icon, #hamburger-menu-close-icon {
        display: none;
    }

    #cube {
        display: flex;
        flex-direction: row;
        width: fit-content;
        height: fit-content;
        margin-inline: auto;
    }
