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

img {
  display: block;
  width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

input,
button,
textarea,
select {
  font: inherit;
  border: 0;
  outline: 0;
  padding: var(--size-100);
  border-radius: var(--radius-normal);
  accent-color: var(--clr-quote-header);
  color: var(--clr-light-sec);
}

input:focus:not([type="checkbox"]),
textarea:focus {
  background-color: var(--clr-white-50);
  outline: 3px solid var(--clr-light-sec);
}

textarea {
  margin: 0;
  padding: 0;
  width: 100%;
}
textarea:focus {
  color: var(--clr-quote-text);
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
  margin: 0;
}

:root {
  --fs-900: 2rem;
  --fs-700: 1.75rem;
  --fs-500: 1.3rem;
  --fs-400: 1rem;
  --fs-300: 0.75rem;

  --clr-accent: rgb(49, 67, 44);
  --clr-text: rgba(0, 0, 0, 0.8);
  --clr-text-sec: rgb(58, 55, 55);
  --clr-light-green: rgba(170, 189, 177, 0.836);
  --clr-white: rgba(255, 255, 255, 0.8);
  --clr-white-50: rgba(255, 255, 255, 0.5);
  --clr-light: rgb(206, 212, 218);
  --clr-light-50: rgba(206, 212, 218, 0.5);
  --clr-light-sec: rgb(95, 102, 107);
  --clr-dark: rgb(31, 30, 30);
  --clr-dark-50: rgb(0, 0, 0, 0.5);
  --clr-btn: var(--clr-quote-header);

  --clr-text-header: rgba(73, 80, 87, 1);
  --clr-quote-header: rgba(68, 167, 68, 1);
  --clr-quote-text: rgb(241, 241, 208);

  --size-100: 0.625rem;
  --size-200: 0.5rem;
  --size-300: 3rem;
  --size-400: 1rem;
  --size-500: 2rem;
  --size-600: 3.5rem;

  --fw-300: 300;

  --radius-normal: 3px;
}

/* fonts */
@font-face {
  font-family: decoType;
  src: url("./fonts/decotype.ttf");
}
@font-face {
  font-family: BenSenHandwriting;
  src: url("./fonts/BenSenHandwriting.ttf");
}
@font-face {
  font-family: SolaimanLipi;
  src: url("./fonts/SolaimanLipi.ttf");
}

.robotoFont {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* Body initial setup */
body {
  font: 500 var(--fs-300) / 1.5 sans-serif;
  overflow-x: hidden;
  background-image: url(./img/bgPattern.jpg);
  background-color: var(--clr-light);
  background-repeat: repeat-y;
  background-size: 100%;
}

/* background effect */
header,
main {
  position: relative;
  isolation: isolate;
}

header::before,
main::before {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  content: "";
  background: var(--clr-light);
  box-shadow: 0 0 5px 50px var(--clr-light);
  z-index: -100;
  opacity: 0.7;
}

@media (max-width: 48em) {
  body {
    margin: 0;
  }
  .container {
    padding: var(--size-100) !important;
  }
}

/* animations */
.animateScroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.animateScroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* dark mode */
.dark-theme {
  background: var(--clr-dark-50);
}

.dark-theme .container {
  background-color: var(--clr-dark-50);
  color: var(--clr-white);
}

.dark-theme a {
  color: var(--clr-accent);
}

.dark-theme svg {
  fill: var(--clr-accent);
}

/* utility */
h2 {
  margin-bottom: var(--size-400);
  color: var(--clr-text-header);
  padding-block: var(--size-200);
}

@media (max-width: 48em) {
  h2 {
    margin-bottom: 0;
    color: var(--clr-text-header);
    padding-block: var(--size-100);
  }
}

p {
  font-weight: 700;
}

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

.lead {
  font-weight: var(--fw-300);
  font-size: 1.25rem;
}

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

.px-body {
  margin: 0 calc(var(--size-100) * 2);
}

.btn {
  background-color: var(--clr-btn);
  border-radius: var(--radius-normal);
  padding: 5px;
  color: var(--clr-quote-text);
  box-shadow: 0 1px 1px -0.5px var(--clr-quote-text);
}

.remove-pointer {
  pointer-events: none;
}

.box {
  padding: var(--size-400);
  background-color: rgba(181, 190, 183, 0.5);
  border-radius: var(--radius-normal);
  border: 1px solid rgb(165, 170, 166);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
}

.box:nth-child(odd) {
  background-color: rgba(146, 175, 153, 0.521);
}

.py-1 {
  padding: var(--size-100) 0;
}
.py-2 {
  padding: calc(var(--size-100) * 2) 0;
}

/* hovers */
button:hover {
  filter: brightness(130%);
}

svg:hover {
  fill: var(--clr-accent) !important;
  cursor: pointer;
}
.editor div svg:hover {
  fill: var(--clr-light-50) !important;
}

.mainNav li:hover {
  color: var(--clr-text-sec);
  filter: brightness(110%);
  background-color: var(--clr-light-50);
}

.mainNav li {
  position: relative;
  overflow: hidden;
  transition: background 600ms;
  color: #fff;
  padding: 1rem 2rem;
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  outline: 0;
  border: 0;
  border-radius: 0.25rem;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.3); /* black with 30% opacity */
  cursor: pointer;
}

span.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms linear;
  background-color: rgba(255, 255, 255, 0.7);
}

