* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.successful {
  text-align: center;
  margin-bottom: 15px;
}

.max-attempts {
  margin: 50px auto;
  font-size: 35px;
  background-color: #ae8ec0;
  color: #f9f9f9;
  padding: 30px 50px;
}

#animated-text {
  font-size: 2em;
  color: #333;
}

#animate-button {
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
}

#smc1 {
  animation: text-animation 500ms ease-in-out;
}

@keyframes text-animation {
  /* from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  } */

  from {
    transform: translateY(0);
  } /* Start at original position */
  to {
    transform: translateY(20px);
  } /* Move down 20px */
  /* Optional intermediate keyframe for smoother transition */
  50% {
    transform: translateY(-10px);
  } /*  Move up 10px halfway */

  from {
    transform: translateY(20px);
  }
  to {
    transform: translateY(-20px);
  }
}

/* Landing Page styling */

.opening {
  background-color: #f0f0f0;
  padding: 20px;
  text-align: center;
}

.stay-safe-h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.stay-safe-p {
  font-size: 1em;
  color: #666;
}
.header {
  position: relative;
}

.side-by-side-txt h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.side-by-side-txt p {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.side-by-side-txt-img {
  width: 56%;
  margin: 0 auto;
  border-radius: 8px;
}
.side-by-side img {
  width: 85%;
  margin: 0 auto;
  border-radius: 8px;
}

.side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 90%;
  margin: 30px auto;
  align-items: center;
}

.safety-tips {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.safety-tips input {
  width: 80%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
}

.safety-tips button {
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#newsletter-img-div {
  background-image: url("../images/newsletter2.jpeg");
  animation: slide-across 6s linear infinite 300ms;
}

@keyframes slide-across {
  from {
    transform: translateX(101vw);
  }

  to {
    transform: translateX(-3vw);
  }
}

#sign-up {
  margin: 5px 10px;
  padding: 5px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* background-image: url("../images/newsletter2.jpeg"); */
  color: white;
  width: 100%;
  height: 25vh;
  background-position: 45% 45%;
  /* background-color: #ae8ec0; */
  background-color: #4a1663;
}

#sign-up h4 {
  font-size: 27px;
}

#sign-up p {
  font-size: 17px;
  font-weight: 400;
}

#sign-up p span {
  color: #ffd700;
}

.newsletter-form {
  padding: 10px 100px 10px 5px;
}

.newsletter-form input {
  padding: 10px 100px 10px 5px;
  border: 0.8px solid transparent;
}

.newsletter-form button {
  cursor: pointer;
  background-color: #ffaa7f;
  border: none;
  /* background-color: #088178; */
  padding: 10px 7px 10px 7px;
  white-space: nowrap;
}

.open {
  margin: 30px auto 0px;
  width: 60vw;
  border-left: 2px solid #ae68b1;
  border-right: 2px solid #ae68b1;
  border-top: 2px solid #ae68b1;
}

.setup {
  margin: 0 auto;
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.middle {
  margin: 0 auto;
  width: 60vw;
  border-left: 2px solid #ae68b1;
  border-right: 2px solid #ae68b1;
}

.close {
  margin: 0 auto 30px;
  width: 60vw;
  border-left: 2px solid #ae68b1;
  border-right: 2px solid #ae68b1;
  border-bottom: 2px solid #ae68b1;
}

#header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
  background-color: #ae8ec0;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 400; /*stacking context*/
}

.upper1 {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  color: white;
}
.lower1 {
  font-size: 17px;
  font-style: italic;
  color: #ae68b1;
  background-color: white;
}

.company_title {
  font-family: cursive;
}

#nav_items {
  display: flex;
  justify-content: space-around;
  background-color: #ae8ec0;
  align-items: center;
  flex-wrap: wrap;
}

#nav_items li {
  list-style: none;
  padding: 0px 10px;
  position: relative;
}

