@font-face {
    font-family: 'allowink';
    src: url('font/aalloyInk.ttf') format('truetype');
}

body {
    height: 100vh;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(img/5_background/complete_background.png);
    background-repeat: no-repeat; 
    background-position: center;
    background-size: cover;
    font-family: 'allowink', Arial, Helvetica, sans-serif; 
    color: #ea8e44; 
}

.headline {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 64px;
}

h1 {
    position: relative;
    font-size: 64px;
    margin-top: 8px;
    margin-bottom: 0;
    background: linear-gradient(90deg, rgba(160, 34, 10 ,1) 0%, rgba(242, 164, 83, 1) 50%, rgba(112,191,217,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    
}

h1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    color: black;
    text-shadow: 12px 6px 8px black;
    -webkit-text-fill-color: black; 
    -webkit-background-clip: border-box; 
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.start-game {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.start-game:hover {
    cursor: pointer;
}

.menu-img {
    width: 130px;
    height: 130px;
    margin-right: -32px;
}

.menu-text {
    font-size: 32px;
    text-shadow: 2px 2px 2px black;
}

.introduction {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.introduction:hover {
    cursor: pointer;
}

.how-to-play-and-story {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.how-to {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.how-to:hover {
    cursor: pointer;
}

.story-text {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    
}

.story-text.show {
    display: block;
}

.introductions span {
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 4px 4px 2px black;
}

.movement-description {
    font-size: 24px;
}

.introductions {
    display: none;
    flex-direction: column;
    align-items: center;
}

.introductions.show {
    display: flex;
}

.back-btn {
    display: flex;
    margin-left: auto;
    border: 1px solid;
    background-color: transparent;
    border-radius: 100%;
    height: 32px;
}

.fas.back-btn {
    font-size: 24px;
    color: black;
}

.fullscreen-btn {
    display: none;
    font-size: 24px !important;
    color: black;
    border-radius: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.back-fullscreen-btn {
    display: none;
    font-size: 24px !important;
    color: black;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.5);
}

.back-btn:hover {
    cursor: pointer;
}

.canvas-content {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    background-color: black;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 15px 5px rgba(255, 255, 255, 0.5);
}

.after-game {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Abstand zwischen den Buttons */
}

.restart-btn, .go-back-btn {
    display: none;
    padding: 10px 20px;
    width: 100%;
    font-size: 16px;
    background-color: #EF9938;
    color: white;
    border: 1px solid black;
    cursor: pointer;
    border-radius: 5px;
}

.restart-btn.show, .go-back-btn.show {
    display: block;
}

.fas {
    font-size: 48px;
    color: rgba(0, 0, 0, 0.5);
    margin-right: 8px;
    font-family: 'Courier New', Courier, monospace;

}

.mobile-buttons {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: absolute;
    bottom: 0;
}

.audio {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.play-pause-btn {
    font-size: 24px;
    color: black;
    border-radius: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.mute-btn {
    font-size: 24px;
    color: black;
    border-radius: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.move-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 16px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
}

.btn {
    background-color: transparent;
    border: none;
}

.text-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    margin-top: 128px;
}

.introduction-text-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    margin-top: 64px;
}

.introduction-text-content span {
    font-size: 20px;
    text-align: center;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: fixed;
    left: 25%;
    bottom: 0;
    width: 50%;
    background-color: transparent;
    padding: 10px; 
}

.footer span {
    font-size: 12px;
    color: black;
    text-align: center;
}

.footer-privacy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 100px);
    padding: 20px;
}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

.links a {
    color: black;
    text-decoration: none;
    margin-right: 12px;
}

.portrait-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
}

button:hover {
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 1);
    /*box-shadow: 0px 0px 15px 5px rgba(255, 255, 255, 0.5);*/
}

.privacy-text-content{
    display: flex;
    flex-direction: column;
    width: 100%;
    
    padding-left: 16px;
}

.privacy-text-content h1{
    text-align: center;
}

@media (max-width: 845px) {
    .menu-img {
       width: 150px;
       height: 150px;
    }
}

@media (max-width: 566px) {
    .menu-img {
        width: 120px;
        height: 120px;
        margin-left: -32px;
    }

    .menu-text {
        font-size: 24px;
    }
}

@media (max-width: 530px) {
    .privacy-text-content h1{
        font-size: 32px;
    }
}

@media (max-width: 420px) {
    .menu-img {
        margin-left: -16px ;
    }
    .menu-text {
        font-size: 17px ;
    }

    .introduction {
        margin-right: 8px;
    }
    
    .introductions span {
        font-size: 17px;
    }

    .footer span {
        font-size: 10px;
    }

    .links a {
        font-size: 10px;
    }
}

@media only screen and (max-width: 720px) {
    canvas {
        width: 100%;
    }
}

@media only screen and (max-height: 480px) {
    canvas {
        height: 100vh;
    }
}
   