@keyframes ripple {
  to {
    transform: scale(5);
    opacity: 0;
  }
}


.dropdown span:hover {
  background-color: var(--clr-quote-header);
  color: var(--clr-white);
}
.notice__sort span:hover,
.notice__year span:hover,
.notice__list .list:hover {
  color: var(--clr-text-sec);
  filter: brightness(120%);
  background-color: var(--clr-light-50);
  border-radius: var(--radius-normal);
  cursor: pointer;
  user-select: none;
}

.notice__list .list:hover {
  border-radius: 0;
  transform: translateX(2px);
  font-weight: 600;
}

.achieve *:hover,
.events *:hover {
  cursor: pointer;
  user-select: none;
}

.achieve img:hover {
  transition: 0.5s ease-out;
  transform: scale(1.01);
}

.close:hover {
  filter: brightness(120%);
  user-select: none;
  cursor: pointer;
  background-color: crimson;
}

.output p:hover {
  filter: brightness(120%);
  background-color: var(--clr-light-50);
}

.links a:hover {
  color: var(--clr-white);
  cursor: pointer;
  user-select: none;
}

a:hover,
.quote-wrapper .quoteEditor:hover {
  filter: brightness(120%);
}

input[name="password"] + div:hover::after {
  filter: brightness(80%);
}

/* hover smoother */
button:hover,
svg:hover,
.mainNav li:hover,
.notice__sort span:hover,
.notice__year span:hover,
.notice__list .list:hover,
.achieve *:hover,
.events *:hover,
.achieve img:hover,
.close:hover,
.output p:hover,
.links a:hover,
a:hover,
.dropdown span,
.quote-wrapper .quoteEditor:hover {
  transition: all 100ms linear;
}

/* actives */
button:active,
a:active,
svg:active,
li:active,
span:active,
.close:active,
.quote-wrapper .quoteEditor:active {
  transform: scale(0.98);
  user-select: none;
}

.tools > *:active {
  transform: initial !important;
}

.quoteEditor.action {
  background-color: crimson !important;
}

/* editor */
.editor {
  background-color: var(--clr-accent);
  color: var(--clr-quote-text);
  padding: calc(var(--size-100) * 1) calc(var(--size-100) * 2);
  display: none;
  justify-content: space-between;
  align-items: center;
}

.editor div {
  display: grid;
  grid-auto-flow: column;
  place-items: center;
  gap: var(--size-400);
}

.editor div a {
  margin-top: 5px;
}

.editor svg {
  width: var(--size-500);
  align-self: center;
  margin-top: 2px;
}

.editor div {
  position: relative;
}
.editor div::before {
  position: absolute;
  content: attr(data-log);
  left: -150%;
  top: 150%;
  background-color: var(--clr-quote-header);
  width: min-content;
  border-radius: var(--radius-normal);
  z-index: 1;
  border-bottom: 2px solid;
}

.editor div.active::before {
  padding: var(--size-100);
}

.editor .signOutPrompt {
  position: absolute;
  background-color: var(--clr-quote-header);
  padding: var(--size-100);
  border-radius: var(--radius-normal);
  right: var(--size-100);
  display: none;
}

/* dropdowns */
.dropdown span {
  display: block;
  background: var(--clr-white-50);
  padding: var(--size-100);
  border-radius: var(--radius-normal);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown {
  height: 0 ;
  overflow: hidden;
display: none;
}

.expand {
  height: 100%;
  display: block;
}

/* title */
.title {
  font-size: var(--fs-500);
  font-weight: 900;
  color: var(--clr-accent);
  text-shadow: 1px 1px 1px rgb(61, 127, 61), -1px -1px 1px var(--clr-light),
    -2px -2px 1px var(--clr-light-50), 0 0 5px var(--clr-dark);
  box-shadow: 0 0 5px var(--size-100) var(--clr-dark-50);
  display: grid;
  text-align: center;
  place-content: center;
  padding-top: var(--size-100) !important;
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  background: linear-gradient(var(--clr-white-50), var(--clr-light)) !important;
}

.title .tools {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  margin: var(--size-100) 0 0;
}

.tools svg {
  width: 35px;
  height: 35px;
}

/* main container */
.container {
  padding: calc(var(--size-100) * 2);
  border-radius: var(--radius-normal);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(0, 0, 0, 0.1)
  );
  margin-top: 50px;
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

/* logo */
.logo img {
  width: 25%;
  height: auto;
  margin: 0 auto;
}

/* arabic header */

.arabicHeader {
  font-family: decoType;
}

/* profile page */

.title .tools {
  position: relative;
}

.profile {
  position: absolute;
  background-color: rgb(206, 212, 218);
  top: calc(var(--size-100) * -1);
  margin: 0 auto;
  display: inline-block;
  width: 35px;
  height: 35px;
  border-radius: 12px;
  transition: all 1s ease;
  z-index: 100 !important;
  user-select: none;
}

.profileNotice {
  position: fixed;
  top: calc(var(--size-100) - 5px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--clr-quote-text);
  border-radius: var(--radius-normal);
  width: fit-content;
  padding: var(--size-100);
  box-shadow: 0 0 3px 0 var(--clr-light-sec);
  text-shadow: none;
  z-index: 100;
  display: none;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    top: -30px;
  }
  100% {
    opacity: 1;
    top: calc(var(--size-100) - 5px);
  }
}

