@import url(brekpoints.scss); $color:#ff5c33; *{ margin: 0; padding: 0; box-sizing: border-box; transition: all .2s; font-family:'Exo 2', sans-serif; } html{ font-size: 62.5%; } .container{ height: 80vh!important; width: 100%; border-radius: .5rem; -webkit-box-shadow: 0 0.5rem 1rem rgb(51 51 51 / 20%); box-shadow: 0 0.5rem 1rem rgb(51 51 51 / 20%); display: -webkit-box; display: -ms-flexbox; display: flex; margin: 11rem auto!important; overflow: hidden; .img-container{ width:50%; .big-image{ height: 70%; width: 90%; padding: 1rem; margin-left:5%; img{ height: 100%; width:100%; object-fit: contain; background: black; } } .small-image{ height: 30%; width: 100%; display: flex; justify-content: space-around; img{ height: 10vw; width: 10vw; cursor: pointer; -o-object-fit: cover; object-fit: cover; -webkit-box-shadow: 2px 4px 8px #00000087; box-shadow: 2px 4px 8px #00000087; border: .1rem solid white; padding: 1vw; &:hover{ transform: scale(.9); } } } } .content{ width: 50%; position: relative; padding: 2rem; h1{ font-size: 4rem; padding-top: 2rem; color:$color; } p{ font-size:2rem; padding: 1rem 0; color: #333; } .stars{ i{ font-size: 2rem; color: gold; } } .price{ font-size: 2rem; color: #333; text-decoration: overline; } .bi-patch-check { float: left; margin: 1vw; color: #ec2565; -webkit-filter: opacity(0.5); filter: opacity(0.5); -webkit-transition: 1s ease-in; transition: 1s ease-in; height: 6vw; width: 6vw; } svg{ height: 6vw; width: 6vw;margin-left:2vw} button{ position: absolute; height: 4rem; width: 16rem; font-size: 1.6rem; bottom: 3rem; right:2rem; border:none; outline: none; cursor: pointer; background-color: #ff5c33; box-shadow: 0 .5 1rem rgba(51,51,51,0.2); color: white; &:hover{ background: #ff3300; } } } } @include breakpoint(768px){ .container{ height:80%; width: 100%; border-radius: .5rem; box-shadow: 0 .5rem 1rem rgba(51,51,51,0.2); display: flex; margin: 10rem auto; overflow: hidden; .img-container{ width:50%; .big-image{ height: 70%; width: 90%; padding: 1rem; margin-left:5%; img{ height: 100%; width:100%; object-fit: cover; } } .small-image{ height: 30%; width: 100%; display: flex; justify-content: space-around; img{ height: 10vw; width: 10vw; cursor: pointer; -o-object-fit: cover; object-fit: cover; -webkit-box-shadow: 2px 4px 8px #00000087; box-shadow: 2px 4px 8px #00000087; border: .1rem solid white; padding: 1vw; &:hover{ transform: scale(.9); } } } } .content{ width: 50%; position: relative; padding: 2rem; h1{ font-size: 4rem; padding-top: 2rem; color:$color; } p{ font-size:2rem; padding: 1rem 0; color: #333; } .stars{ i{ font-size: 2rem; color: gold; } } .price{ font-size: 2rem; color: #333; text-decoration: overline; } .bi-patch-check { float: left; margin: 10px; color: #ec2565; filter: opacity(0.5); transition: 1s ease-in; height: 30px; width: 30px; } svg{ height: 30px; width: 30px; margin: 10px;} button{ position: absolute; height: 4rem; width: 16rem; font-size: 1.6rem; bottom: 3rem; right:2rem; border:none; outline: none; cursor: pointer; background-color: #ff5c33; box-shadow: 0 .5 1rem rgba(51,51,51,0.2); color: white; &:hover{ background: #ff3300; } } } } } @include breakpoint(487px){ .container{ height:80%; width: 100%; border-radius: .5rem; box-shadow: 0 .5rem 1rem rgba(51,51,51,0.2); display: flex; margin: 10rem auto; overflow: hidden; .img-container{ width:50%; .big-image{ height: 70%; width: 90%; padding: 1rem; margin-left:5%; img{ height: 100%; width:100%; object-fit: cover; } } .small-image{ height: 30%; width: 100%; display: flex; justify-content: space-around; img{ height: 10vw; width: 10vw; cursor: pointer; -o-object-fit: cover; object-fit: cover; -webkit-box-shadow: 2px 4px 8px #00000087; box-shadow: 2px 4px 8px #00000087; border: .1rem solid white; padding: 1vw; &:hover{ transform: scale(.9); } } } } .content{ width: 50%; position: relative; padding: 2rem; h1{ font-size: 4rem; padding-top: 2rem; color:$color; } p{ font-size:2rem; padding: 1rem 0; color: #333; } .stars{ i{ font-size: 2rem; color: gold; } } .price{ font-size: 2rem; color: #333; text-decoration: overline; } .bi-patch-check { float: left; margin: 10px; color: #ec2565; filter: opacity(0.5); transition: 1s ease-in; height: 30px; width: 30px; } svg{ height: 30px; width: 30px; margin: 10px;} button{ position: absolute; height: 4rem; width: 16rem; font-size: 1.6rem; bottom: 3rem; right:2rem; border:none; outline: none; cursor: pointer; background-color: #ff5c33; box-shadow: 0 .5 1rem rgba(51,51,51,0.2); color: white; &:hover{ background: #ff3300; } } } } }