@font-face {
    font-family: 'Rye';
    font-style: normal;
    src: url('assets/fonts/rye-v17-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    src: url('assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
}

* {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    min-height: 100%;
    min-width: 100%;
}

body {
    font-family: 'Inter', serif;
    margin: 0;
    width: 100%;
    min-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;  
    justify-content: center;
    min-height: 100vh;
    background-color: #000;
    background-image: url("img/9_intro_outro_screens/canvas_hintergrund/cactus.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow-x: hidden;
    position: relative;
}

h1 {
    font-family: 'Rye', cursive;
    color: #ffb347;
    font-size: 56px;
    margin: 20px 0 20px 0;
    text-shadow: 2px 10px 10px rgba(100, 10, 50, 5);
    text-align: center;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 720px;
    max-height: 480px;
    aspect-ratio: 3 / 2; 
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1;
}

#ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.top-bar,
.bottom-bar,
.screen.active,
#mobile-controls {
    pointer-events: all;
}

.top-bar {
    position: absolute;
    top: 1.5vh;
    right:1.5vh;
    gap: 1vh;
    display: flex;
    z-index: 20;
}

.top-bar img {
    width: clamp(20px, 3vh, 26px);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.top-bar img:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

.top-bar img:active {
    transform: scale(0.95);
}

.bottom-bar {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 20px;
    z-index: 30;
}

.bottom-bar a {
    position: relative;
    color: #ffd27f;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.25s ease;
}

.bottom-bar a:hover {
    color: white;
    text-shadow: 0 0 6px rgba(255, 180, 70, 0.9);
    transform: translateY(-2px);
}

.bottom-bar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #ffb347;
    transition: width 0.3s ease;
}

.bottom-bar a:hover::after {
    width: 100%;
}

#ui .top-bar img{
    filter: brightness(100) invert(100%) sepia(10%) saturate(100%) hue-rotate(340deg) brightness(100%);
}

.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    pointer-events: none;
}

.screen.active {
    display: flex;
    pointer-events: all;
}

.bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.result-img {
    width: 500px;
    height: auto;
    max-width: 65%;
    padding-top: 70px;
    z-index: 1;
}

#winScreen .result-img {
    width: 500px;
    height: 290px;
    max-width: 65%;
    z-index: 1;
}

.main-btn {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 34px;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.main-btn:hover {
    transform: translateX(-50%) translateY(-2px);
}

.main-btn:active {
    transform: translateX(-50%) translateY(2px);
}

.btn-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    z-index: 2;
}

.btn-row button:hover {
    transform: translateY(-2px);
}

.btn-row button:active {
    transform: translateY(2px);
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(180deg, #ffb347, #ff7b00);
    color: white;
    box-shadow: 0 4px 0 #c25a00;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
}

.btn-row button {
    min-width: 100px;
    font-size: 16px;
}