.toggleProfile {
  width: calc(100vw - 55px);
  height: max-content;
  background-color: rgb(206, 212, 218);
  box-shadow: 0 0 2px 0 var(--clr-light-sec);
}

@media (min-width: 48em) {
  .profile + span {
    margin-top: 35px;
  }

  .toggleProfile {
    width: calc(50vw - 55px);
    background-color: rgb(206, 212, 218);
    box-shadow: 0 2px 10px 0 var(--clr-light-sec);
  }
}

.profile svg {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  display: block;
  width: 35px;
  height: 35px;
  transition: all 1s ease;
}

.profileFormWrapper {
  color: var(--clr-light-sec);
  text-shadow: initial;
  padding: var(--size-500);
  display: none;
  position: relative;
}

.profileFormWrapper::after {
  --singUpAW: 65px;
  content: "";
  position: absolute;
  background-color: var(--clr-quote-header);
  width: var(--singUpAW);
  aspect-ratio: 1;
  background-image: url("data:image/svg+xml,%3Csvg fill='yellowgreen' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3C!--! Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --%3E%3Cpath d='M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3zM504 312l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  clip-path: polygon(6% 0, 100% 0, 0 100%, 0 6%);
  background-size: 50%;
  background-position: 5px 5px;
}

.profileFormWrapper .signUpLink {
  --singUpAW: 65px;
  position: absolute;
  clip-path: polygon(6% 0, 100% 0, 0 100%, 0 6%);
  opacity: 0;
  z-index: 1;
  width: var(--singUpAW);
  aspect-ratio: 1;
  background-color: yellowgreen;
}
.signUpLink:hover {
  filter: brightness(120%);
  opacity: 0.3;
}

.profileForm {
  height: fit-content;
  margin-top: var(--size-400);
  display: grid;
  row-gap: 3rem;
}

.profileForm__inputs {
  text-align: left;
  font-size: 1rem !important;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.profileForm__inputs input {
  padding: var(--size-400);
  position: relative;
}

.profileForm__inputs div {
  display: grid;
  gap: 0.5rem;
  justify-self: center;
  width: 80%;
  margin-bottom: var(--size-400);
  position: relative;
}

.profileForm__inputs div label {
  padding-block: var(--size-100);
}

input[name="password"] + div::after {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='gray'  viewBox='0 0 576 512'%3E%3C!--! Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --%3E%3Cpath d='M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 1;
}

input[name="password"] + div {
  position: absolute;
  bottom: 0;
  right: var(--size-100);
  aspect-ratio: 1;
  width: 25px;
  height: auto;
}

.profileFormWrapper,
.profileForm__btns,
.profileForm__saveToLocal {
  font-size: var(--fs-500) !important;
}

.profileForm__btns {
  display: flex;
  gap: var(--size-400);
  justify-content: center;
}
.profileForm__btns * {
  padding: var(--size-100);
}

.profileForm__saveToLocal {
  display: flex;
  gap: var(--size-400);
  flex-direction: column;
  align-items: center;
}

.profileForm__saveToLocal *,
.profileForm__btns * {
  font-size: var(--size-400);
}

.profileForm__btns * {
  width: 100%;
  text-transform: uppercase;
}

.profileForm__saveToLocal .btnOnCheckboxWrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 48em) {
  .profile {
    margin-top: var(--size-100);
  }

  .profileForm {
    row-gap: var(--size-500);
  }
  .profileForm__inputs div * {
    width: 100%;
    padding-block: var(--size-100);
    margin-bottom: -20px;
    margin-top: var(--size-100);
  }
}

@media (min-width: 48em) and (max-width: 64em) {
  .profileForm__saveToLocal {
    display: flex;
    gap: var(--size-100);
    flex-direction: column;
    align-items: center;
  }

  .nav h2 {
    padding-top: var(--size-300);
  }
}

.profileForm__saveToLocal *:first-child {
  display: flex;
  gap: var(--size-100);
}

.profileForm__saveToLocal input {
  transform: scale(1.5);
}

@keyframes warning {
  0% {
    outline-color: rgba(220, 20, 60, 0.5);
  }
  25% {
    outline-color: rgba(220, 20, 60, 1);
  }
  50% {
    outline-color: rgba(220, 20, 60, 0.5);
  }
  100% {
    outline-color: rgba(220, 20, 60, 1);
  }
}

/* Local storage saving check box */

.btnOnCheckbox {
  position: relative;
  width: 74px;
  height: 36px;
  left: 0;
  overflow: hidden;
  border-radius: var(--radius-normal);
}
.btnOnCheckboxToggler,
.btnOnCheckboxLayer {
  position: absolute;
  inset: 0;
}

.checkbox {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.btnOnCheckboxToggler {
  z-index: 2;
}

.btnOnCheckboxLayer {
  width: 100%;
  background: #fcebeb;

  filter: var(--clr-light);
  transition: all ease 0.3s;
  z-index: 1;
}

.btnOnCheckboxToggler::before,
.btnOnCheckboxToggler::after,
.btnOnCheckboxToggler span {
  position: absolute;
  margin: 4px 0;
  width: 40%;
  left: 40px;
  height: 28px;
  font-size: var(--size-100);
  font-weight: bold;
  transition: all ease 0.3s;
  border-radius: var(--radius-normal);
  display: grid;
  place-items: center;
}

.btnOnCheckboxToggler::before {
  content: "";
  left: 4px;
  background: #f44336;
}

.btnOnCheckboxToggler::after {
  content: "YES";
  right: 4px;
  color: #4e4e4e;
}

.btnOnCheckboxToggler span {
  color: #fff;
  z-index: 1;
  left: 8px;
}

.checkbox:checked + .btnOnCheckboxToggler span {
  color: #4e4e4e;
}

.checkbox:checked + .btnOnCheckboxToggler::before {
  left: 40px;

  background: var(--clr-quote-header);
}

.checkbox:checked + .btnOnCheckboxToggler::after {
  color: #fff;
}

.checkbox:checked ~ .btnOnCheckboxLayer {
  background-color: var(--clr-white-50);
}

/* main nav */
.mainNav {
  display: none;
}

.nav svg {
  width: calc(var(--size-100) * 2.5);
  fill: var(--clr-accent);
}

.nav h2 {
  display: flex;
  justify-content: space-between;
}

.mainNav li {
  position: relative;
}

.mainNav li::after {
  content: "";
  margin-right: var(--size-200);
  display: inline-block;
  margin-left: var(--size-200);
  border-width: 5px;
  border-style: solid;
  border-color: #444 transparent transparent transparent;
}

.mainNav > li {
  padding: calc(var(--size-100) - 5px);
  text-indent: var(--size-100);
  border-radius: var(--radius-normal);
  font-weight: 300;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--clr-light);
  color: var(--clr-text);
  box-shadow: 0 1px 1px 0 var(--clr-text);
}

/* Quotes */

.quote-wrapper {
  color: var(--clr-quote-text);
  background-image: url("./img/bg-quote.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position-x: center;
  min-height: 300px;
  position: relative;
}

.quote-wrapper div,
.quote-wrapper form {
  background-color: rgb(0, 0, 0, 0.7);
  border-radius: var(--radius-normal);
}
.quote-wrapper .quoteEditor {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(var(--size-100) * 3);
  min-height: calc(var(--size-100) * 3);
  background-color: var(--clr-quote-header);
  color: var(--clr-quote-text);
  z-index: 10;
  display: none;
  place-content: center;
  cursor: pointer;
}

.quote-wrapper .quoteEditorWindow {
  position: absolute;
  left: 50%;
  top: 0;
  text-align: center;
  width: 100%;
  z-index: 10;
  display: grid;
  transform: translateX(-50%);
  gap: var(--size-100);
  padding: var(--size-100);
  box-shadow: 0 2px 5px 0 var(--clr-light-sec);
  background-color: rgb(0, 0, 0, 0.7);
}

.quote-wrapper .quoteEditorWindow * {
  width: 100%;
}
.quote-wrapper .quoteEditorWindow *:focus {
  background-color: var(--clr-light);
}

@media (max-width: 48em) {
  .quote-wrapper .quoteEditorWindow * {
    height: 100%;
  }

  .quote-wrapper .quoteEditorWindow *:nth-child(4) {
    height: 30vh;
  }
}

@media (min-width: 48em) {
  .quote-wrapper .quoteEditorWindow {
    width: 40%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: min-content min-content 1fr fit-content auto;
  }
  .quote-wrapper .quoteEditorWindow *:nth-child(1) {
    grid-column: 1 /-1;
    font-size: var(--fs-500);
  }
  .quote-wrapper .quoteEditorWindow *:nth-child(4) {
    grid-column: 1 /-1;
    height: 27vh;
  }
  .quote-wrapper .quoteEditorWindow *:nth-child(5) {
    grid-column: 1 /-1;
  }
}

.container[data-quote] {
  padding: 0 !important;
}

.quote {
  text-align: center;
  font-weight: 300;
  font-size: var(--size-500);
  font-family: BenSenHandwriting;
  padding: var(--size-400);
}

.quote *:not(:nth-child(2)) {
  margin-bottom: var(--size-300) !important;
}

.quote__header,
.quote__text {
  font-family: BenSenHandwriting;
}

.quote__header {
  color: var(--clr-quote-header);
}

.quote__text {
  width: 55ch;
  margin: 0 auto;
  font-size: calc(var(--size-200) * 3) !important;
}

.quote__ref {
  font-family: SolaimanLipi;
  font-size: var(--size-400);
  color: var(--clr-quote-header);
  filter: brightness(150%);
}

@media (max-width: 768px) {
  .quote__lead {
    font-size: var(--size-500);
  }
  .quote__text {
    width: 20ch;
  }
}

/* notices */

.notices {
  font-weight: 500;
  display: grid;
  grid-template-columns: 55% 1fr 5%;
}

.notices .notice__sort {
  display: flex;
  flex-direction: column;
  color: var(--clr-accent);
}

.notices .notice__sort *:not(:first-child) {
  font-weight: 600;
}

@media (max-width: 64em) {
  .notices .notice__sort *:last-child {
    border-bottom: 0;
  }
}

.notices .notice__year {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.notices .notice__year *:not(:first-child),
.notices .notice__sort *:not(:first-child) {
  padding: var(--size-200);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.notices .notice__list {
  height: 310px;
  position: relative;
  overflow-x: hidden;
  grid-column: span 4;
}

.notices .notice__list *:first-child {
  text-align: center;
  color: var(--clr-quote-text) !important;
  background: var(--clr-quote-header);
  color: var(--clr-text-header);
  position: sticky;
  top: 0;
  backdrop-filter: blur(4px);
}

.notices .notice__list *:not(:first-child) {
  padding: var(--size-100);
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.3);
}

/* persons */
.persons {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.persons img {
  aspect-ratio: 1;
  border-radius: 50%;
  padding: var(--size-400);
  width: 50%;
}

/* achieve */
.achieve {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--size-100) * 2);
  color: var(--clr-text-sec);
}

.achieve div {
  display: grid;
  place-items: center;
}

.achieve div > img {
  border-radius: var(--radius-normal);
}

.achieve div .achieve__text,
.achieve div a {
  justify-self: start;
}

/* events */
.events {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--size-100) * 2);
  color: var(--clr-text);
}

