/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

li{
    list-style: none;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* custom CSS */

:root{
  /* primary colors */
  --Marine-blue: 213 96% 18%;
  --purpleish-blue: 243 100% 62%;
  --pastel-blue: 228 100% 84%;
  --light-blue: 206 94% 87%;
  --strawberry-red: 354 84% 57%;
  
  /* neutral colors */
  --cool-gray: 231 11% 63%;
  --Light-gray: 229 24% 87%;
  --magnolia: 217 100% 97%;
  --alabaster: 231 100% 99%;
  --white: 0 0% 100%;

  /* font weight */
  --fwL: 400;
  --fwM: 500;
  --fwB: 700;
}
/* 
.main {
  background-color: hsl(var(--Light-gray) / 0.5);
} */

@media (min-width: 60rem) {
  .main {
    display: grid;
    /* background-color: hsl(var(--white)); */
    grid-template-columns: repeat(3, 1fr);
    padding: 1rem;
    margin-block: 1rem;
    border-radius: 20px;
    min-height: 680px;
    height: 100%;
    max-width: 1200px;
    width: 100%;
  }
}

@media (min-width: 100rem) {
  .main {
    min-height: 750px;
    height: 100%;
  }
}

.myform {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.myform > *:first-child {
  align-self: center;
  margin-inline: 1rem;
}

.btn-container {
  /* background-color: hsl(var(--white)); */
  display: flex;
  justify-content: space-between;
  padding: 2rem 1rem;
  align-items: center;
}

.btn-container > .next-btn {
  color: hsl(var(--white));
  background-color: rgb(59 130 246 / var(--tw-bg-opacity));
  border-radius: 5px;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}
.btn-container > .prev-btn {
  color: hsl(var(--cool-gray));
  background-color: transparent;
  border-radius: 5px;
  border: none;
  font-weight: var(--fwM);
  cursor: pointer;
}

@media (min-width: 60rem) {
  .myform {
    grid-column: 2/4;
    padding-block: 0;
    padding-inline: 4rem;
  }

  .btn-container {
    /* background-color: hsl(var(--white)); */
    display: flex;
    justify-content: space-between;
    padding: 0rem 1rem 2rem 1rem;
    /* margin-bottom: 1rem; */
    align-items: center;
  }

  .btn-container > .next-btn,
  .btn-container > .prev-btn {
    border-radius: 10px;
    width: 125px;
    padding: 0.8rem 0.5rem;
  }

  .btn-container > .prev-btn {
    text-align: left;
  }
}
