:root {
  --color-brand--1: #ffb545;
  --color-brand--2: #00c46a;
  --color-brand--3: #0edb7d;

  --color-dark--1: #2d3439;
  --color-dark--2: #42484d;
  --color-light--1: #aaa;
  --color-light--2: #ececec;
  --color-light--3: rgb(214, 222, 224);
}

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

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--color-light--2);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overscroll-behavior-y: none;

  background-color: #fff;
  padding: 2.5rem;

  display: flex;
}

/* GENERAL */
a:link,
a:visited {
  color: var(--color-brand--1);
}

/* SIDEBAR */
.sidebar {
  flex-basis: 50rem;
  background-color: var(--color-dark--1);
  padding: 3rem 5rem 4rem 5rem;
  display: flex;
  flex-direction: column;
}

.sidebar__description p {
    font-size: 1.8rem;
    line-height: 3.5rem;
    font-weight: 600;
    color: var(--color-light--3);
    margin-bottom: 5rem;
}

.download_btns h3{
  font-size: 2rem;
  text-align: center;
}
.download_links a{
  text-decoration: none;
}
.download_links{
    max-width: 380px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2rem 0;
    margin: auto;
}
.google-play-coming-soon{
    font-size: 1.3rem;
    text-align: center;
    color: var(--color-light--1);
}
.auto-cursor{
  cursor: auto;
}
.privacy-policy{
  text-align: center;
}
.logo {
  display: inline-block;
  text-decoration: none;
  align-self: center;
  margin-bottom: 4rem;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

.logo:hover {
  opacity: 0.7;
}

.logo img {
  height: 5.2rem;
}

.main::-webkit-scrollbar {
  width: 0;
}

.main {
  flex: 1;
  min-height: 100%;
  background-color: var(--color-light--1);
  display: flex;
  flex-direction: column;
}

.form {
  background-color: var(--color-dark--2);
  border-radius: 5px;
  padding: 4.5rem 2.75rem;
  margin: 1.75rem;

  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem 2.5rem;

  /* Match height and activity boxes */
  transition: all 0.5s, transform 1ms;
}

.form.hidden {
  transform: translateY(-30rem);
  height: 0;
  padding: 0 2.25rem;
  margin-bottom: 0;
  opacity: 0;
}

.form__row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form__row--hidden {
  display: none;
}

.form__label {
  flex: 0 0 50%;
  font-size: 1.5rem;
  font-weight: 600;
}

.form__input {
  width: 100%;
  padding: 0.3rem 1.1rem;
  font-family: inherit;
  font-size: 1.4rem;
  border: none;
  border-radius: 3px;
  background-color: var(--color-light--3);
  transition: all 0.2s;
}

.fileupload {
  border: 3px dashed var(--color-light--3);
  border-radius: 6px;
  display: grid;
  text-align: center;
  padding: 3rem 0.2rem;
  position: relative;
  margin: 2rem 6.5rem;
  background-color: rgba(0,0,0,0.12);
}

.fileupload:hover {
  cursor: pointer;
  opacity: 0.68;
}

.fileupload__icon {
  margin-bottom: 1.2rem;
}
.fileupload__icon img {  
  width: 9rem;
  height: auto;
}

.fileupload__hide {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0px;
  top: 0px;
}

.form__input:focus {
  outline: none;
  background-color: #fff;
}

.form__btn {
  border: none;
  background-color: var(--color-brand--2);
  padding: 1.4rem 4rem;
  border-radius: 5rem;
  color: var(--color-light--3);
  font-size: 1.8rem;
}

.form__btn:hover {
  cursor: pointer;
  background-color: var(--color-brand--3);
  color: white;
}

.img__wrap {
  margin: 0 1.75rem 1.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  position: relative;
  min-height: 250px;
}

#photo {
  position: relative;
}

.img__wrap img {
  width: auto;
  max-height: 440px;
  max-width: 100%;
  position: relative;
}

.img__download {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  background: rgba(0,0,0,0.7);
}

.img__download:hover {
  background: rgba(0,0,0,0.9);
}

.img__download img {
  width: 25px;
}

.hidden {
  display: none;
}

#loading.spinner {
    margin: auto;
    left: 50%;
    top: 50%;
    position: absolute;
    z-index: 19 !important;
    animation: loading 1s linear infinite;
}

#loading.spinner .spinner__icon {
    width: 40px;
    height: 40px;
    border:  solid 4px transparent;
    border-top-color: var(--color-dark--2) !important;
    border-left-color: var(--color-dark--2) !important;
    border-radius: 50%;
}

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

.copyright {
  margin-top: auto;
  font-size: 1.3rem;
  text-align: center;
  color: var(--color-light--1);
}

.image-list {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
}

.image-item {
  width: calc(50% - 40px);
  height: 250px;
  margin: 20px;
}

.image-item {
 background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.mail-link:link,
.mail-link:visited {
  color: var(--color-light--1);
  transition: all 0.2s;
}

.mail-link:hover,
.mail-link:active {
  color: var(--color-light--2);
}

.image-list__wrap {
  width: 100%;
}

.filter {
  display: flex;
  align-items: center;
  padding: 10px 20px;
}
.filter span {
  margin-right: 10px;
  font-size: 16px;
  color: #000;
}
.switch {
  display: inline-flex;
  margin: 0 10px;
}
.switch input[type=checkbox] {
  height: 0;
  width: 0;
  visibility: hidden;
}
.switch input[type=checkbox]:checked + label {
  background: var(--color-brand--2);;
}
.switch input[type=checkbox]:checked + label::after {
  left: calc(100% - 4px);
  transform: translateX(-100%);
}
.switch label {
  cursor: pointer;
  width: 48px;
  height: 24px;
  background: grey;
  display: block;
  border-radius: 24px;
  position: relative;
}
.switch label::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 16px;
  transition: 0.3s;
}

/* Responsive */
@media only screen and (max-width: 1080px) {
  html {
    font-size: 50%;
  }
  body {
    flex-direction: column;
    padding: 0;
  }
  .sidebar {
    flex-basis: 0;
  }
  .copyright {
    margin-top: 4rem;
  }
}
@media only screen and (max-width: 667px) {
  .sidebar__description p {
    font-size: 1.6rem;
    line-height: 3rem;
  }
  .fileupload {
    margin: 2rem 3.5rem;
  }
}