.events .event__list img {
  border-radius: var(--radius-normal);
}

.top__event {
  position: relative;
}

.top__event::before {
  content: "Madrasha is a place where people learn the basic of Deen";
  position: absolute;
  bottom: 0;
  padding: var(--size-100);
  color: var(--clr-light-green);
  width: 100%;
  z-index: 100;
  background-color: rgba(252, 251, 251, 0.1);
  backdrop-filter: blur(4px);
}

/* result */
.result {
  padding: var(--size-300);
  border: 2px solid var(--clr-light);
  background-color: var(--clr-light-green);
  border-radius: var(--size-100);
  width: 95%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
}

#result {
  position: relative;
}

.resultSection {
  display: grid;
  gap: var(--size-100);
}

.result .year,
.result .class {
  background-color: var(--clr-light);
  display: grid;
  gap: var(--size-100);
  grid-template-columns: min-content 1fr;
  border-radius: var(--radius-normal);
}

.result .class {
  gap: 0;
}

.result .year *,
.result .class * {
  padding-inline: var(--size-100);
  padding-block: var(--size-200);
}
.result .year label,
.result .class label {
  width: 100%;
  color: var(--clr-text-header);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.result .year select,
.result .class select {
  width: 100%;
  border-radius: var(--radius-normal);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-inline-end: var(--size-300);
  color: var(--clr-text-header);
  font-weight: 500;
}

.result div:not([class]) {
  display: inline-flex;
  justify-content: center;
  gap: var(--size-100);
  margin-top: var(--size-100);
}

.result div:nth-child(4) > :nth-child(2) {
  background-color: var(--clr-light-sec);
  color: var(--clr-light);
  border: 0;
}
.result div:nth-child(4) > * {
  padding-inline: var(--size-100);
  font-weight: 700;
}

.output {
  color: var(--clr-text-sec);
  display: grid;
  gap: var(--size-100);
  margin: 0 auto;
  height: fit-content;
  position: relative;
}

.process {
  position: relative;
}
.process::after,
.process::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
}

