html, body { margin: 0; padding: 0; } * { font-family: 'Roboto', sans-serif; } .container { margin: 0 auto; border: solid 1px #000; max-width: 1198px; height: 250px; background: #F6F1EB; display: flex; position: relative; } @media (max-width: 1199px) { .container { max-width: 958px; } } @media (max-width: 959px) { .container { max-width: 766px; } } @media (max-width: 767px) { .container { flex-direction: column-reverse; height: 100%; } } .content_container { display: flex; flex-direction: column; justify-content: center; width: 438px; padding: 25px 45px; box-sizing: border-box; } @media(max-width: 1199px) { .content_container { width: 452px; } } @media(max-width: 959px) { .content_container { width: 513px; } } @media(max-width: 767px) { .content_container { width: 100%; /* flex: 1; */ padding: 40px 25px; } } .content_container img { width: 100%; max-width: 100px; margin: 0 auto 5px auto; } .content_container h1 { font-weight: 300; font-size: 18px; line-height: 21px; text-align: center; color: #000000; margin-bottom: 0; } .content_container p { font-size: 12px; line-height: 14px; text-align: center; font-weight: 400; color: #444444; margin-bottom: 15px; } .content_container a { font-size: 16px; line-height: 19px; font-weight: 400; text-align: center; text-decoration-line: underline; color: #000000; } .content_container a:hover { text-decoration: none; } .slider_container { position: relative; width: 759px; overflow: hidden; } @media (max-width: 767px) { .slider_container { flex: 1; width: 100%; } } .slider { width: 1525px; height: 248px; margin: 1px 0 0 1px; transition: all 0.3s linear; } @media (max-width: 767px) { .slider { height: 100%; } } .slider img { margin-right: 5px; width: 248px; height: 100%; float: left; } @media (max-width: 767px) { .slider img { width: 100vw; } } .arrows_container { position: absolute; left: 10px; bottom: 10px; font-size: 10px; color: #fff; display: flex; } #left_arrow { padding: 5px 5px 5px 10px; background: #444444; border-radius: 50px 0 0 50px; margin-right: 1px; cursor: pointer; } #right_arrow { padding: 5px 10px 5px 5px; border-radius: 0 50px 50px 0; background: #444444; cursor: pointer; } #left_arrow:hover, #right_arrow:hover { background: #000000; } #left_arrow.no_more, #right_arrow.no_more { cursor: default; background: #888888; }