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

*{
    box-sizing: border-box;
}

body{
    background-color: pink;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow-x:hidden ; 
}

h1{
    margin:10px;
}

.box{
    background-color: blue;
    color: #efedd6;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 200px;
    margin: 10px;
    border-radius:10px ;
    box-shadow: 7px 4px 5px red;
    transform: translateX(400%);
    transition: transform 0.4s ease;
}

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


/* show is used by JS */
.box.show{
    transform: translateX(0);
}

.box h2{
    font-size: 45px;
}