.process::after {
  background-color: var(--clr-light-green);
  z-index: 1;
}

.process::before {
  background: url(./img/down-long.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20%;
  z-index: 10;
  animation: animate 500ms ease-in infinite alternate-reverse;
}

@keyframes animate {
  100% {
    transform: translateY(calc(var(--size-100) * 2));
  }
}

.processing::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
}

.processing::after {
  background-color: var(--clr-light-green);
  z-index: 1;
}

.skChase {
  display: none;
  position: absolute;
  top: 20%;
  margin-left: 35%;
  z-index: 10;
  width: calc(var(--size-100) * 7);
  height: calc(var(--size-100) * 7);
  animation: skChase 2.5s infinite linear both;
}

.skChase-dot {
  width: 100%;
  height: 100%;
  position: absolute;
  animation: skChase-dot 2s infinite ease-in-out both;
}

.skChase-dot:before {
  content: "";
  display: block;
  width: 25%;
  height: 25%;
  background-color: var(--clr-light-sec);
  border-radius: 100%;
  animation: skChase-dot-before 2s infinite ease-in-out both;
}

.skChase-dot:nth-child(1) {
  animation-delay: -1.1s;
}
.skChase-dot:nth-child(2) {
  animation-delay: -1s;
}
.skChase-dot:nth-child(3) {
  animation-delay: -0.9s;
}
.skChase-dot:nth-child(4) {
  animation-delay: -0.8s;
}
.skChase-dot:nth-child(5) {
  animation-delay: -0.7s;
}
.skChase-dot:nth-child(6) {
  animation-delay: -0.6s;
}
.skChase-dot:nth-child(1):before {
  animation-delay: -1.1s;
}
.skChase-dot:nth-child(2):before {
  animation-delay: -1s;
}
.skChase-dot:nth-child(3):before {
  animation-delay: -0.9s;
}
.skChase-dot:nth-child(4):before {
  animation-delay: -0.8s;
}
.skChase-dot:nth-child(5):before {
  animation-delay: -0.7s;
}
.skChase-dot:nth-child(6):before {
  animation-delay: -0.6s;
}

