@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body{
  display: flex;
  padding: 20px;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: #FFCCE1;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrapper{
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.wrapper h1{
  font-size: 25px;
  font-weight: 500;
  padding: 20px 25px;
  border-bottom: 1px solid #ccc;
}

.wrapper .content{
  margin: 25px;
}

.imgs {
  background: #FFCCE1;
}

.anot,
.sx,
.fl,
.last,
.cf,
.ff {
  width: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  border-radius: 10px;
  padding: 20px;
}

.anot {
  justify-content: space-between;
  border: 2px solid #FF6666;
}

.loopy .p {
  font-weight: bold;
  font-size: 20px;
  margin-left: 20px;
}

.anot .buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.anot .buttons .fm,
.anot .buttons .conf,
.anot .buttons .flv,
.anot .buttons .fft {
  border: 2px solid #FF6666;
  border-radius: 10px;
  background-color: #FF9999;
  padding: 10px 20px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sx,
.fl,
.last {
  border: 2px solid #FF9999;
  justify-content: space-between;
}

.cf,
.ff {
  border: 2px solid #FF9999;
  justify-content: space-between;
}

.sx .imgc,
.ff .imgff,
.cf .imgcf,
.last .imglast {
  width: 100%;
  max-width: 600px;
  border: 4px solid #FF9999;
  overflow: hidden;
  border-radius: 20px;
}

.last .imglast {
  border: none;
}

.last .p,
.last .lp,
.sx .p,
.cf .p,
.ff .p {
  flex: 1;
  text-align: justify;
  text-decoration: underline;
  text-decoration-color: #C94F4F;
  color: #4A1F1F;
  font-size: large;
  font-weight: 550;
  margin: 0;
  padding: 10px;
}

.popup-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  padding: 20px;
}

.popup-box.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background: #FF9999;
  padding: 25px 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transform: scale(0.8);
  transition: 0.3s ease;
  width: 100%;
  max-width: 500px;
}

.popup-box.show .popup-content {
  transform: scale(1);
}

.popup-box .play-next-btn {
  border-radius: 10px;
  background-color: #FF6666;
  padding: 10px;
  font-size: 24px;
  width: 100%;
  max-width: 200px;
  margin: 30px auto 0;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

#progressBtn {
  position: relative;
  border-radius: 10px;
  font-weight: bold;
  overflow: hidden;
  width: 100%;
  max-width: 275px;
  margin-top: 20px;
  height: 60px;
  border: 2px solid #FF6666;
  background-color: white;
  color: black;
  cursor: pointer;
}

#progressBtn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

#progressFill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: #FF9999;
  z-index: 0;
  transition: width 0.5s ease;
  pointer-events: none;
}

#progressText {
  position: relative;
  z-index: 1;
  width: 100%;
  display: inline-block;
  text-align: center;
  line-height: 60px;
}

.content .inputs{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.inputs input{
  height: 57px;
  width: 56px;
  margin: 4px;
  font-size: 24px;
  font-weight: 500;
  color: #1ba98c;
  text-align: center;
  border-radius: 5px;
  background: none;
  pointer-events: none;
  text-transform: uppercase;
  border: 1px solid #B5B5B5;
}

.typing-input {
  opacity: 0;
  z-index: -999;
  position: absolute;
  pointer-events: none;
}

.inputs input:first-child{
  margin-left: 0px;
}

.content .details{
  margin: 20px 0 25px;
}

.details p{
  font-size: 19px;
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {

  body {
    padding: 10px;
  }

  .sx,
  .fl,
  .last,
  .cf,
  .ff,
  .anot {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 15px;
    gap: 20px;
  }

  .sx .imgc,
  .ff .imgff,
  .cf .imgcf,
  .last .imglast {
    width: 100%;
    max-width: 100%;
  }

  .sx .p,
  .cf .p,
  .ff .p,
  .last .p,
  .last .lp {
    width: 100%;
    font-size: 16px;
    padding: 10px;
  }

  .anot .buttons {
    width: 100%;
    align-items: stretch;
  }

  .anot .buttons .fm,
  .anot .buttons .conf,
  .anot .buttons .flv,
  .anot .buttons .fft,
  .popup-box .play-next-btn,
  #progressBtn {
    width: 100%;
    max-width: 100%;
    font-size: 18px;
  }

  .wrapper h1 {
    font-size: 22px;
  }

  .inputs input {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}
