@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

body {
    background-color: #262a2f;
}

.container {
    width: 90%;
    max-width: 400px;
    padding: 25px 30px;
    background-color: white;
    border-radius: 10px;
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
}

.container h1 {
    color: #494eea;
}

.container p {
    font-size: bold;
    font-size: 1rem;
    margin-bottom: 8px;
}

.container input {
    height: 50px;
    width: 100%;
    border: 1px solid black;
    outline: 0;
    padding: 10px;
    margin: 10px 0px 20px;
    border-radius: 5px;
}

#blank-input {
    color: red;
    font-size: 0.875rem;
}

.container button {
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin: 20px 0;
    font-weight: 500;
    height: 50px;
    width: 100%;
    background-color: #494eea;
    color: white;
    border: none;
    outline: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px 0;
    font-weight: bold;
}

.img-box {
    width: 200px;
    border-radius: 5px;
    min-height: 0;
    overflow: hidden;
    transition: max-height 1s;
}

.img-box img {
    width: 100%;
    padding: 10px;
}

.img-box.show-img {
    max-height: 300px;
    margin: 10px auto;
    border: 1px solid black;
}

.error {
    animation: shake 0.1s linear 10;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    50% {
        transform: translateX(0px);
    }

    75% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(0);
    }
}