@keyframes skChase {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes skChase-dot {
  80%,
  100% {
    transform: rotate(360deg);
  }
}

@keyframes skChase-dot-before {
  50% {
    transform: scale(0.4);
  }
  100%,
  0% {
    transform: scale(1);
  }
}

.text-entry {
  position: absolute;
  color: var(--clr-light-sec);
  z-index: 100;
  border: 0 !important;
  display: grid;
  left: 50%;
  top: 30%;
  white-space: nowrap;
  transform: translate(-50%);
}

.reference {
  position: absolute;
  color: crimson;
  width: 100%;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
}

.PDFReader {
  position: absolute;
  display: none;
  top: -90%;
  width: 100%;
  height: 100%;
  padding: var(--size-100);
  left: 50%;
  transform: translateX(-50%);
}

.previewPDF {
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--size-100);
  padding-block: calc(var(--size-100) - 6px);
}
.previewPDF::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgb(58,55,55)' viewBox='0 0 576 512'%3E%3C!--! Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --%3E%3Cpath d='M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 288L64 352 64 64l448 0z'/%3E%3C/svg%3E");
  width: 1.5rem;
  transform: translateY(2px);
}

.PDFReader iframe {
  width: 100%;
  height: 90vh;
  padding: var(--size-100);
  border-radius: var(--radius-normal);
  background: var(--clr-dark-50);
  outline: 1px solid var(--clr-light-50);
  box-shadow: 0 0 5px 1000px var(--clr-dark-50);
  animation: popUp 1s ease-in-out;
  position: relative;
}

@keyframes popUp {
  0% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  90% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
  }
}
.close {
  display: none;
  width: fit-content;
  aspect-ratio: 1;
  padding: 0 var(--size-200);
  font-size: calc(var(--size-400) * 1);
  border: 1px solid var(--clr-light);
  color: var(--clr-light);
  position: absolute;
  z-index: 100;
  top: calc(var(--size-100) * 2);
  left: calc(var(--size-100) + 10px);
  border-radius: var(--radius-normal);
  border-top-left-radius: 0;
  animation: visible 1.5s ease-in-out;
}

@keyframes visible {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.gdrive {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gdrive::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='rgb(58,55,55)' d='M12.6 20.4h-0.1l-0.1 0.1-3.2 5.7h14.8l0.1-0.1 3.2-5.7h-0.4zm7.9-1.4l0.1 0.1h0.1l6.5-0.1-0.2-0.3-7.2-12.5-0.1 0-6.5 0.1 0.2 0.3zm-5.1-6.3l-0.1-0.1-3.3-5.6-0.2 0.3-7.2 12.5 0.1 0.1 3.3 5.6 0.2-0.3 7.1-12.4z'/%3E%3C/svg%3E");
  width: var(--size-500);
  transform: translateY(2px);
}

.output p {
  border-radius: var(--radius-normal);
  font-size: calc(var(--size-200) + 10px);
  border: 1px solid var(--clr-light);
  padding-inline: calc(var(--size-100) - 2px);
  height: min-content;
  width: inherit;
}

/* footer */

@media (max-width: 768px) {
  .result {
    gap: calc(var(--size-100) * 2.5);
  }
  .menu-sm {
    border-radius: var(--radius-normal);
    padding: calc(var(--size-200) + var(--size-200));
    margin-top: var(--size-200);
  }

  .footer {
    padding: var(--size-300) !important;
  }

  .footer div:not(:first-child) {
    margin-bottom: var(--size-300);
  }
}
.footer {
  background: var(--clr-text);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  display: grid;
  gap: calc(var(--size-100) * 2.5);
  padding: calc(var(--size-100) * 2);
  margin-top: calc(var(--size-100) * 5);
  padding-top: calc(var(--size-100) * 5);
}

.footer a,
.address p {
  color: var(--clr-light-sec);
  font-weight: var(--fw-300);
  font-size: var(--fs-400);
}

.footer .links {
  display: grid;
  grid-template-columns: repeat(1, auto);
}

.footer .links h2 {
  grid-column: 1 / -1;
}

.footer .links div h2,
.address div h2 {
  margin-bottom: var(--size-100);
}

.footer h2 {
  display: inline-block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-normal);
  color: var(--clr-quote-text);
}

