* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "M PLUS 1 Code";
  src: url("fonts/MPLUS1Code/webfonts/MPLUS1Code-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS 1 Code";
  src: url("fonts/MPLUS1Code/webfonts/MPLUS1Code-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

header {
    position: relative;
    height: 60px;
    font-family: "M PLUS 1 Code", "Fira Code", "Courier New", monospace;
    font-weight: 700;
}

body {
  background: #f7f2df;
  color: #d75a43;
  font-family: "M PLUS 1 Code", "Fira Code", "Courier New", monospace; 
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/*roller*/
article {
  max-width: 600px;
  margin: 1em auto;
  overflow: hidden;
  position: relative;
  min-height: 4em;
}

.example-left {
  white-space: nowrap;
  position: absolute;
  text-transform: uppercase;
}

.example-left {
  -webkit-animation: mymove 8s linear infinite;
  white-space: nowrap;
  animation: mymove 8s linear infinite alternate;
}

@-webkit-keyframes mymove {
  from {
    left: 0;
  }
  to {
    left: -140px;
  }
}

@keyframes mymove {
  from {
    left: 0;
  }
  to {
    left: -140px;
  }
}

.roller {
  width: 50%;
  margin: 0 auto;
  position: relative;
}

/*logo*/

.logo {
  position: absolute;
  top: 12px;
  left: 12px;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  text-decoration: none;
  text-transform: uppercase;

  color: #e00000;
  font-size: 13px;
  font-weight: 700;
  line-height: 0.82;
}

.logo span {
  display: block;
}

/*top-right-nav*/

.top-nav {
  position: absolute;
  top: 12px;
  right: 18px;

  display: flex;
  gap: 18px;
}

.top-nav a {
  color: #e00000;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
}

/*center-nav*/
.center-nav {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.center-nav a {
  color: #e00000;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.center-nav a:hover {
  opacity: 0.6;
}

/*footer*/

footer {
  width: 100%;
  background: #d89400;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  color: #e00000;
  font-size: 13px;
  text-transform: uppercase;

  margin-top: auto;
}

.follow-btn {
  color: #e00000;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border: 1.5px solid #e00000;
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.follow-btn:hover,
.follow-btn:focus {
  background: #e00000;
  color: #d89400;
}

/*marquee*/

.wrapper {
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin: 15% 30%;
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: marquee 25s linear infinite;
  font-size: 13px;
}

.marquee:hover {
  animation-play-state: paused;
}

.marquee p {
  display: inline-block;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.marquee:nth-of-type(1) {
  animation-delay: 0s;
}
.marquee:nth-of-type(2) {
  animation-delay: -2.5s;
}
.marquee:nth-of-type(3) {
  animation-delay: -5s;
}
.marquee:nth-of-type(4) {
  animation-delay: -7.5s;
}
.marquee:nth-of-type(5) {
  animation-delay: -10s;
}
.marquee:nth-of-type(6) {
  animation-delay: -12.5s;
}
.marquee:nth-of-type(7) {
  animation-delay: -15s;
}
.marquee:nth-of-type(8) {
  animation-delay: -17.5s;
}
.marquee:nth-of-type(9) {
  animation-delay: -20s;
}
.marquee:nth-of-type(10) {
  animation-delay: -22.5s;
}
.marquee:nth-of-type(11) {
  animation-delay: 0s;
}
.marquee:nth-of-type(12) {
  animation-delay: -2.5s;
}
.marquee:nth-of-type(13) {
  animation-delay: -5s;
}
.marquee:nth-of-type(14) {
  animation-delay: -7.5s;
}

/*missive*/

.footer-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.subscribe-trigger {
  color: #e00000;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border: 1.5px solid #e00000;
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.subscribe-trigger:hover {
  background: #e00000;
  color: #d89400;
}

.subscribe-trigger.active {
  border-style: dashed;
}

.subscribe-form {
  display: none;
  width: 100%;
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-input-wrapper {
  display: flex;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border: 1.5px solid #e00000;
  border-radius: 2px;
}

.form-input-wrapper input[type="email"] {
  flex: 1;
  background: transparent;
  color: #e00000;
  border: none;
  padding: 6px 12px;
  font-family: "M PLUS 1 Code", "Courier New", monospace;
  font-size: 13px;
  outline: none;
}

.form-input-wrapper input[type="email"]::placeholder {
  color: rgba(224, 0, 0, 0.6);
  text-align: center;
}

.submit-btn {
  background: #e00000;
  color: #d89400;
  border: none;
  padding: 6px 16px;
  font-family: "M PLUS 1 Code", "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-left: 1.5px solid #e00000;
  border-radius: 0 2px 2px 0;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background: #c40000;
}

.success-message {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  margin-top: 12px;
  background: #d89400;
  color: #e00000;
  border-radius: 2px;
  font-family:"M PLUS 1 Code", "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  animation: slideIn 0.3s ease;
}

.success-icon {
  color: #e00000;
  font-size: 13px;
}

.success-text {
  color: #e00000;
  letter-spacing: 0.02em;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subscribe-form.hidden {
  display: none;
}

.subscribe-trigger.hidden {
  display: none;
}

/*re*/
.intro {
  width: 445px;
  margin: 80px 50px 80px 50px; /* top, right, bottom, left */
  font-size: 13px;
  line-height: 1.35;
  text-transform: uppercase;
  color: #d17a7b;
  transition: color 0.3s ease;
  text-align: justify;
}

.intro:hover {
  color: #e00000;
}

.intro strong {
  color: #e00000;
}
.email {
  unicode-bidi: bidi-override;
  direction: rtl;
}

.email:before {
  content: "skrow.akla@";
}

/*int*/

.title-carousel {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22vh;
  user-select: none;
}

.title-track {
  min-width: 340px;
  text-align: center;
}

#current-title {
  display: block;
  color: #e00000;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.3;
  transition: opacity 0.12s linear;
}

.title-carousel {
  width: 100%;
  margin-top: 18vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-track {
  cursor: pointer;
}

#current-title {
  color: #e00000;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 15px;
  transition: opacity 0.15s;
}

#current-title:hover {
  opacity: 0.55;
}

#current-title {
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
}

#current-title:hover {
  opacity: 0.6;
}

#current-title.active {
  color: #e00000;
}

.title-text {
  display: none;
  width: 420px;
  max-width: 85vw;
  margin-top: 36px;
  color: #e00000;
  font-size: 13px;
  line-height: 1.45;
  text-transform: uppercase;
  text-align: justify;
  transition: opacity 0.25s;
}

/*ext*/

.ext-books {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);

  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
}

.divider {
  width: 2px;
  height: 15px;
  margin-top: 2px;
  background: #e00000;
}

.book {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.book-title {
  color: #e00000;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  white-space: nowrap;
}

.book-title span {
  display: block;
}

.book a {
  display: block;
}

.book img {
  width: 140px;
  height: auto;
  display: block;
  opacity: 0.18;
  transition: opacity 0.3s ease;
}

.book img:hover {
  opacity: 1;
}

@media (max-width: 600px) {

  body {
    overflow-x: hidden;
  }

  header {
    height: 50px;
  }

  /* top navigation */
  .top-nav {
    right: 12px;
    gap: 12px;
  }

  .logo {
    top: 12px;
    left: 12px;
  }


  /* books section */
 

  .ext-books {
    position: relative;
    left: auto;
    top: auto;
    transform: none;

    width: 100%;
    padding: 80px 10px;

    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
  }

  .book {
    width: 42vw;
    max-width: 150px;
  }

  .book-title {
    white-space: normal;
    width: 100%;
    font-size: 9px;
    line-height: 1.25;
    margin-bottom: 15px;
  }

  .book img {
    width: 100%;
    max-width: 120px;
    height: auto;
  }

  .divider {
    width: 2px;
    height: 15px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  /* footer */
  footer {
    flex-direction: column;
    align-items: center;
    gap: 18px;

    padding: 18px 12px;

    text-align: center;

    font-weight: 700;
  }


  .footer-left,
  .footer-right {
    width: 100%;
  }


  .footer-center {
    width: 100%;
  }


  .form-input-wrapper {
    max-width: 90vw;
  }


  /* intro text page */
  .intro {
    width: auto;
    margin: 50px 20px;
    font-size: 13px;
  }


  /* title carousel */
  .title-carousel {
    margin-top: 15vh;
  }


  .title-track {
    min-width: auto;
    width: 90%;
  }


  #current-title {
    font-size: 13px;
  }


  .title-text {
    width: 90vw;
  }

}
