* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.title {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0px;
    font-size: 28px;
    font-weight: 600;
    box-shadow: 0px 2px 0px 0px rgba(0,0,0,0.89);
}

#preload {
    width: 100%;
    padding: 20px 10px 10px 10px;
    display: flex;
    justify-content: center;
}

#loader {
    font-size: 50px;
    margin: 0;
    animation: rotation 1s infinite linear;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.container {
padding: 10px;
display: flex;
align-items: center;
flex-direction: column;
}

.input-row{
    margin: 6px 0;
}

input {
    width: 45px;
    height: 45px;
    border: 3px solid #ccc;
    margin: 0 6px 0 6px;
    padding: 4px;
    font-size: 28px;
    text-align: center;
    font-weight: 600;
    caret-color: transparent;
    text-transform: uppercase;
}

input:focus {
    outline: none;
}

.correct {
    background-color: #4cb130;
    color: #f5f5f5;
}

.close {
    background-color: #bd9b00;
    color: #f5f5f5;
}

.wrong {
    background-color: #747474;
    color: #f5f5f5;
}

.invalid {
    background-color: #fff;
    color: #333;
    border: 3px solid #f63838;
    animation: flash 3s linear infinite;
}

@keyframes flash {
    0% {
      opacity: 1;
    }
  
    50% {
      opacity: 0;
    }
    
    100% {
      opacity: 1;
    }
  }