* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5fa;
}

.top-nav {
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.2);
}

.top-nav a {
    float: left;
    display: block;
    color: black;
    text-align: center;
    padding: 20px 16px;
    font-size: medium;
    text-decoration: none;
}

.top-nav a:hover {
    color: #2c64c0;
}

.top-nav a.active {
    background-color: #2c64c0;
    color: white;
}

.top-nav button {
    float: right;
    display: block;
    color: black;
    text-align: center;
    padding: 20px 16px;
    text-decoration: none;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: medium;
}

.top-nav button:hover {
    color: #2c64c0;
}

.top-nav button.active {
    background-color: #2c64c0;
    color: #ffffff;
}

.container {
    text-align: center;
    background-color: #f5f5fa;
    padding: 50px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    margin: 40px auto; 
    
}

h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 3.5em;
    text-align: center;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.input-style {
    padding: 8px ;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.Small-button-style {
    display: block;
    background-color: #1b99aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin: 10px auto;
    width: fit-content;
    width: -moz-fit-content;
}

.button-style {
    display: block;
    background-color: #1b99aa;
    color: white;
    border: none;
    padding: 30px 50px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 35px;
    margin: 10px auto;
    width: -moz-fit-content;
    width: fit-content;
}

.button-style:hover {
    background-color: #2c64c0;
}


.drop-text {
    color: #999;
    text-align: center;
}

.hidden {
    display: none;
}

.enhance-options {
    text-align: center;
    margin-top: 60px; 
    
}

.drop-text {
    color: #999;
    text-align: center;
    border: 2px dashed #ccc; /* Dashed border */
    padding: 20px; /* Some padding */
    cursor: pointer; /* Pointer cursor on hover */
}


.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100;
}

.loading-indicator.hidden {
    display: none;
}

.spinner {
    border: 4px solid rgba(0,0,0,.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.enhance-button {
    display: block;
    margin-bottom: 10px; 
    
    padding: 10px 10px;
    font-size: 0.8em;
}

.image-preview-container {
    display: inline-block;
    vertical-align: middle;
    width: 150%; 
    height: 300px; 
    margin-left: -100px;
    overflow: hidden;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
}

#image-preview {
    width: 100%;  
    height: 100%; 
    object-fit: contain; 
}

.enhancement-controls {
    display: inline-block;
    vertical-align: middle;
    width: 25%; 
    margin-left: 550px; 
    margin-top: -250px;
}

.input-style, .Small-button-style {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    margin-left: -55px;
}

.Small-button-style-enhance-button{

    display: block;
    background-color: #1b99aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin: 10px auto;
    width: fit-content;
    width: -moz-fit-content;
    margin-left: -800px;
    
    
}

.Small-button-style-enhance-button:hover , .Small-button-style:hover, .enhance-button:hover{
    background-color: #2c64c0;
}

.quality-control {
    margin: 20px 10;
    margin-top: 10px;
    margin-right: 50px;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 40%;
    height: 10px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #41baca;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #36bbb4;
    cursor: pointer;
}

.download-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -400px;
}

.download-controls button {
    margin: 0 5px;
    width: 100px;
    margin-left: -105px;
    margin-top: -120px;
}

.download-controls select{

    margin: 0 5px;
    width: 100px;
    margin-left: -400px;
    margin-top: -200px;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

iframe {
  aspect-ratio: 16/9;
}

.video-container {
  margin: 2rem;
  max-height: 300px;
}

img {
  display: block;
  max-width: 100%;
}

main {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.slider-container {
  display: grid;
  place-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  --position: 50%;
}



.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.image-before {
  position: absolute;
  inset: 0;
  width: var(--position);
  /*filter: grayscale(100%)*/
}

.Comparison-Slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
  /* for Firefox */
  width: 100%;
  height: 100%;
}

.Comparison-Slider:focus-visible ~ .slider-button {
  outline: 5px solid black;
  outline-offset: 3px;
}

.slider-line {
  position: absolute;
  inset: 0;
  width: .2rem;
  height: 100%;
  background-color: #fff;
  /* z-index: 10; */
  left: var(--position);
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-button {
  position: absolute;
  background-color: #fff;
  color: black;
  padding: .5rem;
  border-radius: 100vw;
  display: grid;
  place-items: center;
  top: 50%;
  left: var(--position);
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* z-index: 100; */
  box-shadow: 1px 1px 1px hsl(0, 50%, 2%, .5);
}

.upscale-controls {

    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 600px;
    margin-top: -150px;
    padding: 10px;
}

.upscale-controls button {
    margin: 0 5px;
    width: 100px;
    margin-left: 0px;
    margin-top: 30px;
}

.flex-container {
    display: flex;
    align-items: center; /* Vertically centers the children */
    justify-content: space-between; /* Puts maximum space between the two children */
    margin-top: -100px;
    padding: 10px;

}

.upscale-controls, .image-formats {
    display: flex;
    align-items: center; /* Aligns items vertically in the center */
    gap: 10px; /* Adds space between each item in the flex container */
}

.auth-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}


.auth-container {
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-width: 400px; 
    margin: 20px; /* Ensures there's a little space around the form on smaller screens */
    margin-left: 650px;
    margin-top: 200px;
}
  
  .auth-form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .auth-form h2 {
    margin-bottom: 20px;
  }
  
  .auth-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  .auth-form button {
    padding: 10px 20px;
    background-color: #1b99aa;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .auth-form p {
    margin-top: 20px;
  }
  
  .auth-form span {
    color: #1b99aa;
    cursor: pointer;
  }
  
  