@keyframes handshake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px) rotate(-5deg);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px) rotate(5deg);
  }
}
a {
  text-decoration: none;
  color: #000;
}
body {
  font-family: Arial, sans-serif;
  margin: 0px;
  text-align: center;
  background-color: #ffffff;
  overflow: hidden;
}
html,
body {
  touch-action: manipulation;
  overflow: hidden;
}
input[type="text"] {
  width: 300px;
  height: 32px;
  padding: 5px;
  margin-top: 15px;
  border: 0px solid;
  border-bottom: 2px solid #000;
  border-radius: 0px;
  position: relative;
  font-size: 24px;
  color: firebrick;
  box-sizing: border-box;
  outline: none;
}
input[type="text"]:focus {
  background-color: antiquewhite;
}
#addInput {
  position: absolute;
  border: none;
  background-color: saddlebrown;
  color: white;
  font-size: 32px;
  line-height: 1;
  text-align: center;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 99;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 0px);
  padding: 0;
}
#addInput:hover {
  background-color: rgb(186, 115, 64);
}
#submit {
  padding: 10px 20px;
  border: none;
  background-color: black;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 99;
  position: absolute;
  bottom: 10px;
  right: 0;
  transform: translate(-50%, 0px);
}
#submit:hover {
  background-color: rgb(75, 75, 75);
}
button:hover {
  background-color: #4cae4c;
}

.bouncing {
  animation: shake 0.8s infinite;
  font-size: 24px;
  display: inline-block;
  z-index: 1;
}
#replayButton {
  padding: 10px 20px;
  border: none;
  background-color: #ffffff;
  color: #aaaaaa;
  cursor: pointer;
  margin: 20px auto;
  position: fixed;
  bottom: 20px;
  right: 40px;
  width: 200px;
  height: 150px;
  border-radius: 50%;
  z-index: 99;
  background-image: url("./btn_replay.svg");
  background-repeat: no-repeat;
  background-size: 50%;
  background-position: 50%;
}

#replayButton:hover {
  background-image: url("./btn_replay.svg");
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: 50%;
}

.container {
  z-index: 9;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, 0px);
}
.imgContainer {
  position: relative;
  border: 0px solid;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  background-color: #d0dde8;
  /* box-shadow: 0 5px 4px 2px rgba(0, 0, 0, 0.5); */
}

.border {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 5;
  top: 0;
  /* border: 15px solid #a6ceef; */
  box-sizing: border-box;
}
.clocheCook {
  width: 1000px;
  /* border: 2px solid; */
  height: 100%;
  position: relative;
  margin: 0 auto;
  display: flex;
  justify-items: center;
}
#lid,
#plate {
  width: 70vw;
  position: absolute;
}
#lid {
  z-index: 9;
  top: 200px;
  width: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.plateBox {
  width: 1000px;
  height: 320px;
  position: relative;
  /* border: 5px solid; */
  top: 500px;
  left: 50%;
  transform: translate(-50%, -50%);
}

#plate {
  width: 100%;
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#result {
  font-size: 24px;
  color: #333;
  top: 220px;
  position: absolute;
  background-color: white;
  box-shadow: 3px 3px 10px 0px black;
  z-index: 9;
  left: 50%;
  max-width: 500px;
  transform: translate(-50%, -50px);
  padding: 0 10px;
}
#catspaw {
  top: 175px;
  width: 1100px;
  left: -20px;
  position: absolute;
  z-index: 0;
}
.handshake {
  animation: handshake 0.8s infinite;
}
#inputContainer {
  z-index: 99;
  position: relative;
  width: 400px;
  height: 100%;
  background: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -20%) rotate(-5deg);
  padding: 15px 15px 100px 15px;
  transform: translate(-50%, -20%) rotate(-5deg);
  border-top: 5px solid saddlebrown;
  border-bottom: 5px solid saddlebrown;
}

#inputContainer h1 {
  font-size: 18px;
  font-weight: lighter;
  text-transform: uppercase;
}
#lid.final-position {
  top: 130px;
  transform: rotate(-7deg);
  transition: top 0.2s ease-in-out;
  z-index: 99;
}

