.main h1, .main h2{
    text-align: center;
}

.main h1{
    font-size: 45px;
    font-weight: 600;
    margin: 0;
}

.main .choose-image-cont{
    padding: 20px;
    margin-top: 20px;
    border-radius: 20px;
    box-sizing: border-box;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    border: 2.5px dashed #fb320e;
}

.main .choose-image-cont.dragover{
    background-color: #f5f6fb;
}

.main .choose-image{
    width: 250px;
    display: flex;
    padding: 25px 0 5px 0;
    flex-direction: column;
}

.main .file-button button{
    width: 100%;
    float: left;
    color: white;
    border: none;
    outline: none;
    border-radius: 10px;
    text-align: center;
    font-size: 17px;
    padding: 15px 0;
    background-color: #fb320e;
    font-family: 'Poppins', sans-serif;
}

.main .file-button input{
    display: none;
}

.main .choose-image .drop-label{
    width: 100%;
    float: left;
    font-size: 14px;
    padding: 10px 0;
    text-align: center;
}

.main p{
    width: 100%;
    float: left;
    font-size: 15px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    color: #2F323D;
}

.main p b{
    padding: 0 2px;
    border-radius: 6px;
    color: white;
    font-weight: 400;
}

.main p .jpeg{
    color: #50c878;
}

.main p .png{
    color: #0062f4;
}

.main p .jpg{
    color: #ffa500;
}

.compressing {
    width: 100%;
    float: left;
    border-radius: 20px;
    padding: 100px 20px;
    box-sizing: border-box;    
}

.loader {
    width: 100px;
    height: 20px;
    float: left;
    left: 50%;
    position: absolute;
    transform: translate(-50%,-50%);    
}

.loader > div {
    content: " ";
    width: 20px;
    height: 20px;
    background: #2196F3;
    border-radius: 100%;
    position: absolute;
    -webkit-animation: shift 2s linear infinite;
    animation: shift 2s linear infinite;
}

.loader > div:nth-of-type(1) {
  -webkit-animation-delay: -.4s;
          animation-delay: -.4s;
}

.loader > div:nth-of-type(2) {
  -webkit-animation-delay: -.8s;
          animation-delay: -.8s;
}

.loader > div:nth-of-type(3) {
  -webkit-animation-delay: -1.2s;
          animation-delay: -1.2s;
}

.loader > div:nth-of-type(4) {
  -webkit-animation-delay: -1.6s;
          animation-delay: -1.6s;
}

@-webkit-keyframes shift {
    0% {
        left: -60px;
        opacity: 0;
        background-color: yellow;
    }
    10% {
        left: 0;
        opacity: 1;
    }
    90% {
        left: 100px;
        opacity: 1;
    }
    100% {
        left: 160px;
        background-color: red;
        opacity: 0;
    }
}

@keyframes shift {
    0% {
        left: -60px;
        opacity: 0;
        background-color: yellow;
    }
    10% {
        left: 0;
        opacity: 1;
    }
    90% {
        left: 100px;
        opacity: 1;
    }
    100% {
        left: 160px;
        background-color: red;
        opacity: 0;
    }
}

.main .preview-controls{
    width: 750px;
    float: left;
    padding: 20px;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #e5e9f8;
}

