body, html { max-height: 100vh; max-width: 100%; display: flex; justify-content: center; align-items: center; } #main{ max-height: 100vh; max-width: 100%; } #menu { background-size: contain; display: flex; flex-direction: row; justify-content: center; align-items: center; max-width: 100%; max-height: 70vh; transition: transform 0.3s, scale 0.3s; } #title{ display: flex; flex-direction: row; justify-content: center; align-items: center; max-height: 30vh; } #side{ display: flex; flex-direction: column; max-width: 30vw; } .normal_image { max-width: 100%; } p{ color: dodgerblue; align-self: center; border: 4px dashed dodgerblue; background-color: white; margin-right: 40px; margin-left: 40px; } #logo{ align-self: center; justify-content: flex-start; } .seed { display: flex; } .seed img { transition: transform 0.3s ease; } .seed img:hover { transform: scale(1.1); } #seeds{ height: 60vh; display: flex; flex-direction: column; justify-content: space-between; } #image-container { transition: opacity 0.5s ease; /* Fade transition */ } @keyframes wiggle { 0% { transform: rotate(0deg); } 25% { transform: rotate(10deg); } 50% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } 100% { transform: rotate(0deg); } } #melon { animation: wiggle 2s ease infinite; /* Adjust duration and timing function for desired effect */ }