body { margin: 0; }
canvas { display: block; }
button { font-family: courier; }

#info {
    font-family: Courier;
    position: fixed;
    top: 10px;
    left: 10px;
    width: clamp(150px, 9vw, 200px); /* Minimum 150px, maximum 250px */
    color: white;
    font-size: clamp(12px, 1.2vw, 14px); /* Responsive font size with bounds */
    background: rgba(0,0,0,1);
    padding: clamp(8px, 1.5vmin, 15px);
    border: 3px double white;
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
    display: none;
    height: auto;
    max-height: 700px;
}

#info h1 {
    margin: 0;
    padding: 0;
    font-size: 14px;
    text-decoration: underline;
    font-weight: bold;
}

#loadingScreen {
    font-family: Courier;
    color: white;
    background: rgba(0,0,0,1);
    transition: opacity 0.2s ease-in-out;
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 492px;
    height: 474px;
    transform: translate(-50%, -50%);
    background-image: url("skeleton-trumpet.gif");
    background-repeat: no-repeat;
    background-size: 100%;
    text-align: center;
    filter: invert(1);
}

#loadingScreen h1 {
    margin: 0;
    padding: 0;
    padding-top: 45%;
    font-size: 60px;
    font-weight: 900;
    mix-blend-mode: difference;
    
}

#topDisplay {
    position: fixed;
    top: 3.3%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    border: 3px double #fff;
    text-align: center;
    z-index: 1000;
    background-color: black;
    color: white;
    font-family: Courier;
    font-weight: bold;
}

#youLose {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    color: white;
    text-align: center;
    padding-top: 20%;
}

#youLose h1 {
    font-family: Courier;
    margin-bottom: 20px;
}

.message-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    border: 2px solid #fff;
    text-align: center;
    z-index: 1000;
    background-color: black;
    color: white;
    font-family: Courier;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.fade-out {
    animation: fadeOut 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}