.scratch-luck {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(../img/scratch/background.png);
  background-size: 100% 100%;
  background-position: center;
  width: 100%;
  height: 1300px;
}

.scratch-luck > .TopContainer {
  display: flex;
  flex-direction: row;
  width: 80%;
}

.scratch-luck > .TopContainer > .title {
  font-family: KozGoPr6N-Regular;
  font-size: 103px;
  line-height: 100px;
  color: #ffff00;
  margin-right: 0%;
  margin-top: 100px;
  -webkit-filter: drop-shadow(4px 0px 4px #000);
  filter: drop-shadow(4px 0px 4px #000);
  will-change: filter;
  -moz-filter: drop-shadow(4px 0px 4px #000);
}

.scratch-luck > .TopContainer > .subText {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 10%;
  margin-top: 60px;
  width: 100%;
  justify-content: flex-end;
}

.scratch-luck > .TopContainer > .subText > .text1 {
  font-family: ShinGo-Medium;
  font-size: 25px;
  line-height: 35.22px;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-align: right;
  font-weight: 500;
}

.scratch-luck > .instruction {
  display: flex;
  width: 80%;
  margin-top: 50px;
}

.scratch-luck > .instruction > .content {
  font-family: ShinGo-Medium;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 1.26px;
  color: #ffffff;
}

.scratch-luck > .instruction > .content > .highlight {
  color: #ffff00;
}

.scratch-luck > .emailForm {
  width: 100%;
  height: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.scratch-luck > .emailForm > .txt {
  font-family: HelveticaNeue;
  font-size: 22px;
  color: #ffffff;
  color: rgb(255, 255, 255);
  text-align: center;
}

.scratch-luck > .emailForm > .email {
  background-image: url(../img/scratch/emailBox.png);
  background-size: 100% 100%;
  width: 380px;
  background-repeat: no-repeat;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scratch-luck > .emailForm > .email input[type="email"] {
  width: 100%;
  outline: none;
  background-color: transparent;
  border: none;
  border-width: 0;
  box-shadow: none;
  text-align: center;
  font-family: KozGoPr6N-Medium;
}

.scratch-luck > .scratchAndItem {
  height: auto;
  width: 700px;
  margin-top: 50px;
  margin-bottom: 50px;
  position: relative;
}

.scratch-luck > .scratchAndItem > .scratch_navigation {
  position: absolute;
  top: 0%;
  left: -10%;
  width: 60px;
  height: 60px;
  animation: ScratchNavigationMov 2s infinite;
}

.scratch-luck > .scratchAndItem > .scratch_navigation > .navImg {
  background-image: url(../img/scratch/scratch_navigation.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 100%;
  height: 100%;
}

.scratch-luck > .scratchAndItem > .spotLight {
  background-image: url(../img/scratch/spot_light.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  width: 1100px;
  height: 900px;
  position: absolute;
  top: -20%;
  left: -30%;
}

.scratch-luck > .scratchAndItem > .items {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-row-gap: 50px;
  height: auto;
  margin-top: 50px;
  filter: drop-shadow(50px 20px 40px #000);
  will-change: filter;
  -moz-filter: drop-shadow(50px 20px 40px #000);
  -webkit-filter: drop-shadow(50px 20px 40px #000);
  cursor: pointer;
}

.item_cover {
  position: relative;
  display: inline-block;
  font-size: 0;
  width: 150px;
  height: 150px;
}
.item_cover img {
  width: 100%;
  height: auto;
}
.item_cover canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  cursor: pointer;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -ms-touch-action: none;
  -webkit-touch-action: none;
  -moz-touch-action: none;
  touch-action: none;

  transition: opacity 500ms ease-out 0ms, height 0ms linear 500ms;
}
.item_cover.revealed canvas {
  opacity: 0;
  height: 0;
}

.scratch-luck > .result {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  transition: all 5s ease-in-out;
}

.scratch-luck > .result > .result-content {
  margin: 15% auto;
  padding: 10px;
  width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scratch-luck > .result > .result-content > .resultImg {
  background-image: url(../img/scratch/sorry.png);
  background-size: 100% 100%;
  background-position: center;
  width: 300px;
  height: 300px;
  transform: rotate(-15deg);
}

@keyframes hidePopup {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes showPopup {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes ScratchNavigationMov {
  0% {
    top: 0%;
    left: -10%;
  }
  50% {
    top: 3%;
    left: -5%;
  }

  100% {
    top: 0%;
    left: -10%;
  }
}

@media (max-width: 800px) {
  .scratch-luck {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(../img/scratch/background.png);
    background-size: 100% 100%;
    background-position: center;
    width: 100%;
    height: 800px;
  }

  .scratch-luck > .TopContainer {
    display: flex;
    flex-direction: column;
    width: 80%;
  }

  .scratch-luck > .TopContainer > .title {
    font-family: KozGoPr6N-Regular;
    font-size: 43px;
    line-height: 40px;
    color: #ffff00;
    margin-right: 0%;
    margin-top: 50px;
  }

  .scratch-luck > .TopContainer > .subText {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 0%;
    margin-top: -5%;
    justify-content: flex-end;
    width: 100%;
  }

  .scratch-luck > .TopContainer > .subText > .text1 {
    font-family: ShinGo-Medium;
    font-size: 16px;
    line-height: 25.22px;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-align: right;
    font-weight: 500;
  }

  .scratch-luck > .instruction {
    display: flex;
    width: 80%;
    margin-top: -5%;
  }
  .scratch-luck > .instruction > .content {
    font-family: ShinGo-Medium;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 1.26px;
    color: #ffffff;
  }

  .scratch-luck > .instruction > .content > .highlight {
    color: #ffff00;
  }

  .scratch-luck > .emailForm {
    width: 100%;
    height: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

  .scratch-luck > .scratchAndItem {
    height: auto;
    width: 100%;
    margin-top: 50px;
    position: relative;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
  }

  .scratch-luck > .scratchAndItem > .spotLight {
    background-image: url(../img/scratch/spot_light.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 600px;
    position: absolute;
    top: -25%;
    right: 0%;
    left: 0%;
  }

  .scratch-luck > .scratchAndItem > .scratch_navigation {
    position: absolute;
    top: -10%;
    left: 14%;
    width: 50px;
    height: 50px;
    animation: ScratchNavigationMov 2s infinite;
  }

  .scratch-luck > .scratchAndItem > .items {
    display: grid;
    width: 70%;
    margin-left: 15%;
    grid-template-columns: 33.33% 33.33% 33.33%;
    grid-row-gap: 40px;
    height: auto;
    margin-top: 10px;
    filter: drop-shadow(50px 20px 40px #000);
    will-change: filter;
    -moz-filter: drop-shadow(50px 20px 40px #000);
    -webkit-filter: drop-shadow(50px 20px 40px #000);
    cursor: pointer;
    justify-items: center;
  }

  .item_cover {
    position: relative;
    display: inline-block;
    font-size: 0;
    width: 90px;
    height: 90px;
  }
  .item_cover img {
    width: 100%;
    height: auto;
  }
  .item_cover canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    cursor: pointer;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -ms-touch-action: none;
    -webkit-touch-action: none;
    -moz-touch-action: none;
    touch-action: none;
    transition: opacity 500ms ease-out 0ms, height 0ms linear 500ms;
  }
  .item_cover.revealed canvas {
    opacity: 0;
    height: 0;
  }

  .scratch-luck > .result > .result-content {
    margin: 10% auto;
    margin-top: 400px;
    padding: 10px;
    width: 270px;
  }

  .scratch-luck > .result > .result-content > .resultImg {
    background-image: url(../img/scratch/sorry.png);
    background-size: 100% 100%;
    background-position: center;
    width: 250px;
    height: 250px;
  }

  .scratch-luck > .result > .result-content > .details {
    display: grid;
    grid-template-columns: 30% 60%;
    width: 100%;
    height: 150px;
  }

  .scratch-luck > .result > .result-content > .details > img {
    width: 150px;
    height: 150px;
    justify-self: center;
  }

  .scratch-luck > .result > .result-content > .details > .info {
    justify-self: center;
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .scratch-luck > .result > .result-content > .details > .info > .imgTxt {
    border-bottom: 10px solid;
    border-image: url(../img/scratch/txt-border.png) 20 stretch;
    -webkit-border-image: url(../img/scratch/txt-border.png) 20 stretch;
    -moz-border-image: url(../img/scratch/txt-border.png) 20 stretch;
    position: relative;
    justify-self: center;
    align-self: center;
  }

  .scratch-luck > .result > .result-content > .details > .info > .imgTxt > .text {
    font-family: KozGoPr6N-Bold;
    font-size: 41px;
    color: #cb0b0a;
    margin-bottom: -18px;
    text-align: center;
  }

  .scratch-luck > .result > .result-content > .details > .info > .qrData {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 75% 25%;
    grid-column-gap: 22px;
    width: 85%;
    justify-items: center;
  }

  .scratch-luck > .result > .result-content > .details > .info > .qrData > .txt {
    font-family: KozGoPr6N-Medium;
    font-size: 13px;
    letter-spacing: -0.9px;
    color: #cb0b0a;
    justify-self: center;
    align-self: center;
  }

  .scratch-luck > .result > .result-content > .details > .info > .qrData img {
    width: 100px;
    height: 100px;
    justify-self: center;
    align-self: center;
  }

  @keyframes ScratchNavigationMov {
    0% {
      top: -10%;
      left: 14%;
    }
    50% {
      top: -7%;
      left: 18%;
    }

    100% {
      top: -10%;
      left: 14%;
    }
  }
}

@media (max-width: 420px) {
  .scratch-luck {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(../img/scratch/background.png);
    background-size: 100% 100%;
    background-position: center;
    width: 100%;
    height: 700px;
  }

  .scratch-luck > .TopContainer {
    display: flex;
    flex-direction: column;
    width: 90%;
  }

  .scratch-luck > .TopContainer > .subText {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: -40px;
    margin-bottom: 0px;
    width: 100%;
    justify-content: flex-end;
  }

  .scratch-luck > .TopContainer > .subText > .text1 {
    font-family: ShinGo-Medium;
    font-size: 12px;
    line-height: 21.22px;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-align: right;
    font-weight: 500;
  }

  .scratch-luck > .emailForm {
    width: 100%;
    height: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

  .scratch-luck > .emailForm > .email {
    background-image: url(../img/scratch/emailBox.png);
    background-size: 100% 100%;
    width: 300px;
    background-repeat: no-repeat;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .scratch-luck > .emailForm > .txt {
    font-family: HelveticaNeue;
    font-size: 16px;
    color: #ffffff;
    color: rgb(255, 255, 255);
    text-align: center;
  }

  .scratch-luck > .scratchAndItem {
    height: auto;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    align-items: center;
    justify-content: center;
  }

  .scratch-luck > .scratchAndItem > .spotLight {
    background-image: url(../img/scratch/spot_light.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 110%;
    height: 440px;
    position: absolute;
    top: -21%;
    right: -5%;
    left: -5%;
  }

  .scratch-luck > .scratchAndItem > .items {
    display: grid;
    width: 90%;
    margin-left: 5%;
    grid-template-columns: 33.33% 33.33% 33.33%;
    grid-row-gap: 20px;
    height: auto;
    margin-top: 10px;
    filter: drop-shadow(50px 20px 40px #000);
    will-change: filter;
    -moz-filter: drop-shadow(50px 20px 40px #000);
    -webkit-filter: drop-shadow(50px 20px 40px #000);
    cursor: pointer;
    justify-items: center;
  }

  .scratch-luck > .scratchAndItem > .scratch_navigation {
    position: absolute;
    top: -8%;
    left: 3%;
    width: 30px;
    height: 30px;
    animation: ScratchNavigationMov 2s infinite;
  }

  .item_cover {
    position: relative;
    display: inline-block;
    font-size: 0;
    width: 70px;
    height: 70px;
  }
  .item_cover img {
    width: 100%;
    height: auto;
  }
  .item_cover canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    cursor: pointer;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -ms-touch-action: none;
    -webkit-touch-action: none;
    -moz-touch-action: none;
    touch-action: none;
    transition: opacity 500ms ease-out 0ms, height 0ms linear 500ms;
  }
  .item_cover.revealed canvas {
    opacity: 0;
    height: 0;
  }

  .scratch-luck > .result > .result-content {
    margin: 5% auto;
    margin-top: 200px;
    padding: 10px;
    width: 190px;
  }

  .scratch-luck > .result > .result-content > .resultImg {
    background-image: url(../img/scratch/sorry.png);
    background-size: 100% 100%;
    background-position: center;
    width: 170px;
    height: 170px;
  }

  .scratch-luck > .result > .result-content > .details {
    display: grid;
    grid-template-columns: 25% 65%;
    width: 100%;
    height: 100px;
  }

  .scratch-luck > .result > .result-content > .details > img {
    width: 100px;
    height: 100px;
    justify-self: center;
  }

  .scratch-luck > .result > .result-content > .details > .info {
    justify-self: center;
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .scratch-luck > .result > .result-content > .details > .info > .imgTxt {
    border-bottom: 7px solid;
    border-image: url(../img/scratch/txt-border.png) 20 stretch;
    -webkit-border-image: url(../img/scratch/txt-border.png) 20 stretch;
    -moz-border-image: url(../img/scratch/txt-border.png) 20 stretch;
    position: relative;
    justify-self: center;
    align-self: center;
  }

  .scratch-luck > .result > .result-content > .details > .info > .imgTxt > .text {
    font-family: KozGoPr6N-Bold;
    font-size: 26px;
    color: #cb0b0a;
    margin-bottom: -15px;
    text-align: center;
  }

  .scratch-luck > .result > .result-content > .details > .info > .qrData {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 75% 25%;
    grid-column-gap: 15px;
    width: 85%;
    justify-items: center;
  }

  .scratch-luck > .result > .result-content > .details > .info > .qrData > .txt {
    font-family: KozGoPr6N-Medium;
    font-size: 10px;
    letter-spacing: -0.9px;
    color: #cb0b0a;
    justify-self: center;
    align-self: center;
  }

  .scratch-luck > .result > .result-content > .details > .info > .qrData img {
    width: 70px;
    height: 70px;
    justify-self: center;
    align-self: center;
  }

  @keyframes ScratchNavigationMov {
    0% {
      top: -8%;
      left: 3%;
    }
    50% {
      top: -1%;
      left: 9%;
    }

    100% {
      top: -8%;
      left: 3%;
    }
  }
}

@media (max-width: 320px) {
  .scratch-luck > .result > .result-content {
    margin: 5% auto;
    margin-top: 200px;
    padding: 10px;
    width: 170px;
  }

  .scratch-luck > .result > .result-content > .resultImg {
    background-image: url(../img/scratch/sorry.png);
    background-size: 100% 100%;
    background-position: center;
    width: 150px;
    height: 150px;
  }

  .scratch-luck > .result > .result-content > .details {
    display: grid;
    grid-template-columns: 25% 65%;
    width: 100%;
    height: 100px;
  }

  .scratch-luck > .result > .result-content > .details > img {
    width: 80px;
    height: 80px;
    justify-self: center;
    justify-items: center;
    margin-top: 10px;
  }
}

@media (max-width: 1024px) and (min-width: 800.01px) {
  .scratch-luck > .result > .result-content {
    margin: 10% auto;
    margin-top: 400px;
    padding: 10px;
    width: 270px;
  }
}

@media (max-width: 1440px) and (min-width: 1024.1px) {
  .scratch-luck > .result > .result-content {
    margin: 15% auto;
    padding: 10px;
    width: 320px;
  }
}