#nav_items li a {
  font-weight: 450;
  text-decoration: none;
  color: white;
  font-size: 19px;
  transition: all 350ms ease-out 400ms;
}

.dropdown {
  position: relative;
}

.dropdown-items {
  display: none;
  list-style: none;
  position: absolute;

  background-color: #ae8ec0;
  min-width: 110px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 0px 0px 9px 9px;
  border: 1.5px solid #ffd700;
}

.dropdown-items a {
  color: black;
  padding: 9px 0px;
  text-decoration: none;
  display: block;
}

.dropdown:hover .dropdown-items {
  display: block;
}

.company_title:hover,
#nav_items li a:hover,
#nav_items li a.selected {
  color: #4a1663;
  transition: all 450ms ease-in 200ms;
}

#nav_items li a.selected::after {
  content: "";
  /* background-color:#ffd700; */
  background-color: #f4bfa5;
  width: 23%;
  height: 1.2px;
  position: absolute;
  bottom: -2px;
  left: 40px;
}

#nav_items img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.header #check_nav {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle_nav {
  background-color: white;
  height: 34px;
  width: 44px;
  border-radius: 5px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.toggle_nav span {
  display: block;
  height: 2px;
  width: 20px;
  background-color: black;
  position: relative;
}

.toggle_nav span::before,
.toggle_nav span::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: black;
  left: 0;
}

.toggle_nav span::before {
  top: -6px;
}

.toggle_nav span::after {
  top: 6px;
}

.search {
  display: flex;
}

.hide {
  position: abolute;
  left: -9990px;
  width: 1.1px;
  height: 1.1px;
  visibility: hidden;
}

.search input {
  height: 36px;
  font-size: 13px;
  color: rgb(78, 78, 78);
  padding: 5px 10px;
  border: 0.8px solid transparent;
  border-radius: 20px;
}

#search {
  background-color: #ae8ec0;
  cursor: pointer;
  color: aliceblue;
}

.home-parents {
  display: flex;
  justify-content: space-around;
  margin: 40px auto;
}

.home-parents-img {
  width: 40vw;
}

.home-parents-img img {
  width: 90%;
  border-radius: 7px;
}

.home-parents-button {
  display: flex;
}

.home-parents-button button {
  padding: 20px 60px;
  border-radius: 18px;
  border: none;
  background-color: #f4bfa5;
  font-size: 24px;
}

.home-parents-button button a {
  text-decoration: none;
  color: #ffffff;
}

footer {
  background-color: #ae8ec0;
  height: 120px;
  display: flex;
  align-items: center;
}

.footer {
  width: 80vw;
  display: flex;
  justify-content: space-evenly;
  margin: 0 auto;
}

.footer-img-div {
  width: 70px;
}

.footer-img-div a img {
  width: 100%;
}

.here,
.copy {
  margin-top: 30px;
}

.copy a,
.here a {
  text-decoration: none;
  color: white;
  font-size: 19px;
}

/* livestreaming styling */

.live-div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  animation: slide-across-pics 6s linear infinite 300ms;
}

@keyframes slide-across-pics {
  from {
    transform: translateX(101vw);
  }

  to {
    transform: translateX(-3vw);
  }
}
.live-div img {
  display: block;
}

.sect1 {
  width: 40%;
  border: 4px solid #ae8ec0;
  margin-top: 40px;
}

.sect1 p,
.sect2 p,
.sect3 p,
.sect4 p,
.sect5 p {
  text-align: justify;
  margin-bottom: 20px;
}

.sect1 h2,
.sect2 h2,
.sect3 h2,
.sect4 h2,
.sect5 h2 {
  color: #333;
  margin-top: 20px;
}
.sect2 {
  width: 54%;
  border: 4px solid #ae8ec0;
}
.sect3 {
  width: 70%;
  border: 4px solid #ae8ec0;
}
.sect4 {
  width: 84%;
  border: 4px solid #ae8ec0;
}
.sect5 {
  width: 97%;
  border: 4px solid #ae8ec0;
  margin-bottom: 40px;
}
/* registration styling */