.preview{
    width: 50%;
    float: left;
    height: 400px;
    display: flex;
    padding-right: 20px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.preview img{
    max-width: 100%;
    max-height: 100%;
}

.controls{
    width: 50%;
    float: left;
    display: flex;
    flex-direction: column;
}

.controls .method-btns{
    width: 100%;
    float: left;
    display: flex;
}

.controls .method-btns button{
    width: 100%;
    border: none;
    outline: none;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    background-color: white;
}

.controls .method-btns button:hover{
    cursor: pointer;
    background-color: #e5e9f8;
}

.controls .method-btns .active{
    background-color: #f5f6fb;
}

.controls .method{
    width: 100%;
    float: left;
    padding: 20px 10px 20px 20px;
    box-sizing: border-box;
    border-radius: 0 10px 10px 10px;
    background-color: #f5f6fb;
}

.fields{
    width: 100%;
    float: left;
    padding-bottom: 15px;
    box-sizing: border-box;
}

.fields .field{
    width: 50%;
    float: left;
    padding-right: 10px;
    box-sizing: border-box;
}

.controls .aspect-ratio{
    width: 100%;
    float: left;
    display: flex;
}

.controls .aspect-ratio label{
    font-size: 12px;
    padding: 0 0 0 5px;
}

.fields label{
    width: 100%;
    float: left;
    padding-bottom: 5px;
    font-weight: 400;
    font-size: 13px;
    color: black;
}

.field input, .field select{
    width: 100%;
    float: left;
    outline: none;
    font-size: 14px;
    border-radius: 10px;
    padding: 8px 15px;
    color: black;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    margin-bottom: 10px;
    border: 1.5px solid #E2E5E9;
    background-color: white;
}

input[type="range"]{
    padding: 8px 0;
}

.controls .method table{
    width: 100%;
    float: left;
    font-size: 13px;
    padding: 15px 0px;
    box-sizing: border-box;
    border-top: 1px solid #e5e9f8;
    border-bottom: 1px solid #e5e9f8;
}

table b{
    float: left;
    font-weight: 400;
}

table tr td:first-child{
    text-align: left;
}

table td{
    text-align: right;
}

table .spinner{
    width: 10px;
    height: 10px;
    float: left;
    display: none;
    margin-left: 5px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0);
    border-top-color: #fb320e;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.controls .buttons{
    width: 100%;
    float: left;
    display: flex;
    padding-top: 20px;
}

.controls .buttons input{
    width: 100%;
    float: left;
    padding: 10px;
    border: none;
    font-size: 13px;
    margin-right: 10px;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #e5e9f8;
}

.controls .buttons .resize{
    color: white;
    background-color: #fb320e;
}

.download-cont{
    width: 100%;
    float: left;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #e5e9f8;
}

.download-cont h3{
    float: left;
    margin: 0;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.download-cont .resolution{
    display: flex;
    flex-direction: column;
}

.download-cont .resolution i{
    width: 50px;
    height: 60px;
    float: left;
    background-image: url("../assets/arrow-right-black.svg");
    background-position: center;
    background-size: 30px 30px;
    background-repeat: no-repeat;
}

.download-cont .resolution b{
    float: left;
    color: #fb320e;
    font-size: 40px;
    font-weight: 500;
}

.download-cont .resolution label{
    width: 100%;
    float: left;
    margin-top: -10px;
    color: #757485;
    text-align: center;
    font-size: 12px;
}    

.download-cont .button{
    margin-top: 30px;
    color: white;
    border: none;
    outline: none;
    font-size: 20px;
    border-radius: 10px;
    padding: 15px 30px 15px 65px;
    background-image: url("../assets/download-white.svg");
    background-position: 20px;
    background-size: 30px 30px;
    background-repeat: no-repeat;
    font-family: 'Poppins', sans-serif;
    background-color: #fb320e;
}

.download-cont a{
    font-size: 14px;
    color: black;
    padding: 10px 0;
    text-decoration: none;
    text-align: center;
}

.download-cont a b{
    color: #fb320e;
    font-weight: 400;
}

@media screen and (max-width: 800px) {
    main h1{
        font-size: 30px !important;
    }

    main h2{
        font-size: 18px !important;
    }
    
    main .main{
        width: 100%;
        padding: 10px 0;
        box-sizing: border-box;
    }

    .main .preview-controls{
        width: 100%;
        padding: 0;
        border: none;
        display: flex;
        flex-direction: column;
    }

    .preview, .controls{
        width: 100%;
        height: auto;
        margin: 30px 0;
    }

    .field input, .field select{
        font-size: 15px;
        padding: 10px 15px;
    }

    .controls .buttons input{
        padding: 13px;
        font-size: 15px;
    }

    .download-cont .resolution span{
        display: flex;
        flex-direction: column;
    }

    .download-cont .resolution i{
        width: 100%;
        background-image: url("../assets/arrow-down-black.svg");
    }
}