/******************************************
/* CSS
/*******************************************/

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* Box Model Hack */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

body {
  background-color: #f7f7f7;
}

html {
  font-size: 62.5%;
  font-family: "Inter", sans-serif;
  color: #6d6d6d;
}

/******************************************
/* LAYOUT
/*******************************************/

.container {
  max-width: 120rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3rem;
  margin: 0 auto;
  min-height: 100vh;
  padding: 3rem;
}

.one {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.two {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  height: 50rem;
  position: relative;
}

.content {
  padding: 2.4rem;
  background-color: #fff;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  border-radius: 0.5rem;
}

header {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 2.4rem;
}

header h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 500;
  gap: 1rem;
  padding: 0.8rem;
  border-radius: 0.5rem;
  color: #6d6d6d;
  border: 0.05rem solid #6d6d6d;
  transition: all 0.3s ease;
}

header h1:hover {
  border-color: #14eba3;
  background-color: rgba(20, 235, 163, 0.05);
}

.glow {
  content: "";
  height: 1.2rem;
  width: 1.2rem;
  border-radius: 3rem;
  background-color: #14eba3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 235, 163, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(20, 235, 163, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 235, 163, 0);
  }
}
header h2 {
  font-size: 3rem;
  color: #6d6d6d;
  font-weight: 400;
  line-height: 1.5;
}

.user-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

.user-inputs input {
  outline: none;
  border: none;
  width: 70%;
  height: 4.5rem;
  border-radius: 0.5rem;
  background-color: #f7f7f7;
  padding-inline: 1.6rem;
  color: #6d6d6d;
  border: 1px solid #d9d9d9;
  font-size: 1.6rem;
  transition: all 0.2s ease;
}

.user-inputs input:focus {
  border-color: #14eba3;
  outline: 2px solid #14eba3;
  background: #fff;
  outline-offset: 2px;
}

.user-inputs button {
  background-color: #14eba3;
  color: #fff;
  outline: none;
  width: 30%;
  border: none;
  font-size: 1.6rem;
  font-weight: 500;
  height: 4.5rem;
  padding-inline: 1.6rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-inputs button:hover {
  background-color: #12d194;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 235, 163, 0.3);
}

.user-inputs button:active {
  transform: translateY(0);
}

.user-inputs button:focus {
  outline: 2px solid #14eba3;
  outline-offset: 2px;
}

.content h2 {
  font-size: 2rem;

  font-weight: 400;
}

#instructions {
  line-height: 1.6;
  font-size: 1.6rem;
}

.two button {
  position: absolute;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 4.8rem;
  height: 4.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.two button img {
  width: 2.4rem;
  height: 2.4rem;
  transition: transform 0.3s ease;
}

#left {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

#right {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.two button:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.two button:hover img {
  transform: scale(1.1);
}

.two button:focus {
  outline: 2px solid #14eba3;
  outline-offset: 2px;
}

.two button:active {
  transform: translateY(-50%) scale(0.95);
}

/******************************************
/* ADDITIONAL STYLES
/*******************************************/

@media screen and (max-width: 1024px) {
  .container {
    max-width: 90rem;
    padding: 2rem;
    gap: 3rem;
  }

  header p {
    font-size: 2rem;
  }
  .two {
    height: 40rem;
  }
}

@media screen and (max-width: 768px) {
  .user-inputs {
    display: flex;
    flex-direction: column;
  }
  .user-inputs input {
    width: 100%;
  }

  .user-inputs button {
    width: 100%;
  }

  html {
    font-size: 60%;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 55%;
  }

  .container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
    min-height: auto;
  }

  .two {
    height: 40rem;
  }

  header h1 {
    font-size: 1.2rem;
    padding: 1rem 1.2rem;
  }

  header p {
    font-size: 1.6rem;
  }

  .user-inputs input,
  .user-inputs button {
    height: 4.5rem;
    font-size: 1.6rem;
  }

  .content {
    padding: 1.6rem;
  }

  .two button {
    width: 3.6rem;
    height: 3.6rem;
  }

  .two button img {
    width: 1.8rem;
    height: 1.8rem;
  }

  #left {
    left: 0.8rem;
  }

  #right {
    right: 0.8rem;
  }
}