.registrationPage {
  display: flex;
  justify-content: center;
  height: 100vh;
}

.registrationImgDiv img {
  height: 98vh;
  border-radius: 9px;
}

.registrationDiv {
  width: 65vw;
  height: 100vh;
}

.formFlex {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.formHeading {
  font-size: 26px;
  margin-bottom: 3px;
  color: #ae8ec0;
}

.wholeForm {
  width: 80%;
  margin: 0 auto;
  /* border: 2px solid rgb(51, 51, 216); */
  border-radius: 7px;
  padding: 0px 20px;
}

.formInput {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  margin-top: 9px;
  width: 100%;
  color: rgb(78, 78, 78);
}

.formInput input {
  height: 26px;
  font-size: 13px;
  color: rgb(78, 78, 78);
}

.radioElements {
  display: flex;
  justify-content: space-between;
  width: 50%;
  float: right;
}

.member {
  font-size: 19px;
}

.keeploggedin {
  display: flex;
  gap: 7px;
  justify-content: flex-start;
  margin: 15px 0px 10px;
}

.sbtn-div {
  display: flex;
  justify-content: center;
}

.sbtn {
  width: 80%;
  background-color: #ae8ec0;
  padding: 7px;
  border: none;
  border-radius: 4px;
}

.create {
  text-align: center;
  margin-top: 7px;
}

.create a {
  color: #f4bfa5;
  margin-left: 5px;
}

/* contactus styling */

.contactpage {
  background-color: #f1f7ee;
}

#contactus {
  color: rgb(58, 55, 55);
  font-size: 19px;
  margin: 0 auto;
  border-radius: 7%;
  /* width: 80%; */
  padding: 10px 10px;
  width: 30vw;
  display: flex;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  /* align-items: flex-start; */
  /* background-color: #ffaa7f; */
}

.contactus-h1 {
  font-family: cursive;
  text-align: center;
  padding-bottom: 10px;
}

#contactus input,
#contactus textarea {
  width: 100%;
  padding: 10px 5px;
  margin-bottom: 10px;
}

.send-contact-msg {
  background-color: #ffaa7f;

  border: none;
  border-radius: 30px;
}

/* parents styling */
.parents-grid {
  display: grid;
  width: 70vw;
  margin: 50px auto;
  grid-template-columns: 1fr 1fr;
}

.parents-grid div {
  align-self: center;
}

.parents-grid div p {
  font-size: 20px;
}

/* legislation styling */
.outer {
  width: 95%;
  background-color: #ae8ec0;
  margin: 10px auto;
}

.gap {
  margin: 30px auto;
  width: 70%;
  background-color: #ffffff;
}

.legislation-section {
  margin-bottom: 40px;
  padding: 10px 30px;
}

.legislation-h2 {
  color: #333;
  margin-top: 20px;
}

.legislation-p {
  margin-bottom: 20px;
}

.legislation-ul {
  list-style: none;
}

.legislation-ul li {
  margin-bottom: 10px;
}

/* login styling */

.login-page {
  width: 90vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
}

.login-img {
  height: 100vh;
}

.upper {
  font-size: 68px;
  font-weight: 700;
  text-align: center;
  color: white;
  border: 2px solid white;
}
.lower {
  font-size: 31px;
  font-style: italic;
  color: #ae68b1;
  background-color: white;
}

.login-img-div div {
  margin: 0 auto;
}

.form-div {
  width: 30vw;
  display: flex;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
}

.form {
  width: 100%;
}

.login {
  font-family: Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 30.24px;
  color: #ae8ec0;
  padding: 15px 0px;
  margin: 15px 0px;
  text-align: center;
}

.space,
.sbtn {
  width: 95%;
  margin-bottom: 20px;
}