.importLinks,
.socialLinks,
.downloadLinks {
  display: flex;
  flex-direction: column;
  gap: var(--size-100);
}

.footer .address {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--size-400);
}

.address img {
  border-radius: var(--radius-normal);
}

.address + div {
  text-align: center;
  font-weight: var(--fw-300);
}
.address + div > p {
  font-weight: var(--fw-300);
  font-size: 1.2em;
  color: var(--clr-quote-text);
}

/* Tablet 768px+ */
@media (min-width: 48em) {
  /* 768px */
  body {
    font-size: var(--fs-600);
  }

  .title__header {
    font-size: var(--fs-700);
  }

  .logo img {
    width: 100%;
  }

  /* title */
  .title {
    font-size: var(--fs-500);

    grid-template-columns: 10% auto 5%;
    align-items: center;
    justify-content: space-between;
  }

  /* nav */
  .mainNav {
    display: block;
  }

  h2 svg {
    pointer-events: none;
    opacity: 0;
  }

  .mainNav > * {
    padding: var(--size-100);
  }

  .title .tools {
    flex-direction: column;
  }

  /* notices */
  .notices {
    grid-template-columns: 75% 1fr 5%;
    color: var(--clr-text);
  }

  .notices .notice__list {
    grid-column: span 4;
  }
  /* achieve */
  .achieve {
    grid-template-columns: 1fr 1fr;
  }

  /* event */

  .events {
    grid-template-columns: repeat(2, 1fr);
  }
  .events *:first-child {
    grid-column: 1/-1;
  }

  /* result */

  .result {
    grid-template-columns: 1fr 1fr;
    width: 70%;
  }
  /* preview */
  .PDFReader {
    padding: var(--size-100) !important;
  }

  .output {
    margin: 0 0 0 auto;
  }

  /* links */
  .footer .links {
    grid-template-columns: repeat(2, auto);
    justify-content: space-between;
    grid-auto-flow: column;
  }

  .footer .address {
    grid-template-columns: 1fr 1fr;
  }

  .address + div {
    padding: var(--size-500) 0 0;
  }
}

/* Desktop 1024px+ */
@media (min-width: 64em) {
  .title__header {
    font-size: var(--fs-900);
  }

  .container.mergeNav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 20px;
    align-content: center;
  }

  .dropdown[data-visibleOnMedia="true"] {
    height: 100%;
    display: block;
  }

  .mergeNav .carousel,
  .mergeNav .menu-sm {
    align-self: center;
  }

  .notices {
    grid-template-columns: 20% 10% 1fr;
  }

  .notices .notice__list {
    height: 450px;
    grid-column: initial;
  }

  .achieve {
    grid-template-columns: repeat(3, 1fr);
  }

  .events {
    grid-template-columns: repeat(2, 1fr);
  }

  .events *:first-child {
    grid-column: initial;
  }

  .result {
    width: 60%;
    gap: var(--size-300);
    grid-template-columns: 1fr 1fr;
    justify-content: center;
  }

  .skChase {
    margin-left: 42%;
  }
  .PDFReader {
    padding: var(--size-100) !important;
    width: 55%;
  }
  .output {
    margin: initial;
  }

  .output p {
    width: fit-content;
    margin: 0 auto;
  }

  .footer .links {
    grid-template-columns: repeat(3, auto);
  }

  .footer .links,
  .footer .address {
    width: 80%;
    margin: auto;
  }
}

/* background patterns */

.title {
  position: relative;
}

.title > img {
  position: absolute;
  left: -50%;
  top: -50%;
  opacity: 0.1;
  z-index: -1;
}
footer {
  position: relative;
  overflow: hidden;
}
footer > img {
  position: absolute;
  top: 20px;
  right: 0;
  align-self: flex-start;
  justify-content: start;
  opacity: 0.1;
  z-index: -1;
}

@media (min-width: 48em) {
  footer > img {
    position: absolute;
    right: 0;
    bottom: 0;
    align-self: flex-start;
    justify-content: start;
    opacity: 0.1;
    z-index: -1;
  }
}

@media (min-width: 1260px) {
  .title > img {
    left: 0;
    right: 50%;
  }
}

/* REGISTRATION PAGE */
.title.onReg {
  height: 10vh;
  justify-content: space-evenly;
}

