@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    background-color: #898986;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin:0;
}

h1 {
    margin: 10px;
}

.box {
    background: rgb(2,0,36);
    background: radial-gradient(circle, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 42%, rgba(219,0,255,1) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 200px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 2px 4px 5px rgba(0,0,0,0.3);
    transition: all 1s ease;
    opacity: 0;
}

/* .box:nth-last-of-type(even) {
    transform: translateX(-400%);
} */

.box.side.right {
    transform: translateX(400%);
}
.box.side.left {
    transform: translateX(-400%);
}
.box.down {
    transform: translateY(100px);
}

.box.show {
    opacity: 1;
}
.box.side.show {
    transform: translateX(0);
}
.box.down.show {
    transform: translateY(0);
}

.box h2 {
    font-size: 3rem;
}