.space {
  height: 25px;
  padding: 4px;
}

.forgot {
  display: flex;
  justify-content: flex-end;
  font-weight: 500;
  font-size: 16px;
  line-height: 20.16px;
  margin-bottom: 20px;
}

.login-img-div {
  width: 45vw;
  height: 100vh;
  /* background-image: url("../images/login.svg"); */
  background-color: #ae8ec0;
  background-repeat: no-repeat;
  display: flex;
  justify-content: end;
  gap: 50px;
  flex-direction: column;
}

.paragraphs {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  font-size: 36px;
  color: white;
}

.paragraphs p {
  line-height: 45.36px;
}

.signup-img {
  width: 300px;
}

.italics {
  font-size: 28px;
  font-style: italic;
  color: #ae68b1;
}

/* information page styling */

.information-div h2,
.information-div h3 {
  color: #333;
  font-size: 34px;
  text-align: center;
  margin-bottom: 10px;
}

.information {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 80vw;
  margin: 50px auto;
  gap: 5px;
}

.information-div {
  width: 100%;
  border: 3px solid #ae8ec0;
  padding: 15px 25px;
  text-align: justify;
}

.impact {
  margin-top: 40px;
  display: flex;
  gap: 15px;
}

.impact h2 {
  color: #333;
  font-size: 24px;
  margin: 20px 0px;
}

.impact p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.impact {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styling the popular page */

.popular {
  margin: 40px auto;
  width: 50vw;
}

.popular h2 {
  margin-bottom: 10px;
}

.popular_search {
  margin-bottom: 20px;
}

.popular_search h2 {
  color: #333;
  margin-bottom: 10px;
}

#searchInput {
  width: 300px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#popularSearchForm button {
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.results {
  border-top: 1px solid #ccc;
  padding-top: 20px;
}

.results p {
  margin-bottom: 10px;
}

.popular_images {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  width: 90vw;
  margin: 30px auto;
}

.popular_images_div {
  width: 28vw;
}

.pimg {
  margin: 0 auto;
}

.pimg img {
  width: 100%;
  height: 200px;
  margin-bottom: 10px;
}

/* .ppphp{
  display: flex;
  justify-content: center;
  flex-direction: column;
} */
.ppsearch {
  text-align: center;
  font-size: 50px;
  border: 1px dotted #ae8ec0;
  margin-top: 50px;
}

.ppDiv {
  display: flex;
  justify-content: space-between;
  width: 80vw;
  margin: 20px auto;
}

.ppDiv button {
  padding: 20px;
  background-color: #ffaa7f;
  border-radius: 19px;
  font-size: 19px;
  font-weight: 500;
  color: #f1f7ee;
  border: none;
}

.ppDiv button a {
  text-decoration: wavy;
  color: #f1f7ee;
}
/* Responsive styling for the header */
@media (max-width: 998px) {
  .toggle_nav {
    display: flex;
  }

  .header .nav {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background-color: #ae8ec0;
    border-top: 1px solid rgba(225, 225, 225, 0.2);
    opacity: 0;
    visibility: hidden;
  }

  .header .nav #nav_items li {
    margin-block: 10px;
  }

  .header .nav #nav_items {
    display: block;
    margin: 0px;
  }

  .header #check_nav:checked ~ .nav {
    opacity: 1;
    visibility: visible;
  }

  .header #check_nav:focus ~ .toggle_nav {
    box-shadow: 0 0 15px black;
  }

  .header #check_nav:checked ~ .toggle_nav span {
    background-color: transparent;
  }

  .header #check_nav:checked ~ .toggle_nav span::before {
    top: 0;
    transform: rotate(45deg);
  }
  .header #check_nav:checked ~ .toggle_nav span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  #nav_items li a.selected::after {
    content: "";
    background-color: #ffd700;
    width: 5%;
    height: 1px;
    position: absolute;
    bottom: -2px;
    left: 15px;
  }
}
