.container { padding-bottom: 20px; } .flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .center { justify-content: center; align-items: center; } .mb-10 { margin-bottom: 10px; } .mt-10 { margin-top: 10px; } .text-container { width: 100%; white-space: pre-line; margin-bottom: 10px; } .box text { display: block; padding-top: 10px; padding-bottom: 10px; } .box1 { width: 300px; height: 300px; background-color: red; margin: 0 auto; border-radius: 5px; text-align: center; } .box2 { width: 200px; height: 200px; background-color: orange; margin: 0 auto; border-radius: 5px; } .box3 { width: 100px; height: 100px; background-color: yellow; margin: 0 auto; border-radius: 5px; } .transitionbox { width: 200px; height: 200px; background-color: grey; margin: 0 auto; transition: all 0.3s ease; border-radius: 5px; } .transitionbox:hover { width: 300px; /* height: 300px; */ background-color: grey; margin: 0 auto; } @keyframes fadeOutIn { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } .animationbox { width: 200px; height: 200px; background-color: khaki; margin: 0 auto; border-radius: 5px; } .animation { animation: fadeOutIn 2s ease; animation-iteration-count: 2; } .wrapper { height: 300px; width: 100%; display: flex; justify-content: center; align-items: center; border-radius: 5px; } .info-panel { display: flex; flex-flow: column; align-items: center; } .info-panel > text { display: block; margin-bottom: 10px; } .info-panel > button { margin-bottom: 10px; width: 100%; }