@import url('https://fonts.googleapis.com/css2?family=Combo&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Combo', sans-serif;
    background: #0b0c1c;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

canvas#cosmicCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

.title-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 85%;
    max-width: 900px;
    background: rgba(0,0,0,0.85);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 0 25px #b084ff;
}

.header {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #f9efff;
    text-shadow: 0 0 15px #a0a0ff, 0 0 25px #b0b0ff;
}

.room {
    font-size: 1.3rem;
    line-height: 2rem;
}

.glow-word {
    display: inline-block;
    transition: text-shadow 0.3s;
}

.glow-word:hover {
    text-shadow: 0 0 10px #c9b8ff, 0 0 20px #e3dbff;
    cursor: pointer;
}

input {
    background: rgba(255,255,255,0.08);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    outline: none;
    margin-top: 20px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

button {
    background: #c9b8ff;
    color: #0b0c1c;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

button:hover {
    background: #e3dbff;
    transform: scale(1.06);
}

img.icon {
    width: 150px;
    margin: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

img.icon:hover {
    filter: brightness(2);
    transform: scale(1.1);
}

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

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

#keyboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

}

.key {
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #d4c2f4;
    background: #000;
    color: #fff;
    font-family: 'Combo', sans-serif;
    cursor: pointer;
    transition: 0.3;
    user-select: none
}

.key:hover {
    background: #1a0a1f;
    box-shadow: 0 0 15px #b084ff;
}