*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

/* 
      Custom Scroll Bars
*/
/* width */
::-webkit-scrollbar {
  width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
  background: hsl(120, 5%, 80%);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: hsl(120, 5%, 60%);
  border: hsl(120, 5%, 20%) 1px solid;
  border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: hsl(120, 5%, 90%);
}

@font-face {
  font-family: 'Lobster';
  src: url(./fonts/lobster/Lobster-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}

:root {
  --header-height: 150px;
}

/* 
      Remove Spinners from input[type='number']
*/
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
}

body {
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  border-bottom: black 2px solid;
  background: hsl(30, 30%, 70%);
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

h1 {
  text-align: center;
  white-space: nowrap;
  margin-bottom: 10px;
}

/* 
            Image size inputs
*/

.imageSize {
  display: flex;
  height: fit-content;
  justify-content: space-around;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.imageSize div {
  width: fit-content;
  padding: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.imageSize label {
  width: 60px;
  margin: 0 5px;
  text-align: right;
  font-weight: 700;
  letter-spacing: .7px;
}

.imageSize input {
  width: 70px;
  padding: 1px 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
}

.imageSize input:focus {
  outline: 2px solid black;
}

@media screen and (max-width: 350px) {
  :root {
    --header-height: 42.857vw;
  }
}

@media screen and (max-width: 400px) {

  .imageSize {
    max-width: 450px;
  }

  h1 {
    font-size: 8vw;
  }

  .imageSize label {
    width: 15vw;
    margin: 0 1.25vw;
    letter-spacing: .16vw;
    font-size: 4vw;
  }

  .imageSize input {
    width: 17.5vw;
    padding: .25vw 2vw;
    font-size: 4.5vw;
    letter-spacing: .25vw;
    border-radius: 1vw;
  }

  .imageSize input:focus {
    outline: .5vw solid black;
  }
}

@media screen and (max-width: 500px) {
  h1 {
    margin-bottom: 2vw;
  }
}

/* 
      Buttons: download, view pics, copy to clipboard
*/

#buttons {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 450px;
  margin: auto;
  --hover-size: 1;
}

button,
svg {
  margin: 10px;
  padding: 3px 7px;
}

button {
  font-weight: 700;
  background-color: white;
  outline: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: .4s;
  margin: 0 30px;
  white-space: nowrap;
}

button:hover {
  color: white;
  background: black;
}

svg {
  width: 35px;
  height: 35px;
  cursor: context-menu;
  color: black;
  margin: 0;
  opacity: .1;
  flex-shrink: 0;
}

#clipContainer {
  width: fit-content;
  height: fit-content;
  position: absolute;
  right: 10%;
}

svg:hover {
  color: black;
  transform: scale(var(--hover-size));
  transition: .3s;
}

#download {
  width: 37px;
  height: 32px;
  margin-left: 3px;
}

@media screen and (max-width: 400px) {

  button,
  svg {
    margin: 2.5vw;
    padding: .75vw 1.74vw;
  }

  button {
    border-radius: 1.25vw;
    font-size: 4vw;
    margin: 0 7.5vw;
  }

  svg {
    width: 8.75vw;
    height: 8.75vw;
  }

  #download {
    width: 9.25vw;
    height: 8vw;
    margin-left: .75vw;
  }
}





.please-wait-div {
  display: none;
  position: absolute;
  left: 50%;
  top: 250px;
  transform: translateX(-50%);
  white-space: nowrap;

}

.please-wait-div p {
  font-family: 'Lobster';
  font-size: 60px;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
}

.percentDisplay {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
}

.bar {
  position: relative;
}

.loading-bar-back,
.loading-bar-front {
  border: none;
  position: absolute;
  height: 8px;
  width: 100%;
  border-radius: 5px;

}

.loading-bar-back {
  background-color: lightgrey;
}

.loading-bar-front {
  background-color: hsl(30, 30%, 30%);
  width: 0%;
  transition: width 0.5s;
}

