* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}


.d-none {
    display: none !important;
}


html {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url("img/background.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}


#gameCanvas {
    background-color: rgba(0, 0, 0, 0);
    border: solid 4px rgba(0, 0, 0, 0.35);
    border-radius: 22px;
    box-shadow: 0px 0px 16px rgba(255, 255, 255, 0.9);
    display: block;
}


#game-title {
    position: absolute;
    margin-bottom: 1080px;
    margin-left: 22px;
    font-family: "Orbitron";
    font-size: 43px;
    color: rgb(235, 235, 235);
    text-shadow: 2px 2px 6px rgb(0, 0, 0),
    1px 1px 14px rgb(72, 255, 0),
    -3px -2px 2px rgb(0, 0, 0);
    letter-spacing: 8px;
    padding-bottom: 6px;
}


#fullscreen-Icon {
    position: absolute;
    margin-top: -68px;
    margin-left: 4px;
    height: 32px;
    z-index: 3;
    cursor: pointer;
    transition: all ease-in-out 222ms;
    filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.85));
    &:hover {
        transform: translateY(-2px) translateX(2px) scale(1.2);
        filter: drop-shadow(0px 0px 3px rgb(0, 0, 0));
    }
}


#sound-switch {
    position: absolute;
    margin-top: -36px;
    margin-left: 10px;
    height: 28px;
    z-index: 5;
    cursor: pointer;
    transition: all ease-in-out 222ms;
    &:hover {
        transform: translateY(-2px) translateX(2px) scale(1.2);
        filter: drop-shadow(0px 0px 3px rgb(0, 0, 0));
    }
}


@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}


@keyframes wip {
    0% {
        transform: translateY(0) scale(1.15);
    }
    33% {
        transform: translateY(-2px) scale(1.15);
    }
    66% {
        transform: translateY(0) scale(1.15);
    }
    100% {
        transform: translateY(+2px) scale(1.15);
    }
}


#absolute-container {
    margin-top: -2px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 720px;
}


.controls-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    transition: all ease-in-out 222ms;
    span {
        color: white;
        font-family: "Orbitron";
        font-size: 22px;
        margin-right: 16px;
        text-shadow: 1px 1px 4px rgb(0, 0, 0);
    }
    img {
        height: 40px;
        filter: drop-shadow(0px 0px 4px rgb(0, 0, 0));
    }
}


.controls-info-btn:hover {
    transform: translateX(20px) scale(1.15);
    span {
        text-decoration: underline;
    }
}


.impressum-btn {
    z-index: 3;
    cursor: pointer;
    color: white;
    font-family: "Orbitron";
    font-size: 22px;
    transition: all ease-in-out 222ms;
    text-shadow: 1px 1px 4px rgb(0, 0, 0);
    &:hover {
        transform: translateX(-10px) scale(1.2);
        text-decoration: underline;
    }
}


.impressum-container {
    position: absolute;
    margin: 0;
    padding: 0;
    height: 488px;
    width: 728px;
    border-radius: 22px;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: "OpenSans";
    font-size: 20px;
}


#impressum-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 56px;
    background-color: rgb(27, 27, 27);
    border-radius: 22px;
    box-shadow: 0px 0px 16px rgba(255, 255, 255, 0.8);
    h2 {
        font-size: 30px;
        text-decoration: underline;
        margin-bottom: 6px;
        cursor: default;
    }
    p {
        margin-bottom: 4px;
        cursor: default;
    }
    a {
        color: rgb(9, 255, 0);
        text-shadow: 0 0 6px rgb(255, 255, 255);
        text-decoration: none;
        cursor: pointer;
    }
    a:hover {
        text-shadow: 0 0 18px rgb(255, 255, 255);
    }
    div {
        margin-bottom: 18px;
    }
    span {
        margin-right: 8px;
        cursor: default;
    }
}


#gitcontact {
    margin-top: 10px;
    height: 29px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(90deg) brightness(100%) contrast(100%);
    transition: all ease-in-out 222ms;
    cursor: pointer;
    &:hover {
        transform: scale(1.2);
    }
}


.game-controls-container {
    position: absolute;
    margin: 0;
    padding: 0;
    height: 490px;
    width: 730px;
    border-radius: 22px;
    background-color: rgba(104, 85, 71, 0.9);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: "OpenSans";
    font-size: 23px;
    padding-bottom: 48px;
    border: solid 3px rgba(48, 48, 48, 0.7);
    span {
        margin: 6px;
        cursor: default;
        text-shadow: 1px 1px 3px rgb(0, 0, 0);
    }
    h2 {
        font-size: 28px;
        font-family: "Orbitron";
        letter-spacing: 4px;
        text-decoration: underline;
        cursor: default;
        margin-bottom: 8px;
    }
    p {
        cursor: default;
        margin-left: 4px;
        margin-right: 4px;
        text-shadow: 1px 1px 3px rgb(0, 0, 0);
    }
    .extra {
        margin-left: 37px;
    }
}