#plate.final-position {
  bottom: 0;
}

.copyright {
  position: fixed;
  bottom: 10px;
  background: #bce0ff;
  text-align: center;
 left: 35%;
  font-size: 12px;
  z-index: 99;
}

.titleBox {
  /* background-color: #cbe7ff; */
  width: 100%;
  height: 500px;
  top: 0;
  left: 0;
  position: absolute;
}

.titleBox p {
  font-size: 28px;
  z-index: 9999;
  position: absolute;
  width: 100vw;
  text-align: right;
  top: 0px;
  right: 40px;
  margin: 10px 0;
  /* left: 50%; */
  /* transform: translate(-50%, 0); */
}
.titleBox p span {
  background-color: #bce0ff;
  padding: 0 4px;

  margin: 0;
  display: inline-block;
}
/* @media only screen and (max-width: 1200px) and (max-height: 700px)  */
@media only screen and (max-width: 1400px) {
  #catspaw {
    width: 1000px;
  }
}
@media only screen and (max-width: 1200px) {
  #catspaw {
    width: 900px;
    top: 200px;
  }
}
@media only screen and (max-width: 1100px) {
  .clocheCook {
    width: 800px;
  }
  .plateBox {
    width: 800px;
    top: 475px;
  }
  #catspaw {
    top: 220px;
    width: 800px;
  }
  #result {
    top: 180px;
  }
}
@media only screen and (max-width: 1000px) {
  #catspaw {
    top: 280px;
    width: 700px;
  }
}
@media only screen and (max-width: 800px) {
  .titleBox p {
    right: 20px;
  }
  .clocheCook {
    width: 700px;
  }
  .plateBox {
    width: 700px;
    top: 460px;
  }
  #catspaw {
    top: 250px;
    width: 600px;
  }
  #result {
    top: 155px;
  }
}
@media only screen and (max-width: 700px) {
  .clocheCook {
    width: 600px;
  }
  .plateBox {
    width: 600px;
    top: 450px;
  }
  #catspaw {
    top: 200px;
    width: 600px;
  }
  #result {
    top: 135px;
  }
}
@media only screen and (max-width: 600px) {
  .titleBox p {
    right: 20px;
  }
  .titleBox {
    top: 20px;
  }
  .clocheCook {
    width: 500px;
  }
  .plateBox {
    width: 500px;
    top: 435px;
  }
  #catspaw {
    top: 200px;
    width: 500px;
  }
  #result {
    top: 115px;
  }
  #lid.final-position {
    top: 200px;
  }
  .container {
    top: 200px;
  }
  #replayButton {
    width: 150px;
    height: 100px;
    left: 20px;
    right: initial;
  }
  
}
@media only screen and (max-width: 500px) {
  .titleBox {
  }
  .clocheCook {
    width: 400px;
  }
  .plateBox {
    width: 400px;
    top: 420px;
  }
  #catspaw {
    top: 200px;
    width: 400px;
  }
  #result {
    top: 100px;
    font-size: 20px;
  }
  .container {
    top: 170px;
  }
  #inputContainer {
    width: 320px;
    padding: 20px 20px 100px 20px;
  }
  input[type="text"] {
    font-size: 20px;
    width: 280px;
  }
}
@media only screen and (max-width: 400px) {
  body,
  .imgContainer,
  .border {
    overflow-y: hidden;
  }
  #inputContainer {
    width: 280px;
    padding: 20px 20px 150px 20px;
  }
  #addInput {
    bottom: 80px;
  }
  input[type="text"] {
    font-size: 20px;
    width: 240px;
  }
  .clocheCook {
    width: 300px;
  }
  .plateBox {
    width: 300px;
    top: 450px;
  }
  #catspaw {
    top: 250px;
    width: 300px;
  }
  #lid {
    top: 245px;
  }
  #result {
    top: 80px;
    font-size: 18px;
  }
  .titleBox p {
    right: 20px;
    top: 1%;
  }
  .copyright {
    left: initial;
  }
  .titleBox p span {
    margin: 0 -1px;
  }
   #replayButton {
        width: 90px;
        height: 80px;
        left: 20px;
        right: initial;
    }
  
}


