* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: 'Comfortaa', cursive;
  background: #eee;
  letter-spacing: 0.25em;
  overflow: auto;
}

.gameTitle {
  text-align: center;
  margin-top: 2em;
}

h1 {
  color: #F87060;
  font-weight: 700;
  position: relative;
  padding-top: 150px;
}

.partOne {
  color: #4392F1;
}

form {
  width: 380px;
  margin: 3em auto;
  padding: 4em 2em 1em 2em;
  background: #FFFFFF;
  border-radius: 30px 30px 30px 30px;
  box-shadow: 0px 2px 1px -1px #ffffff;
}

.infoCard {
  position: relative;
  margin-bottom: 25px;
}

.nameField {
  font-size: 16px;
  padding: 10px 10px 10px 10px;
  display: block;
  color: #4392F1;
  width: 100%;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #4392F1;
  letter-spacing: 0.25em;
}

.nameField:focus {
  outline: none;
  border-radius: 20px 20px 20px 20px;
  border: solid 2px #4392F1;
  transition: all 0.3s ease;
}

.nameFieldInput{
  font-size: 16px;
  padding: 10px 10px 10px 10px;
  display: block;
  color: #4392F1;
  width: 100%;

}

::placeholder {
  font-size: 18px;
  color: #999999;
  font-family: inherit;
  letter-spacing: 0.25em;
}

/* Button */
.button {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  margin: .3em 0 1em 0;
  width: 100%;
  vertical-align: middle;
  color: #ffffff;
  font-size: 18px;
  line-height: 20px;
  text-align: center;
  font-family: 'Comfortaa', cursive;
  font-weight: 600;
  border: 0;
  border-radius: 20px 20px 20px 20px;
  cursor: pointer;
  transition: all 0.5s ease;
  background-color: #4392F1;
  box-shadow: 0px 3px 3px -2px #4392F1;
}

.button:focus {
  outline: 0;
}

.button:hover {
  background-color: #EF233C;
  color: #00131E;
  font-weight: 700;
  opacity: 0.7;
  transition: opacity 0.2s;
  box-shadow: 0px 5px 5px -3px #EF233C;
}

.errorShake {
  position: relative;
  animation: shake .1s linear;
  animation-iteration-count: 5;
  border-bottom: solid 3px #EF233C !important;

}

/* The Game Result Summary Modal (background) */
.modalBox {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);

}

/* Game Result Summary Modal Content */
.intro-content {
  background-color: #ffffff;
  margin: 15% auto;
  padding: 20px;
  border: 5px solid #4392F1;
  max-width: 40%;
  max-height: 40%;
  min-width: 500px;
  min-height: 500px;
  text-align: center;
  border-radius: 35px 35px 35px 35px;
  word-wrap: break-word;
  font-size: 18px;
  font-weight: 200;
  box-shadow: 0px 5px 5px -3px #4392F1;
}

.welcome {
  font-size: 18px;
  font-weight: 600;
}

.partTwo {
  color: #EF233C;
}

.modalTitle {
  text-align: center;
  margin-top: 0.2em;
  font-weight: 700;
  position: relative;
  padding-top: 20px;
}

.orange{
  color: #EF233C;
}

h3 {
  text-align: left;
  color: #EF233C;
}

.instruction {
  text-align: justify;
  line-height: 1.5;
  font-weight: 400;
  font-size: 16px;
}

.luck {
  color: #EF233C;
  font-weight: 700;
}
.modalButton {
  border-radius: 20px 20px 20px 20px;
  background: #4392F1;
  outline: none;
  color: #ffffff;
  padding: 10px 30px;
  margin: 20px 10px;
  vertical-align: middle;
  font-size: 18px;
  box-shadow: 0px 5px 5px -3px #4392F1;
  border: none;
}

.modalButton:focus {
  outline: 0;
}

.modalButton:hover {
  background-color: #EF233C;
  color: #00131E;
  opacity: 0.7;
  transition: opacity 0.2s;
  box-shadow: 0px 5px 5px -3px #EF233C;
  cursor: pointer;
}



@keyframes shake {
  40%, 60% {
    transform: translate3d(4px, 0, 0);
}