.xBtn {
    position: absolute;
    top: 18px;
    right: 18px;
    height: 38px;
    width: 38px;
    cursor: pointer;
    z-index: 4;
    transition: all ease-in-out 222ms;
    filter: drop-shadow(0px 0px 4px rgb(255, 255, 255));
    border-radius: 50%;
    background-color: rgb(77, 77, 77);
    padding: 3px;
    &:hover {
        transform: translateY(2px) translateX(-2px) scale(1.2);
        box-shadow: 0px 0px 8px rgba(204, 204, 204, 0.8);
    }
}


.control-info-box {
    display: flex;
    align-items: center;
    justify-content: center;
}


.keyBox {
    cursor: default;
    margin: 8px;
    height: 55px;
    width: 55px;
    font-size: 24px;
    padding: 6px 14px;
    border-radius: 10px;
    text-align: center;
    background: linear-gradient(to bottom, #6e6e6e 0%, #1f1f1f 100%);
    color: #ffffff;
    border: 4px solid #444444;
    box-shadow: 0 1px 0 #666666,         
      0 2px 2px rgba(0,0,0,0.5), 
      inset 0 1px 0 #2a2a2a;
    filter: drop-shadow(0px 0px 6px rgb(255, 255, 255));
}


.keyBoxSpace {
    cursor: default;
    margin: 8px;
    height: 50px;
    width: 144px;
    font-size: 22px;
    padding: 4px 15px;
    border-radius: 10px;
    text-align: center;
    background: linear-gradient(to bottom, #6e6e6e 0%, #1f1f1f 100%);
    color: #ffffff;
    border: 4px solid #444444;
    box-shadow: 0 1px 0 #666666,         
      0 2px 2px rgba(0,0,0,0.5), 
      inset 0 1px 0 #2a2a2a;
    filter: drop-shadow(0px 0px 6px rgb(255, 255, 255));
}
  

.game-over-overlay, .win-overlay, .start-overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.start-screen, .game-over-screen, .win-screen {
    position: relative;
    margin: 0;
    padding: 0;
    height: 480px;
    width: 720px;
    border-radius: 22px;
    box-shadow: 0px 0px 24px rgba(197, 197, 197, 0.9);
    z-index: 1;
}


#start-btn {
    position: absolute;
    margin-bottom: 70px;
    font-family: "Orbitron";
    font-size: 38px;
    color: black;
    border: solid 1px rgba(56, 56, 56, 0.9);
    box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.8);
    width: 200px;
    height: 60px;
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all ease-in-out 222ms;
    cursor: pointer;
    text-shadow: 2px 2px 2px rgb(255, 255, 255);
    background-color: rgba(67, 238, 52, 0.8);
    animation: pulse 888ms infinite ease-in-out;
    z-index: 2;
}


#continue-btn {
    margin-top: -400px;
    position: absolute;
    font-family: "Orbitron";
    font-size: 36px;
    color: black;
    border: solid 1px rgba(56, 56, 56, 0.9);
    box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.8);
    width: 250px;
    height: 60px;
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all ease-in-out 222ms;
    cursor: pointer;
    text-shadow: 2px 2px 2px rgb(255, 255, 255);
    background-color: rgba(67, 238, 52, 0.8);
    animation: pulse 1222ms infinite ease-in-out;
    z-index: 2;
}


#continue-btn:hover {
    box-shadow: 0px 0px 34px rgba(45, 126, 42, 0.9);
    background-color: rgb(21, 255, 0);
    animation: wip 333ms infinite ease-in-out;
    text-shadow: 1px 1px 3px rgb(106, 255, 143);
}


#play-again-btn {
    position: absolute;
    margin-bottom: 400px;
    font-family: "Orbitron";
    font-size: 38px;
    color: black;
    border: solid 1px rgba(56, 56, 56, 0.9);
    box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.8);
    width: 280px;
    height: 60px;
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all ease-in-out 222ms;
    cursor: pointer;
    text-shadow: 2px 2px 2px rgb(255, 255, 255);
    background-color: rgba(67, 238, 52, 0.8);
    animation: pulse 888ms infinite ease-in-out;
    z-index: 2;
}


#start-btn:hover, #play-again-btn:hover {
    box-shadow: 0px 0px 34px rgba(45, 126, 42, 0.9);
    background-color: rgb(21, 255, 0);
    animation: wip 240ms infinite ease-in-out;
    text-shadow: 1px 1px 3px rgb(106, 255, 143);
}


.fullScreenSize {
    max-width: 1440px;
    max-height: 960px;
    width: 100vw;
    height: 100vh;
}


.mobile-control-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 430px;
    width: 720px;
    visibility: hidden;
}


#mobile-move-control {
    margin-left: 110px;
}


#mobile-action-control {
    margin-right: 110px;
}


.mobile-btn {
    margin: 6px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}


.action-btn {
    margin: 5px;
    height: 44px;
    border: solid 2px rgb(0, 0, 0);
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}


.turn-notice {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    background-image: url(img/background.webp);
    background-position: center;
    background-size: cover;
    z-index: 8;
    visibility: hidden;
    img {
        height: 600px;
    }
}

