:root {
    --main-color: #1b1464;
    --developer-akademie-color: #fd7066;
    --card-padding-desktop: 60px;
    --card-padding-mobile: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--main-color);
    font-family: "PT Sans", sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

h1 {
    font-family: "Fredoka One", cursive;
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.game-container {
    /* background-color: white; */
    background-image: url("img/BG.png");
    background-repeat: no-repeat;
    background-size: cover;
    width: 50%;
    height: 100vh;
    box-sizing: border-box;
    /* Opera/IE 8+ */
    padding: 16px;
    display: flex;
    justify-content: space-between;
    position: relative;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: 5px 2px 5px rgb(0 0 0 / 5%);
}

.play-button {
    /* position: relative;
    left: calc(50% - var(--card-padding)); */
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.play-button:hover {
    filter: brightness(1.3);
}

table {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-collapse: collapse;
}

td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    width: 20%;
    height: 20%;
    text-align: center;
    vertical-align: middle;
}

td:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.code-editor {
    background-color: var(--main-color);
    color: white;
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    line-height: 1.2;
    /* height: 400px; */
    padding-left: 40px;
    border-radius: 10px;
    font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono,
        Courier New, monospace, serif;
}

.space-object {
    width: 100%;
    height: auto;
    transition: all 125ms ease-in-out;
}

.coding-container {
    width: 50%;
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
}

#code {
    font-weight: 500;
    font-size: 17px;
    border-bottom: 1px solid white;
    transition: all 225ms ease-in-out;
    /* height: 500px; */
    resize: none;
}

#nextButton {
    position: absolute;
    right: 18px;
    bottom: 23px;
    background-color: var(--developer-akademie-color);
    color: white;
    font-size: 22px;
    padding: 8px 24px;
    border-radius: 4px;
    cursor: pointer;
    border: unset;
    transition: all 225ms ease-in-out;
}

ul:first-of-type {
    margin-block-start: 1em !important;
}

ul {
    margin-block-end: 0;
    margin-block-start: 0;
}

#nextButton:disabled {
    opacity: 0.5;
}

#confetti-canvas {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
}

.editor-box {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.title {
    font-family: "Luckiest Guy", cursive;
}

.margin-bottom-32 {
    margin-bottom: 32px;
}

.editor-lines {
    height: 400px;
    position: absolute;
    left: 18px;
    top: 16px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    /* font-size: 13px; */
    /* line-height: 16px; */
    font-weight: 500;
    font-size: 17px;
}

.legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding-top: 16px;
    /* color: rgba(255, 255, 255, 0.8); */
}

.logo {
    margin-bottom: 16px;
}

a {
    /* color: rgba(0, 0, 0, 0.8); */
    text-decoration: none;
    color: var(--developer-akademie-color);
    /* margin-left: 8px;
    margin-right: 8px; */
}

a:hover {
    text-decoration: underline;
    color: var(--developer-akademie-color);
}

#dialog {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.align-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

#dialog div {
    width: 300px;
    height: 200px;
    background-color: white;
    padding: 8px;
    box-shadow: 2px 9px 12px rgb(0 0 0 / 64%);
    color: #4b6170;
    /* font-size: 32px; */
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    border-radius: 4px;
    z-index: 2;
    overflow: hidden;
}

#dialog #dialogMsg {
    font-size: 18px;
}

#dialog #dialogTitle{
    font-size: 32px;
}

#dialog div button {
    background-color: #f65656;
    cursor: pointer;
    color: white;
    font-size: 16px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 46px;
    border: none;
}

#dialog div button:hover {
    background-color: #f56666;
}

.level-picker {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 48px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.level-picker img {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

.level-left {
    left: 0;
}

.level-right {
    right: 0;
}

.level-picker-btn {
    background-color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.level-picker-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card {
    background-color: white;
    padding: var(--card-padding-desktop);
    border-radius: 26px;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.card h2 {
    font-size: 36px;
}

#levelDescription {
    font-size: 18px;
}

.text-color-main {
    color: var(--main-color);
}

.text-color-da {
    color: var(--developer-akademie-color);
}

code {
    border-bottom: 1px solid var(--developer-akademie-color);
}

.mt-0 {
    margin-top: 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding: 16px;
}

.footer-item {
    width: 45%;
}

.vertical-seperator {
    height: 100px;
    width: 1px;
    background-color: var(--developer-akademie-color);
}

@media (min-width: 1000px) {
    ::-webkit-scrollbar {
        width: 10px;
    }

    /* Track */
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    /* Handle */
    ::-webkit-scrollbar-thumb {
        background: #888;
    }

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    .coding-container {
        max-height: calc(100vh - 66px);
        overflow-y: auto;
    }
}

@media (max-width: 1000px) {
    body {
        flex-direction: column;
        overflow: unset;
        padding-top: 16px;
    }
    .card {
        border-radius: 4px;
    }
    .coding-container {
        width: auto;
    }
    .game-container {
        width: 100%;
    }
}

.hide-desktop {
    display: none;
}

@media (max-width: 700px) {
    .space-between {
        flex-direction: column;
        margin-bottom: 16px;
    }
    .coding-container {
        padding: 0;
    }
    .hide-mobile {
        display: none;
    }
    .hide-desktop {
        display: flex;
    }
}

@media (max-width: 500px) {
    .space-object {
        width: 100%;
        height: auto;
        transition: all 125ms ease-in-out;
    }
    .card {
        padding: var(--card-padding-mobile);
    }

    .footer{
        flex-direction: column;
    }

    .footer-item{
        width: 80%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .vertical-seperator{
        width: 100px;
        height: 1px;
        margin: 10px 0;
    }
}
