/* @import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap'); */

/* @import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic&display=swap'); */

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@500&family=Nanum+Gothic&display=swap');

* {
  box-sizing: border-box;
}

body {
  background-image: url('./img/waterGreen.jpeg');
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  color: #f3f8f2;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.5em;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

h1 {
  text-align: center;
  margin: 20px;
}

h2 {
  text-align: center;
  margin: 20px;
  font-size: 0.9em;
}

p {
  text-align: center;
  margin: 20px;
  font-size: 0.5em;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  height: 300px;
  width: 300px;
  position: relative;
  transform: scale(1);
}

.circle {
  background-color: #010f1c;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.gradient-circle {
  background: conic-gradient(
    #55b7a4 0%,
    #4ca493 40%,
    #fff 40%,
    #fff 60%,
    #336d62 60%,
    #2a5b52 100%
  );
  height: 320px;
  width: 320px;
  z-index: -2; /* puts gradient circle behind the circle */
  border-radius: 50%;
  position: absolute;
  top: -10px;
  left: -10px;
}

.pointer {
  background-color: #fff;
  border-radius: 50%;
  height: 20px;
  width: 20px;
  display: block;
}

.pointer-container {
  position: absolute;
  top: -40px;
  left: 140px;
  width: 20px;
  height: 190px;
  animation: rotate 13.5s linear forwards infinite;
  transform-origin: bottom center;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.container.grow {
  animation: grow 5s linear forwards;
}

@keyframes grow {
  from {
    transform: scale(0.75);
  }

  to {
    transform: scale(0.95);
  }
}

.container.shrink {
  animation: shrink 5s linear forwards;
}

@keyframes shrink {
  from {
    transform: scale(0.95);
  }

  to {
    transform: scale(0.75);
  }
}

/* iPhone 5/SE */

@media (max-width: 375px) {
  .container {
    width: 250px;
    height: 250px;
  }
  .gradient-circle {
    height: 270px;
    width: 270px;
  }
  .pointer-container {
    top: -32px;
    left: 115px;
    width: 20px;
    height: 160px;
    /* background: #333; */
  }
  h1 {
    font-size: 50px;
  }
  body {
    font-size: 1.8em;
  }
  p {
    margin-bottom: 50px;
  }
}

/* Galaxy Fold */

@media (max-width: 280px) {
  .container {
    width: 200px;
    height: 200px;
  }
  .gradient-circle {
    height: 220px;
    width: 220px;
  }

  .pointer-container {
    top: -30px;
    left: 90px;
    width: 20px;
    height: 130px;
  }
  h1 {
    font-size: 50px;
  }
  body {
    font-size: 1.8em;
  }
}

/* Landscape */

/* @media (max-height: 540px) {
  body {
    flex-direction: row;
  }
} */

@media (max-height: 376px) {
  body {
    display: flex;
    flex-direction: column;

    align-items: right;
  }

  h1,
  h2,
  p {
    color: pink;
    text-align: right;
    margin: 0.5em;
    align-self: auto;
  }

  .container {
    margin-top: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 250px;
    height: 250px;
  }
  .gradient-circle {
    height: 270px;
    width: 270px;
  }
  .pointer-container {
    top: -32px;
    left: 115px;
    width: 20px;
    height: 160px;
  }
  h1 {
    font-size: 30px;
  }
  body {
    font-size: 0.8em;
  }
}

@media (max-height: 280px) {
  body {
    flex-direction: row;
  }
  .container {
    width: 220px;
    height: 220px;
  }
  .gradient-circle {
    height: 240px;
    width: 240px;
  }
  .pointer-container {
    top: -32px;
    left: 100px;
    width: 20px;
    height: 142px;
    /* background: #333; */
  }
  h1 {
    font-size: 50px;
  }
  body {
    font-size: 1.8em;
  }
}