@media screen and (max-width: 600px) {
  .please-wait-div {
    top: calc(var(--header-height) + 16vw);
  }

  .please-wait-div p {
    font-size: 10vw;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 6.667vw;
  }

  .percentDisplay {
    font-size: 5vw;
  }

  .loading-bar-back,
  .loading-bar-front {
    height: 8px;
    width: 100%;
    border-radius: 5px;
  }

  .loading-bar-front {
    background-color: hsl(30, 30%, 30%);
    width: 0%;
  }
}

/*
                ImageContainer
*/
#whatIsIt {
  width: 90vw;
  max-width: 700px;
}

.imageContainer #whatIsIt h2 {
  font-family: 'Lobster';
  text-align: center;
  font-size: 35px;
  margin: 25px;
}

.imageContainer #whatIsIt {
  font-size: 20px;
  letter-spacing: 1px;
}

@media screen and (max-width: 500px) {

  .imageContainer #whatIsIt h2 {
    font-size: 7vw;
    margin: 5vw;
  }

  .imageContainer #whatIsIt {
    font-size: 4vw;
    letter-spacing: .2vw;
  }
}

main {
  width: 100%;
  height: calc(100vh - var(--header-height));
  margin-top: calc(var(--header-height) + 5px);
  overflow-x: hidden;
}

.imageContainer {
  display: flex;
  width: 100vw;
  height: fit-content;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding-bottom: 5vh;
}

.image {
  position: relative;
  display: inline-block;
  height: fit-content;
  flex-shrink: 2;
  margin: 0 2px;
}


.imageContainer input {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 10%;
  height: 10%;
}


/*
        anything above 1800px not covered
        by the breakpoints set below
*/
img {
  width: 12.2vw;
}

/* anything below 1800px */
@media screen and (max-width: 1800px) {
  img {
    width: 14vw;
  }
}

/* anything below 1500px */
@media screen and (max-width: 1500px) {
  img {
    width: 16.3vw;
  }
}

/* anything below 1200px */
@media screen and (max-width: 1200px) {
  img {
    width: 19.5vw;
  }
}

/* anything below 900px */
@media screen and (max-width: 900px) {
  img {
    width: 24.2vw;
  }
}

/* anything below 600px */
@media screen and (max-width: 600px) {
  img {
    width: 32vw;
    height: auto;
  }
}

/* anything below 520px */
@media screen and (max-width: 520px) {
  .imageContainer #whatIsIt h2 {
    font-size: 6.731vw;
  }

  .imageContainer #whatIsIt p {
    font-size: 4.231vw;
  }
}

/* anything below 400px */
@media screen and (max-width: 400px) {
  img {
    width: 48vw;
    height: auto;
  }
}

/* anything above 300px */
@media screen and (max-width: 200px) {
  img {
    width: 98vw;
    height: auto;
  }

}





@media screen and (max-width: 550px) {
  .please-wait-div {
    margin-top: 4vw;
  }

  .please-wait-div p {
    font-size: 10.909vw;
    text-shadow: .727vw .727vw 1.455vw rgba(0, 0, 0, 0.5);
    margin-bottom: 7.273vw;
    ;
  }

  .percentDisplay {
    font-size: 5.455vw;
  }

  .loading-bar-back,
  .loading-bar-front {
    height: 1.455vw;
    border-radius: .909vw;
  }
}















/* anything below 480px */
@media screen and (max-width: 520px) {
  /* h1 {
    font-size: 6.667vw;
  }

  .imageSize div {
    display: flex;
    justify-content: space-between;
    width: 35vw;
    padding: .769vw;
  }

  .imageSize label {
    width: 25vw;
    margin: 0 .962vw;
    letter-spacing: .18vw;
  }

  .imageSize input {
    width: 13.462vw;
    padding: .192vw 1.538vw;
    font-size: 3.462vw;
    letter-spacing: .192vw;
    border-radius: .769vw;
  }

  .imageSize input:focus {
    outline: .385vw solid black;
  } */
}

@media screen and (max-width: 380px) {
  /* h1 {
    font-size: 25.335px;
  } */
}