* {
  margin: 0px;
  box-sizing: border-box;
}

#fbox {
  background-color: #4286f5;
  width: 100%;
  height: 15vh;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

#ifbox {
  position: relative;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  /* border: 2px solid black; */
  width: auto;
  height: 8vh;
}

#txt {
  font-family: sans-serif;
  color: white;
  /* margin-right: 20px;
      margin-left: 2%; */
  position: absolute;
  left: 51%;
  line-height: 8vh;
  transform: translate(-190%, 0%);
}

#search {
  padding: 5px 20px;
  font-size: 15px;
  border: none;
  outline: none;
  border-radius: 5px;
  color: rgb(51, 51, 51);
  /* margin-right: 20px; */
  position: absolute;
  left: 51%;
  top: 2vh;
  height: 4vh;
  transform: translate(-50%, 0%);
}

#search:focus {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

#submit {
  /* width: 20%; */
  background-color: #2c5aa5;
  color: white;
  font-family: sans-serif;
  padding: 7px 30px;
  font-size: 15px;
  border-radius: 5px;
  position: absolute;
  left: 51%;
  transform: translate(120%, 0%);
  top: 2vh;
  height: 4vh;
}

#submit:hover {
  background-color: #25416d;
}

#sbox {
  /* border: 2px solid red; */
  width: 100%;
  height: 80vh;
}

#simg {
  height: 40vh;
  width: auto;
  top: 12vh;
  position: relative;
  left: 50%;
  transform: translate(-50%, 0%);
}

#tbox {
  width: 100%;
  height: 5vh;
  background-color: #4286f5;
}

#foot {
  font-family: sans-serif;
  color: white;
  line-height: 5vh;
  display: block;
  text-align: center;
  font-size: small;
}

#tf {
  color: rgb(100, 100, 100);
  font-family: sans-serif;
  font-size: x-large;
  text-align: center;
  height: 4vh;
  /* border: 2px solid black; */
  top: 18vh;
  position: relative;
}

#ts {
  color: grey;
  font-family: sans-serif;
  font-size: large;
  text-align: center;
  height: 4vh;
  /* border: 2px solid black; */
  top: 20vh;
  position: relative;
}

#tt {
  color: grey;
  font-family: sans-serif;
  font-size: xx-large;
  text-align: center;
  height: 6vh;
  /* border: 2px solid black; */
  top: 20vh;
  position: relative;
  font-weight: 600;
}

#lres {
  /* border: 2px solid red; */
  height: 72vh;
  width: 63vw;
  display: inline-block;
  margin: 4vh 4vw;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

#rres {
  /* border: 2px solid black; */
  display: inline-block;
  height: 80vh;
  width: 33vw;
  left: 67vw;
  position: absolute;
}

#cert {
  position: relative;
  width: 100%;
  height: auto;
}

#stamp {
  width: 10vw;
  height: 20vh;
  /* border: 2px solid green; */
  /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23); */
  left: 50%;
  position: relative;
  transform: translate(-50%, 0%);
  top: 10%;
  border-radius: 5px;
}

#user {
  width: auto;
  height: 16vh;
  top: 2vh;
  position: relative;
  left: 50%;
  transform: translate(-50%, 0%);
}

#down {
  width: 15vw;
  height: 5vh;
  top: 20vh;
  position: relative;
  left: 50%;
  transform: translate(-50%, 0%);
  /* border: 2px solid red; */
  background-image: linear-gradient(90deg, #396afc, #2948ff);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  border-radius: 20px;
  color: white;
  font-family: sans-serif;
  line-height: 5vh;
  text-align: center;
}

#ctext {
  /* border: 2px solid red; */
  width: 24vw;
  height: 3vh;
  position: relative;
  left: 50%;
  transform: translate(-50%, 0%);
  top: 13vh;
  font-family: sans-serif;
  color: rgb(46, 46, 46);
  margin-bottom: 2vh;
  font-size: small;
  text-align: center;
}

#down:hover {
  cursor: pointer;
}

@media screen and (max-width: 450px) {
  #fbox {
    height: 25vh;
  }

  #ifbox {
    width: 100vw;
    /* border: 2px solid black; */
    height: 20vh;
  }

  #txt {
    left: 50%;
    transform: translate(-50%, 0%);
    top: 0vh;
    font-size: small;
  }

  #search {
    left: 50%;
    transform: translate(-50%, 0%);
    top: 7vh;
    width: 60vw;
    font-size: small;
  }

  #submit {
    left: 50%;
    transform: translate(-53%, 0%);
    top: 13vh;
    font-size: x-small;
  }

  #sbox {
    height: 70vh;
  }

  #simg {
    height: 30vh;
  }

  #tf {
    font-size: small;
    padding: 2px;
  }

  #ts {
    font-size: x-small;
    padding: 2px;
    top: 18vh;
  }

  #tt {
    font-size: large;
  }

  #lres {
    height: 32vh;
    width: auto;
    display: block;
    top: 30vh;
    position: relative;
    /* border: 2px solid red; */
  }

  #rres {
    /* border: 2px solid black; */
    height: 30vh;
    top: 25vh;
    width: 100vw;
    left: 0;
    display: block;
  }

  #ctext {
    position: relative;
    left: 54vw;
    top: -10vh;
    /* border: 2px solid red; */
    font-size: xx-small;
    width: 60vw;
  }

  #stamp {
    /* border: 2px solid red; */
    left: 16vw;
    height: 13vh;
    top: 7vh;
    width: 20vw;
  }

  #user {
    height: 10vh;
  }

  #down {
    font-size: xx-small;
    width: 90vw;
    height: 5vh;
    left: 43vw;
    top: -6vh;
  }
}
