body {
    display: grid;
    place-items: center;
    height: 100%;
    background-color: #0e1626;
    color: white;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h2 {
    font-size: 13px;
    font-weight: normal;
}

header h1 {
    margin: 0;
}

#game {
    color: white;
    background-image: linear-gradient(153deg, #1c2b45 13%, #0c1321 85%), linear-gradient(149deg, #fec63b 3%, rgba(254, 198, 59, 0) 80%);
    position: relative;
    border-radius: 20px;
}

#game:before {
    content: '';
    display: block;
    position: absolute;
    inset: -7px;
    background-image: linear-gradient(138deg, #6ba0e2 -20%, #131e32 105%);
    z-index: -1;
    border-radius: 25px;
}

.row {
    display: flex;
}


.row:before {
    display: block;
    margin-right: 10px;
    color: rgba(255, 255, 255, .50);
    font-weight: 300;
}

.row.current:before {
    color: white;
    font-weight: bold;
}

.row.current > .tile:empty:first-child {
    -webkit-animation: fade 2s;
            animation: fade 2s;
    -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
    -webkit-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
}

@-webkit-keyframes fade {
    50% {
        background: rgba(255, 255, 255, .05)
    }
}

@keyframes fade {
    50% {
        background: rgba(255, 255, 255, .05)
    }
}

.tile {
    outline: 1px solid rgba(73, 110, 158, 0.1);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: 600;
    text-transform: uppercase;
    color: #496e9e;
}

.row.invalid .tile, .tile.invalid {
    color: #ff3f3f;
    text-shadow: 0 0 12px rgba(246, 38, 38, 0.42);
}

.tile.correct {
    color: #47d747;
    text-shadow: 0 0 12px rgba(38, 246, 110, 0.42);
}

.tile.present {
    color: #f7f749;
    text-shadow: 0 0 12px rgba(246, 171, 38, 0.42);
}

output {
    text-align: center;
    display: block;
    font-weight: 500;
    font-size: 20px;
    margin-top: 1rem;
    position: fixed;
    inset: auto 0 3rem 0;
}

output:empty {
    display: none;
    color: #496e9e;
}

