.container { margin-top: 20px; display: flex; align-items: center; justify-content: center; text-align: center; margin-bottom: 20px; } .inputArea{ display: flex; width: 80%; justify-content: space-between; text-align: center; margin: auto; margin-bottom: 2em; } .imageHolder{ display: flex; width :50vw; height:70vh; justify-content: center; align-items:center; margin: auto; } #imageBox { width: 100%; height: 100%; margin-bottom: auto; /* background-color: blueviolet; */ } #lable{ max-width: 12%; min-width:12%; text-align: center; } #promptText{ font-size: 1em; width: 60%; text-align: center; } #btn-gen, #btn-clear{ max-width: 12%; min-width: 12%; text-align: center; cursor:pointer; } #download{ max-width: 12%; min-width: 12%; font-size: 1em; text-align: center; cursor:pointer; border-radius : 5px; } @media only screen and (max-width: 380px) { .imageHolder{ display: flex; width :98vw; height:50vh; justify-content: center; align-items:center; } .inputArea{ display: flex; width: 100%; justify-content: space-between; text-align: center; margin: auto; margin-bottom: 2em; } #promptText{ font-size:0.8em; width: 50%; text-align: center; } #btn-gen, #btn-clear { min-width: 15%; min-height:10%; max-height:10%; font-size: 50%; text-align: center; cursor:pointer; border-radius:5px; } #lable{ font-size: 50%; max-width: 15%; text-align: center; } #download{ max-width: 35%; min-width: 35%; font-size: 60%; text-align: center; cursor:pointer; border-radius : 5px; } }