html {
  scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    margin:0;
    padding-left:20px;
    padding-right:20px;
}

/*Header*/
header {
    width:100%;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:center; 
    animation: fadeInAnimation ease 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    background-color:#f8f8f8;
}
#headermain {
    width:70%;
    padding:10px;
    box-sizing:border-box;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:center;
}
#logo {
    display:flex;
    align-items:center;
    justify-content:center;
}
#logo img {

    height:auto;
    transition:all ease-in 0.3s;    
}
#logo img:hover {
    opacity:0.8;
}
nav {
    width:70%;
    display:flex;
    align-items:center;
    justify-content:end;    
}
nav a {
    margin:10px;
    transition:all ease-in 0.3s; 
    color:#0055d4;
    text-decoration:none;
    font-size:17px;
    font-family: 'Roboto', sans-serif;
    font-weight:400;
    text-align:center;
}
nav a:hover {
    opacity:0.8;
}

/*Header Mobile*/
#headermobile {
    width:100%;
    box-sizing:border-box;
    padding:20px;    
    align-items:center;
    flex-direction:row;
    display:none;
}
#logomobile {
    width:80%;
    display:flex;
    justify-content:center;
    align-items:center;
    box-sizing:border-box;
    padding:5px;        
}
#logomobile img {
    max-width:100%;
    transition:all ease-in 0.3s;
    height:auto;
}
#logomobile img:hover {
    opacity:0.8;
} 
#navmobile {
    display:flex;
    width:20%; 
    justify-content:center;  
    align-items:center;
    box-sizing:border-box;
    padding:5px;        
}
#navmobile #menubuttonmobile {
    background-color:#0055d4;
    color:#ffffff;
    box-sizing:border-box;
    font-size:17px;
    transition:all 0.3s ease-in;
    padding:10px;             
    text-decoration:none; 
    margin-top:15px;
    border-radius:10px;
    font-family: 'Roboto', sans-serif;
}
#navmobile #menubuttonmobile:hover {
    opacity:0.8;
}            
#navmobile .overlay {
    height:100%;
    width:0;
    position:fixed;
    z-index:22;
    top:0; 
    left:0;
    background-color:#0055d4;
    overflow-x:hidden;
    display:flex;
    justify-content:center;
    transition:all ease-in 0.3s;
    align-items:center;
    text-align:center;
}
#navmobile .overlay a {
    padding:5px;
    text-decoration:none;
    font-size:20px;
    color:#ffffff;
    display:block;
    transition:all ease-in 0.3s;
    font-family: 'Roboto', sans-serif;
    font-weight:400; 
    line-height:1.5em;
}
#navmobile .overlay a:hover {
    color:#ffffff;
}
#navmobile .overlay .closebtn {
    transition:all ease-in 0.3s;
    text-align:center;
    font-size:30px;
    color:#ffffff;
    padding:10px;
    cursor:pointer;
    border-radius:20px;
    display:block;    
}
#navdesktop .overlay .closebtn:hover {
    opacity:0.8; 
}

/*Top Section*/
.topsection {
    width:100%;
    box-sizing: border-box;
    padding: 40px;
    display: flex;
    justify-content: center;
    height: 500px;
    background: linear-gradient(135deg,#0055d4,#4a90e2,#003c9e,#0055d4);
    background-size: 300% 300%; /* bigger than element for movement */
    animation: gradientShift 8s ease infinite;
    border-radius: 10px;
    align-items: center;
    flex-direction: column;
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.topsection h1 {
    font-size: 50px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0px;
    line-height: 1.1em;
}
.topsection p {
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    color: #dddddd;
    line-height: 1.5em;
}
.topsection a {
    background-color: #ffffff;
    padding: 18px;
    border-radius: 10px;
    color: #0055d4;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 22px;
    transition: all ease-in 0.3s;
}
.topsection a:hover {
    opacity: 0.8;
}

/*Image Compression Container*/
.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    width: 40%;
    margin:80px auto 0px auto;
    box-sizing:border-box;    
}
.container h2 {
    font-size: 32px;
    color: #000000;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    line-height: 1.1em;
}
.container .dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    margin-bottom: 15px;
}
.container .dropzone:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}
.container .dropzone-text {
    color: #333333;
    font-weight: 600;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;    
}
.container .dropzone-subtext {
    color: #555555;
    font-size: 17px;
    font-family: 'Roboto', sans-serif;    
}
.container .dropzone input[type="file"] {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    color: #000000;
    font-weight: 500;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;    
}
.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Roboto', sans-serif;
    font-size:17px;
    color: #555555;
}
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
.file-list {
    list-style-type: disc;
    margin-left: 15px;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    font-size:17px;
    color:#555555;
}
.btn {
    width: 100%;
    background-color: #0055d4;
    color: #fff;
    font-weight: 700;
    padding: 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    font-family: 'Roboto', sans-serif;
    font-size:18px;
}
.btn:hover {
    background-color: #0055d4;
}
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5);
}
.btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}
.progress-container {
    margin-top: 1.5rem;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.progress-text {
    font-size: 17px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 10px;
    color: #2563eb;
    background-color: #bfdbfe;
    font-family: 'Roboto', sans-serif;    
}
.progress-percent {
    font-size: 17px;
    font-weight: 600;
    color: #2563eb;
    font-family: 'Roboto', sans-serif;
}
.progress-bar-wrapper {
    background-color: #e5e7eb;
    border-radius: 10px;
    height: 5px;
}
.progress-bar {
    width: 0;
    height: 100%;
    background-color: #2563eb;
    border-radius: 10px;
    transition: width 0.3s ease-in-out;
}
.warnings {
    margin-top: 10px;
    color: #dc2626;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
}
.download-links {
    margin-top: 15px;
}
.download-link-container {
    margin-top: 5px;
}
.filename {
    color: #333333!important;
    font-family: 'Roboto', sans-serif!important;
    font-weight:bold!important;
    font-size:17px!important;
    display:inline;
}
.download-link {
    display: inline;
    color: #2563eb;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight:700;
    font-size:18px;
}
.download-link:hover {
    text-decoration: underline;
}
.size-saved {
    margin-top: 1rem;
    color: #16a34a;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    font-size:17px;
}
.hidden {
    display: none;
}

/*Features*/
#features {
    width:80%;
    margin: 80px auto;    
}
#features h2 {
    font-size: 32px;
    color: #000000;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    line-height: 1.1em;       
}
.featuresmain {
    margin: 20px auto 0px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}
