* {
    font-family: 'Titillium Web';
}

body,
html {
    width: 100vw;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
}

#debugPanel {
    font-family: monospace;
    position: absolute;
    top: 120px;
    right: 20px;
    color: white;
    z-index: 3;
    text-align: right;
    font-size: 12px;
    display: none;
}

#weaponButtons {
    position: absolute;
    top: 60px;
    left: 20px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 5px;
    display: none !important;
}

#toggleButton {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 99;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    /* Moved from inline */
}

#toggleIcon {
    color: white;
    /* Moved from inline */
}

#restartButton {
    position: absolute;
    top: 20px;
    left: 60px;
    z-index: 99;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    /* Moved from inline */
}

#restartButton .fa-refresh {
    /* Target icon inside */
    color: white;
    /* Moved from inline */
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.wrapper {
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: 100%;
    z-index: 1;
    padding-top: 10%;
    cursor: crosshair;
    box-sizing: border-box;
}

.content {
    width: auto;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
    transform: translateY(0);
    pointer-events: none;
    /* Moved from inline */
    user-select: none;
    /* Moved from inline */
}

.content.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* Additions for .content children */
.content>p:first-of-type {
    /* Target p containing img */
    margin-bottom: 0;
    /* Moved from inline */
}

.content img.floating {
    /* Target specific img */
    width: 90%;
    /* Moved from inline */
    pointer-events: none;
    /* Moved from inline */
    user-select: none;
    /* Moved from inline */
}

.content .subtitle {
    margin: 0;
    /* Moved from inline */
}

.title {
    opacity: 0;
    transform: translateY(-150%);
    /* Start further offscreen top */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    /* Adjusted timing */
    /* Merged from inline */
    position: absolute;
    top: 4px;
    /* Adjusted final top position */
    right: 20px;
    z-index: 10;
    pointer-events: auto;
    user-select: none;
    cursor: pointer;
}

.title.visible {
    opacity: 1;
    transform: translateY(0);
}

.title h1 {
    margin: 0;
    /* Moved from inline */
}

#score {
    /* Removed bottom transition */
    position: fixed;
    /* Use fixed for viewport positioning */
    left: 50%;
    bottom: 4px;
    /* Adjusted final bottom position */
    /* Final desired bottom position */
    transform: translateX(-50%) translateY(150%);
    /* Start centered H, below screen V */
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    /* Merged from inline */
    width: 100%;
    /* NOTE: This might interfere with left: 50%/translateX(-50%) centering. Re-evaluate if needed. */
    text-align: center;
    font-size: 24px;
    color: white;
    z-index: 2;
    user-select: none;
}

#score.visible {
    transform: translateX(-50%) translateY(0);
    /* Slide up to final position */
    opacity: 1;
}

.orange {
    color: #FFA500;
}

.white {
    color: #FFFFFF;
}

h1 {
    font-size: 2em;
}

.bg_dark {
    background: rgb(102, 102, 102);
    background: radial-gradient(circle, rgba(102, 102, 102, 1) 0%, rgba(17, 17, 17, 1) 100%);
}

img {
    width: 90%;
    animation: float 5s ease-in-out infinite;
}

.text-center {
    text-align: center;
}

a {
    color: #ffffff !important;
    text-decoration: none;
}

a:hover {
    color: #FFA500 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.weapon-btn {
    font-size: 12px;
    color: white;
    border-radius: 3px;
    transition: opacity 0.3s;
    /* Merged from inline */
    border: none;
    padding: 5px;
    cursor: pointer;
}

.weapon-btn:hover {
    opacity: 0.8;
}

@media only screen and (max-width: 799px) {
    h1 {
        font-size: 20px;
    }

    .content {
        width: 140px;
    }

    .wrapper {
        padding-top: 0 !important;
    }

    .subtitle {
        font-size: 0.8em;
    }
}