@keyframes flip {
    from { transform: rotateX(90deg); }
    to { transform: rotateX(0deg); }
}

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

@keyframes shadow {
    from { box-shadow: unset; }
    to { box-shadow: 6px 6px 20px rgba(122, 122, 122, 0.2); }
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    
    margin: 0;
    height: 100dvh;

    background-color: rgb(243, 189, 71);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    
    background-image:
        linear-gradient(to right bottom,
        rgba(225, 225, 225, 0.7),
        rgba(225, 225, 225, 0.3)
    );
    box-shadow: 6px 6px 20px rgba(122, 122, 122, 0.2);
    
    min-width: 50rem;
    min-height: 25rem;
    border-radius: 1.3rem;

    animation: flip 1s ease-in-out;
    transition: all 1s, font-size 1s ease-in-out, width 1s ease-in-out;
}

.content-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    animation: appear 1s ease-in-out 1s both;
}

header {
    display: flex;
    place-content: center start;
}

img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 12px 0 0;
    background-image: radial-gradient(
        rgba(225, 225, 225, 0.7),
        rgba(225, 225, 225, 0.3)
    );
    box-shadow: unset;
    animation: shadow 1s ease-in-out 2s both;
}

.content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    max-width: 40rem;
}

button {
    color: white;
    font-family: Roboto,Helvetica Neue,sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: none;
    border: none;
    min-width: 64px;
    line-height: 36px;
    padding: 0 16px;
    background-color: hsla(0, 83%, 50%, 0.767);
    box-shadow: 6px 6px 20px rgba(122, 122, 122, 0.2);
    border-radius: 4px;
    margin: 15px 0 0;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: hsla(0, 83%, 45%, 0.767);
    transition: background-color 0.2s ease-in-out;
}

@media screen and (max-width: 859px) {
    body {
        font-size: medium;
    }

    main {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        
        min-width: 15rem;
        height: 35rem;

        border-radius: 1.3rem;
        gap: 10px;
    }

    .content-container {
        justify-content: center;
        flex-direction: column;
        margin: 0 2rem;
    }

    header {
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .content {
        flex-wrap: wrap;
        max-width: 30rem;
    }
}

@media screen and (max-width: 628px) {
    body {
        font-size: small;
    }

    main {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        
        max-width: 20rem;
        height: 35rem;
        border-radius: 1.3rem;
    }

    .content-container {
        justify-content: center;
        flex-direction: column;
        margin: 0 2rem;
    }

    header h1 {
        max-width: 17rem;
        text-align: center;
    }

    .content {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        text-align: center;
        max-width: 30rem;
    }
}