.featuresmain div {
    width: 33.33%;
    padding: 40px 20px 20px 20px;
    box-sizing: border-box;;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin: 15px 15px 0px 15px;
    background-color: #0055d4;
}
.featuresmain i {
    color: #ffffff;
    font-size: 50px;
    text-align: center;
}
.featuresmain div h3 {
    text-align: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    font-family:'Poppins', sans-serif;
    margin:10px 0px 0px 0px;
}
.featuresmain div p {
    font-size: 17px;
    line-height: 1.5em;
    text-align: center;
    font-family:'Roboto', sans-serif;
    color: #eeeeee;
}

/*Why Compress*/
#whycompress {
    width:80%;
    margin:80px auto;    
}
#whycompress h2 {
    font-size: 32px;
    color: #000000;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    line-height: 1.1em;     
}
#whycompress h3 {
    font-size: 20px;
    color: #555555;
    font-family: 'Poppins', sans-serif;
    text-align: left;     
}
#whycompress p {
    color: #333333;
    font-size: 17px;
    font-family: 'Roboto', sans-serif;  
    text-align: left;
    line-height: 1.5em;
}

/*FAQs*/
#faqs {
    width:50%;
    margin:80px auto;    
}
#faqs h2 {
    font-size: 32px;
    color: #000000;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    line-height: 1.1em;     
}
#faqs p.questions {
    color: #000000;
    font-size: 18px;
    background-color:#eeeeee;
    padding:10px;
    font-weight:500;
}
#faqs p {
    color: #333333;
    font-size: 17px;
    font-family: 'Roboto', sans-serif;  
    text-align: left;
    line-height: 1.5em;
}

/*Contact*/
#contact {
    width:100%;
    box-sizing: border-box;
    padding: 40px;
    display: flex;
    justify-content: center;
    height: 300px;
    background-color: #0055d4;
    border-radius: 10px;
    align-items: center;
    flex-direction: column;
    margin-top:80px;
}
#contact h2 {
    font-size: 32px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0px;
    line-height: 1.1em;
}
#contact p {
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    color: #dddddd;
    line-height: 1.5em;
}
#contact a {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    color: #0055d4;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 20px;
    transition: all ease-in 0.3s;
}
#contact a:hover {
    opacity: 0.8;
}

/*Footer*/
#footer {
    width:70%;
    padding:5px;
    box-sizing: border-box;
    margin: auto;
}
#footer p {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #333333;  
    text-align: center;
    line-height:1.5em;   
}
#footer a {
    color:#000000;
}
#footer p#privacy {
    font-size:13px!important;
    color:#555555;
    line-height:1.5em;
}

/*Responsive*/
@media all and (min-width:360px) and (max-width:1279px) {
/*Header*/
header {
    display:none;
    }
#headermobile {
    display:flex;
    }

/*Top Section*/
.topsection {
    padding: 20px;
    height: 80vh;
}
.topsection h1 {
    font-size: 40px;
    text-align:center;
}
.topsection p {
    text-align:center;
    font-size: 25px;
}
.topsection a {
    padding: 16px;
    font-size: 20px;
}

/*Image Compression Container*/
.container {
    width: 100%;
    margin:80px auto 0px auto;
}
.container h2 {
    font-size: 32px;
    color: #000000;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    line-height: 1.1em;
}

/*Features*/
#features {
    width:100%;
}
.featuresmain {
    margin: 0px auto 0px auto;
    flex-direction: column;
}
.featuresmain div {
    width: 100%;
}

/*Why Compress*/
#whycompress {
    width:100%;  
}

/*FAQs*/
#faqs {
    width:100%;
    margin:80px auto;    
}

/*Contact*/
#contact {
    width:100%;
    height:400px;
}
#contact h2 {
    text-align: center;
}
#contact p {
    text-align: center; 
    font-size:20px;
}
#contact a {
    font-size: 17px;
    text-align:center;
}

/*Footer*/
#footer {
    width:100%;
}
}
