:root {
  --large-text-size: 20px;
  --medium-text-size: 15px;
  --small-text-size: 14px;

  --title-font-size: 36px;
  --main-text-color: #FEE39F;
  --background-color: #264653;
  --container-background-color: #385370;
  --border-color: #14202D;
  --box-shadow: -5px 10px var(--border-color);
  --primary-button-color: #C373E8;
  --primary-button-color-hover: #9B58B9;
  --secondery-button-color: #8087EA;
  --secondery-button-color-hover: #6369BF;
}

html {
  height: 100vh;
  background: var(--background-color);
}

body {
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.header > .top_row {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
}

.header .switch_page {
  font-family: 'Poppins', sans-serif;
  color: var(--main-text-color);
  font-size: var(--large-text-size);
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

.header h1 {
  font-size: var(--title-font-size);
  color: var(--main-text-color);
  font-family: 'Ultra', serif;
  font-weight: 100;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 10px;
  margin-top: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header p {
  font-family: 'Poppins', sans-serif;
  color: var(--main-text-color);
  font-size: var(--large-text-size);
}

.panel {
  background: var(--container-background-color);
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 5px solid var(--border-color);
  box-shadow: var(--box-shadow);

}

.output.panel {
  justify-content: center;
  padding: 40px;
  margin-top: 20px;
}

.output.panel > p {
  margin-bottom: 20px !important;
}


.control.panel {
  margin-top: 20px;
  justify-content: space-around;
  padding: 20px;
}

.control.panel > * {
  margin-bottom: 10px;
}

.links {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 15px;
}

.links > div {
  display: flex;
}

.links > div > a {
  margin-top: 25px;
  font-size: var(--small-text-size);
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  color: #171321;
  text-decoration: none;
}

.links > div > a:hover {
  text-decoration: underline;
}

.gitlab_logo {
  width: 80px;
  height: 80px;
  background: url("assets/gitlab-logo.svg");
}

.img {
  width: 75vw;
  aspect-ratio: 1;
  background-size: cover;
  background-color: #fff;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background-size: cover !important;
  border: 5px solid var(--border-color);
  transition: .25s box-shadow;
  overflow: hidden;
}

.img > img {
  width: 100%;
  height: 100%;
}

.img.loaded:hover {
  cursor: pointer;
  box-shadow: var(--box-shadow);
}

body.fullscreen {
  overflow: hidden;
}

.mask.fullscreen{
  position: fixed;
  top: 0;
  left: 0;
  background: #000 !important;
  width: 100%;
  height: 100%;
  opacity: 50%;
}

.img.fullscreen {
  position: fixed;
  top: 50%;
  left: 50%;
  border-radius: 0 !important;
  transform: translate(-50%, -50%);
  border: none;
  box-shadow: none !important;
}


.img.h {
 height: 90vh !important; 
 width: 100vh !important; 
}
.img.v {
 width: 90vw !important; 
 height: 90vw !important; 
}

.img.loading {
  background: #B5B5B5 !important;
}

/* load animation */
.loading_anim {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    z-index: 101;
}

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

.loading_wrap {
  width: 80%;
  height: 30px;
  background: red;
}

.hidden {
  display: none;
}

.create {
  outline: none;
  border-radius: 30px;
  background: var(--primary-button-color);
  padding: 15px;
  border: 5px solid var(--border-color);
  color: var(--background-color);
  font-family: 'Poppins', sans-serif;
  font-size: var(--large-text-size);
  transition: box-shadow .25s;
  margin-top: 15px;
}

.create:hover {
  box-shadow: var(--box-shadow);
  cursor: pointer;
}

.input_file {
  font-family: 'Poppins', sans-serif;
}

.basic_button {
  font-family: 'Poppins', sans-serif;
  font-size: var(--medium-text-size);
  text-decoration: none;
  color: var(--background-color);
  background: var(--secondery-button-color);
  padding: 15px;
  border-radius: 30px;
  margin-top: 15px;
  transition: box-shadow .25s;
  outline: none;
  border: 5px solid var(--border-color);
}

.basic_button:hover {
  box-shadow: var(--box-shadow);
  cursor: pointer;
}

.file_upload {
  overflow: hidden;
}

.resize_select, .file_upload, .dataset_select{
  margin-bottom: 15px !important;
}

p {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 5px !important;
  margin-top: 0px;
  font-weight: bold;
  font-size: var(--large-text-size);
  color: var(--main-text-color);
  text-align: center;
}

.output_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
}

.output_container > .row {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
}


.error {
  font-size: var(--small-text-size);
  color: #8b1515;
  margin-top: 15px;
}

.time {
  margin-top: 15px;
  color: var(--main-text-color);
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  font-size: var(--small-text-size);
}


.widget {
  display: grid;
  place-items: center;
}

.quality_wrapper {
  display: flex;
  gap: 10px;
}

.quality_wrapper > p {
  font-size: var(--small-text-size);
}

@media (min-width: 769px) {
  .header  h1 {
    font-size: 50px;
  }

  .header  p {
    font-size: 30px;
  }


  .body {
    display: flex;
    justify-content: center;
    gap: 35px;
  }

  .img {
    width: 30vw;
  }

  .links {
    gap: 40px;
  }

  :root {
    --large-text-size: 27px;
    --medium-text-size: 20px;
    --small-text-size: 19px;
  }

}

@media (min-width: 1439px) {
  .img {
    width: 20vw;
  }

  .gallery_img {
    padding: 40px !important;
  }

}

@media (min-width: 1460px) {
  .gallery {
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
  }

  .gallery_img .img {
    width: 15vw !important;
  }
}

@media (max-width: 658px) {
  .top_row > h1 {
    transform: translate(-50%, 20%);
  }

  .header > p {
    margin-top: 50px;
  }
}

.publish.panel {
  margin-top: 20px;
  padding: 40px;
  gap: 15px;
}

.publish.panel > input {
  font-size: var(--large-text-size);
  font-family: 'Poppins', sans-serif;
  width: 100%;
  outline: none;
  border-radius: 30px;
  padding: 10px 20px;
  color: var(--background-color);
  border: 5px var(--border-color) solid;
  transition: .25s box-shadow;
}

.publish.panel > input:focus {
  box-shadow: var(--box-shadow);
}

.publish_buttons {
  width: 100%;
  display: flex;
  justify-content: space-around;
}

/*single image page*/
.img.large {
  margin: 15px 0 15px 0;
  cursor: pointer;
}

.img.large.fullscreen {
  width: 90vw;
}

.img_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--container-background-color);
  padding: 30px;
  border-radius: 20px;
  margin-top: 10px;
}

/* gallery page */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
}

@media (max-width: 1045px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 536px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery_img .img {
    width: 60vw !important;
  }
}

.gallery_img {
  padding: 20px;
  border-radius: 30px;
  text-decoration: none;
  justify-self: center;
  justify-content: space-between;
}

.gallery_img .img {
  width: 25vw;
  margin: 15px 0 15px 0;
  transition: scale, 0.25s;
  cursor: pointer;
}

.gallery_img .img:hover {
  transform: scale(1.1);
  box-shadow: none;
}


.gallery_img .title, .gallery_img .likes {
  color: var(--main-text-color);
  font-family: 'Poppins', sans-serif;
  font-size: var(--medium-text-size);
}


.gallery_img .likes {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery_img .likes > p {
  font-size: var(--small-text-size);
}

.gallery_img .likes > i {
  cursor: pointer;
  transition: scale, .25s;
}

.gallery_img .likes > i:hover {
  transform: scale(1.2);
}

/* .gallery_img .title { */
/*   position: absolute; */
/*   left: 50%; */
/*   transform: translateX(-50%); */
/* } */

.gallery_img .info_panel {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
