/* Additional Default Styles for Responsive */

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

img,
object,
video,
iframe {
  max-width: 100%;
  height: auto;
  -ms-interpolation-mode: bicubic;
  display: inline-block;
  vertical-align: middle;
}

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

body {
  line-height: 1;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

nav ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none;
}

ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}

mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}

del {
  text-decoration: line-through;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #000;
  margin: 1em 0;
  padding: 0;
}

input,
select {
  vertical-align: middle;
}

/* Global Styles */

@font-face {
  font-family: EddieScript;
  src: url(./Eddietype.otf);
}

img {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: EddieScript, sans-serif;
  background-image: url("../images/background.jpg");
  background-repeat: repeat;
  background-size: contain;
  font-size: 2.8em;
  letter-spacing: -2;
  max-width: 1400px;
  display: block;
  margin: auto;
  overflow-x: hidden;
}

.titleimg {
  content: url("../images/mobile.gif");
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.storyimg {
  content: url("../images/story.gif");
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

.heroimg {
  content: url("../images/hero.gif");
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

.villainimg {
  content: url("../images/villain.gif");
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

p {
  margin: 1em;
  line-height: 0.8;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.storyp {
  margin-top: -1.5em;
}

.divider {
  content: url("../images/divider.png");
  display: block;
  margin: auto;
  padding: 1em;
  width: 100%;
  height: auto;
  max-width: 800px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.divider:hover {
  transform: scaleY(1.05);
}

section {
  transition: all 0.4s ease;
}

@media screen and (min-width: 1000px) {
  #titlediv {
    padding-bottom: 4em !important;
  }

  .full {
    margin-bottom: -4em;
  }

  .titleimg {
    content: url("../images/desktop.gif");
    margin-bottom: 3em;
  }

  .imageleft {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .imageright {
    display: grid;
    grid-template-columns: 1fr 1fr;
    direction: rtl;
  }

  .imageright > p {
    direction: ltr;
  }

  .heroimg {
    margin-right: 1em;
    margin-left: -1em;
  }

  .storyimg {
    margin-top: -3em;
  }

  .villainimg {
    margin-left: 0.6em;
  }

  body {
    font-size: 5em;
    letter-spacing: -4;
  }
}

@media screen and (min-width: 500px) {
  body {
    font-size: 3.5em;
  }
}

@media screen and (min-width: 650px) {
  body {
    font-size: 3.9em;
  }
}

@media screen and (min-width: 750px) {
  body {
    font-size: 4.5em;
    letter-spacing: -3;
  }
}

@media screen and (min-width: 1200px) {
  body {
    font-size: 4.8em;
  }
}

@media screen and (min-width: 1350px) {
  body {
    font-size: 5.2em;
  }
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Initial fade-in for hero section */
.full {
  animation: fadeInUp 1.2s ease-out;
}

/* Progress indicator line */
.progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 3px;
  background: #418379;
  transform: scaleY(0);
  transform-origin: top;
  z-index: 999;
}

/* Back to top section */
.back-to-top-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2em 1em;
  text-align: center;
}

.back-to-top-text {
  cursor: pointer;
  transition: all 0.3s ease;
  color: #418379;
}

.back-to-top-text:hover {
  color: #a0284c;
}
