* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

.shake {
    animation: shake 1s;
    animation-iteration-count: infinite;
    transform: translate3d(0, 0, 0);
}

@keyframes shake {
    0% {
        transform: translate(4px, 4px) rotate(0deg);
    }

    10% {
        transform: translate(-4px, -4px) rotate(-1deg);
    }

    20% {
        transform: translate(-7px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(7px, 4px) rotate(0deg);
    }

    40% {
        transform: translate(4px, -4px) rotate(1deg);
    }

    50% {
        transform: translate(-4px, 4px) rotate(-1deg);
    }

    60% {
        transform: translate(-7px, 4px) rotate(0deg);
    }

    70% {
        transform: translate(7px, 4px) rotate(-1deg);
    }

    80% {
        transform: translate(-4px, -4px) rotate(1deg);
    }

    90% {
        transform: translate(4px, 4px) rotate(0deg);
    }

    100% {
        transform: translate(4px, -4px) rotate(-1deg);
    }
}

body {
    background: #ECE9E6;
    background: linear-gradient(to right,
            #ECE9E6, #FFFFFF);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

.center {
    text-align: center;
    padding: 1em;
}

img {
    width: 40vw;
    max-width: 200px;
    height: auto;
    padding: 0.3em;
}

button {
    margin-top: 1em;
    background-color: #4c53af;
    border: none;
    border-radius: 1em;
    color: #ECE9E6;
    padding: 1em 2em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1.1em;
    font-weight: bold;
    margin: 1em 2em;
    cursor: pointer;
    transition-duration: 0.4s;
}

button:hover {
    background-color: #1f2462;
}

button:active {
    background-color: #1f2462;
    transform: scale(0.9);
    box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
}

h1 {
    color: #1f2462;
    font-size: 4em;
}

.row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
    margin-top: 2em;
}

#message {
    color: #4c53af;
    font-size: 2em;
    font-weight: bold;
    margin-top: 4em;
    text-align: center;
    /* fade-in */
    opacity: 0;
    transform: scale(0.95);
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    #message {
        font-size: 1.5em;
        margin-top: 2em;
    }

    img {
        width: 60vw;
        max-width: 150px;
    }

    button {
        padding: 0.8em 1.5em;
        font-size: 1em;
        margin: 0.5em 1em;
    }

    .center {
        padding: 0.5em;
    }

    .row {
        margin-top: 1em;
        gap: 0.5em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    #message {
        font-size: 1.2em;
        margin-top: 1.5em;
    }

    img {
        width: 70vw;
        max-width: 120px;
    }

    button {
        padding: 0.6em 1.2em;
        font-size: 0.9em;
    }
}