@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --background-color: hsl(0, 0%, 93%);
  --text-color: hsl(250, 30%, 20%);
  --focus: hsl(216, 94%, 58%);
  --font: 1.2rem/1.53 "Amiri", serif;
  box-sizing: border-box;
}

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

html {
  --thumbBG: hsl(0, 0%, 75%);
}

body {
  margin: 0;
  font: var(--font);
  background-color: var(--background-color);
  color: var(--text-color);
  scrollbar-color: var(--thumbBG);
}

::selection {
  background-color: hsl(359.62deg 76.47% 40% / 40%);
  /* WebKit/Blink Browsers */
}

:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

img {
  max-width: 100%;
}

/* and the class clearfix to an element to force it to contain its floated contents (this is used as a fallback for browser that don't support flex and grid */

.float-left {
  float: left;
}

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

/* general classes
     ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.65rem;
  margin: 0;
}

/** link
   * Based on LoVe/HAte css specificity rule
   */

a:link {
  color: var(--text-color);
  word-break: break-word;
}

a:visited {
  color: var(--text-color);
  /* TODO: change color */
}

a:hover {
  color: var(--text-color);
  /* TODO: change color */
}

a:active {
  color: var(--text-color);
  /* TODO: change color */
}

/* utility classes
     ========================================================================== */

/* display modifiers */

.d-flex {
  display: flex !important;
}

.d-inline-flex {
  display: inline-flex !important;
}

.d-inline-block {
  display: inline-block !important;
}

/* text modifiers */

.text-align-center {
  text-align: center !important;
}

/* position modifiers */

.position-relative {
  position: relative !important;
}

/* margin modifiers */

.m-1 {
  margin: 0.25em;
}

/* padding modifiers */

.p-1 {
  padding: 0.25em;
}

.text-decoration-none {
  text-decoration: none;
}

.cursor-pointer {
  cursor: pointer;
}

/* custom styles */
.profile__container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2em 0;
  height: 100vh;
}

.profile__container svg {
  width: 35vw;
  height: fit-content;
}

/* desktop styles
     ========================================================================== */

@media screen and (min-width: 450px) {
  :root {
    --font: 1.6rem/1.63 "Amiri", serif;
  }

  h1 {
    font-size: 2.45rem;
  }

  .profile__container svg {
    width: 15vw;
  }
}

/* Setting up the Parallax Standard for the webpage */
body, html {
  width: 100%;
  height: 100%;
}

.parallax {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display : flex;
  align-items : center;
  margin: 0px auto;
}

.parallax > div {
  margin: 0px auto;
}

.parallax.img3:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity here */
  z-index: 1;
}

.parallax.img3 p {
  margin: 0 auto;
  width: 100%;
  text-align: center;
  color: #e5e5e5;
  font-size: 5rem;
  position: relative;
  z-index: 1;
}

.img1 {
  background: #fff url(/images/test.svg) center center/contain repeat fixed;
  height: 80vh;
}

.img2 {
  background: #fff url(/images/drabzin.svg) center center/contain no-repeat fixed;
  height: 100vh;
}

.img3 {
  background-image: url(/images/foul.webp);
  height: 100vh;
}

.ornament {
  position: absolute;
  width: 6em;
  height: 6em;
  opacity: 50%;
}

.ornament--top-left {
  top: 0;
  left: 0;
  background: transparent url(/images/ornament.svg) left top/contain no-repeat content-box;
}

.ornament--top-right {
  top: 0;
  right: 0;
  background: transparent url(/images/ornament.svg) right top/contain no-repeat content-box;
  transform: rotate(90deg);
}

.ornament--bottom-left {
  bottom: 0;
  left: 0;
  background: transparent url(/images/ornament.svg) left bottom/contain no-repeat content-box;
  transform: rotate(270deg);
}

.ornament--bottom-right {
  bottom: 0;
  right: 0;
  background: transparent url(/images/ornament.svg) right bottom/contain no-repeat content-box;
  transform: rotate(180deg);
}

.menu {
  display: flex;
  justify-content: center;
  padding: 8rem;
}

.menu > img {
  width: 45%;
  height: 100%;
  object-fit: cover;
}

@media only screen and (max-width: 600px) {
  .parallax {
    width: 100%;
    height: 100%;
  }
  .menu {
    padding: 2rem;
  }
  .menu > img {
    width: 100%;
  }
}