.container.onReg {
  background-color: var(--clr-light-sec);
  color: var(--clr-quote-text);
  margin-top: initial;
  text-align: center;
  font-size: var(--size-400);
  font-family: "Roboto", sans-serif;
  border-radius: 0;
}

.signUpWrapper {
  display: grid;
  grid-template-columns: 1fr;
  place-content: center;
  width: 45vw;
  max-width: 520px;
  margin-inline: auto;
  padding: calc(var(--size-400) * 2);
  margin-block: calc(var(--size-400) * 1);
  border-radius: var(--radius-normal);
  gap: var(--size-500);
  box-shadow: 0 5px 50px 5px var(--clr-light-50);
  outline: solid 2px var(--clr-light-sec);
}

.signUpWrapper div {
  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.signUpWrapper :nth-child(6) > fieldset {
  padding: var(--size-100);
  resize: none;
  border-radius: var(--radius-normal);
}

.signUpWrapper :nth-child(6) textarea {
  resize: none;
  padding: var(--size-100);
  height: 150px;
}

.logo.onReg {
  width: 8vh;
}

@media (max-width: 64em) {
  .signUpWrapper {
    width: 90vw;
  }
}
@media (max-width: 48rem) {
  .title.onReg {
    height: 10vh;
  }
  .logo.onReg {
    width: 100%;
  }
  .signUpWrapper div {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: var(--size-100);
    gap: var(--size-100);
  }
  .signUpWrapper div * {
    width: 100%;
  }
}
.signUpWrapper :nth-child(7) {
  display: inline-flex;
  flex-direction: row !important;
  justify-content: center;
  gap: var(--size-100);
  width: 50%;
  margin-inline: auto;
}

button.onReg {
  background-color: var(--clr-quote-header);
  color: var(--clr-quote-text);
}

.footer.onReg {
  margin-top: initial;
}

/* Carousel from bootstrap */
.carousel {
  position: relative;
}
.carousel.pointer-event {
  touch-action: pan-y;
}
.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.carousel-inner::after {
  display: block;
  clear: both;
  content: "";
}
.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}

.carousel-item img {
  border-radius: var(--radius-normal);
}
@media (prefers-reduced-motion: reduce) {
  .carousel-item {
    transition: none;
  }
}
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
  display: block;
}
.active.carousel-item-end,
.carousel-item-next:not(.carousel-item-start) {
  transform: translateX(100%);
}
.active.carousel-item-start,
.carousel-item-prev:not(.carousel-item-end) {
  transform: translateX(-100%);
}
.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
}
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end,
.carousel-fade .carousel-item.active {
  z-index: 1;
  opacity: 1;
}
.carousel-fade .active.carousel-item-end,
.carousel-fade .active.carousel-item-start {
  z-index: 0;
  opacity: 0;
  transition: opacity 0s 0.6s;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-fade .active.carousel-item-end,
  .carousel-fade .active.carousel-item-start {
    transition: none;
  }
}
.carousel-control-next,
.carousel-control-prev {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 0;
  color: var(--clr-white);
  text-align: center;
  background: 0 0;
  filter: var(--bs-carousel-control-icon-filter);
  border: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-control-next,
  .carousel-control-prev {
    transition: none;
  }
}
.carousel-control-next:focus,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-prev:hover {
  color: var(--clr-white);
  text-decoration: none;
  outline: 0;
  opacity: 0.9;
}
.carousel-control-prev {
  left: 0;
}
.carousel-control-next {
  right: 0;
}
.carousel-control-next-icon,
.carousel-control-prev-icon {
  display: inline-block;
  width: var(--size-500);
  height: var(--size-500);
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
}
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
}
.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-right: 15%;
  margin-bottom: var(--size-400);
  margin-left: 15%;
}
.carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 30px;
  height: 3px;
  padding: 0;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: var(--bs-carousel-indicator-active-bg);
  background-clip: padding-box;
  border: 0;
  border-top: var(--size-100) solid transparent;
  border-bottom: var(--size-100) solid transparent;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-indicators [data-bs-target] {
    transition: none;
  }
}
.carousel-indicators .active {
  opacity: 1;
}
.carousel-caption {
  position: absolute;
  right: 15%;
  bottom: 1.25rem;
  left: 15%;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  color: var(--bs-carousel-caption-color);
  text-align: center;
}
.carousel-dark {
  --bs-carousel-indicator-active-bg: #000;
  --bs-carousel-caption-color: #000;
  --bs-carousel-control-icon-filter: invert(1) grayscale(100);
}
:root,
[data-bs-theme="light"] {
  --bs-carousel-indicator-active-bg: var(--clr-white);
  --bs-carousel-caption-color: var(--clr-white);
  --bs-carousel-control-icon-filter: ;
}
[data-bs-theme="dark"] {
  --bs-carousel-indicator-active-bg: #000;
  --bs-carousel-caption-color: #000;
  --bs-carousel-control-icon-filter: invert(1) grayscale(100);
}

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
