/*

- SPACING SYSTEM (px)

2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

- FONT SIZE SYSTEM (px)

10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

*/

/* Tamil Fonts */

@import url("https://fonts.googleapis.com/css2?family=Mukta+Malar:wght@200;300;400;500;600;700;800&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

/* width */
::-webkit-scrollbar {
  width: 3px;
}

/* Track */
::-webkit-scrollbar-track {
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #b9b9b9d2;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.568);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

body {
  font-family: "Rubik", sans-serif;
  color: #000;
  overflow-x: hidden;
  background-color: whitesmoke;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a {
  color: #000;
}

:root {
  --container-width-1g: 80%;
  --container-width-md: 90%;
  --container-width-5m: 94%;
  --transition: all 400ms ease;
}

.main-nav {
  position: fixed;
  background: transparent;
  width: 100%;
  top: 0;
  z-index: 11;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav__container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 70px;
  height: 70px;
  overflow: hidden;
  margin: 0 auto 0;
}

nav button {
  display: none;
}

#open-menu-btn,
#close-menu-btn {
  display: none;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4rem;
  /* 64px = 4rem*/
  position: relative;
}

/**********************************/
/************** BATCHS ************/
/**********************************/

.batch {
  cursor: pointer;
  position: relative;
  padding: 20px 0;
  transition: all 0.3s;
}

.batch-year {
  display: none;
  position: absolute;
  top: 90%;
  left: -30%;
  width: 160px;
  background-color: #fff;
  box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.075);
  border-radius: 3px;
  padding: 12px;
  z-index: 98;
  border: 1px solid rgba(0, 0, 0, 0.185);
  background-color: #fafafa;
}

/* Dropdown Hover Effect */
.batch-child {
  display: block;
  text-align: center;
  width: 150px;
  z-index: 99;
  background: linear-gradient(to top left, rgb(24, 24, 24), #55efc4);
}
/* END */

.batch-year ul {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.batch:hover .batch-year ul li a {
  color: black;
}

.batch:hover .batch-year ul li a:hover {
  color: white;
}

/* ************** */
/* END OF BATCHES */
/* ************** */

.nav__menu a {
  font-size: 0.9rem;
  /* 0.9 rem=14.4px */
  transition: var(--transition);
}

.nav__menu a:hover {
  /* color: var(--color-bg2); */
  /* color: #4bc938; */
  color: white;
}

.logo-title {
  /* margin-right: 10rem; */
  font-size: 1rem;
}

/* =============change navbar style on scroll===================== */
.window_scroll {
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
  background-color: #f6fba2;
  background-image: linear-gradient(315deg, #f6fba2 0%, #20ded3 74%);
}

/*

- SPACING SYSTEM (px)

2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

- FONT SIZE SYSTEM (px)

10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

*/

/**********************************/
/*********** ATHIKARAM ************/
/**********************************/

.kural {
  margin: 8rem auto 0 auto;
}

.format {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  /* gap: 32px; */
  margin-bottom: 48px;
}

.couplets-section {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.couplets-navbar {
  position: relative;
  margin: 0 1% 20px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background: white;
  padding: 5px 12px;
  border-radius: 30px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.075);
}

#couplets-search-icon[name="search-alt-2"],
#kural-search-icon[name="search-alt-2"] {
  height: 22px;
  width: 22px;
}

#couplets-search-bar {
  width: 280px;
  padding: 5px 12px;
  border-radius: 20px;
  border: none;
  outline: none;
  cursor: auto;
}

#couplets-search-bar:focus {
  background: transparent;
}

#couplets-search-bar:active {
  outline-color: #424890;
}

::placeholder {
  color: #333;
}

/* Select a Languages */

.couplets-down-arrow {
  cursor: pointer;
  position: relative;
}

.active-tick {
  display: inline;
}

.hide {
  display: none;
}

.show {
  display: block;
}

.couplets-search-type {
  display: none;
}

.couplets-search-type ul {
  width: 100px;
}

.couplets-search-type ul li {
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
  font-size: 12px;
  background-color: white;
}

.couplets-search-type ul li:hover {
  background-color: rgb(0, 195, 255);
  color: #000;
  cursor: pointer;
}

.couplets-search-type-show {
  display: block;
  position: absolute;
  z-index: 10;
  transform: translate(367%, 35%);
}

#filter-topic {
  background-color: #88bd94;
  cursor: default;
}

.couplets-result-box {
  display: none;
  width: 350px;
  border-top: 1px solid black;
  padding: 5px;
  outline: none;
}

.couplets-result-box-show {
  display: block;
  position: absolute;
  z-index: 10;
  background-color: whitesmoke;
  overflow: scroll;
  height: 370px;
}

.couplets-result-box ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px;
  gap: 5px;
}

.couplets-result-box ul li {
  cursor: pointer;
  list-style: none;
  padding: 5px 10px;
  font-size: 14px;
}

.couplets-result-box ul li:hover {
  background-color: #e9feff;
}

.couplets-sets {
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 4px;
  row-gap: 10px;
  height: 380px;
  overflow-y: scroll;
  position: relative;
}

.couplets-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.couplets-set-format {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  width: 430px;
  cursor: pointer;
  border: 2px solid black;
  border-radius: 16px;
  transition: all 250ms ease-in-out;
  background-color: #f3f4f6;
  color: black;
}

.couplets-set-format:hover {
  background: linear-gradient(#96f2d7, #b2f2bb);
  color: black;
}

.couplets-set-format-heading {
  display: flex;
  margin-bottom: 5px;
  padding: 15px;
  border: 1px solid black;
  border-radius: 0 0 16px 16px;
  position: sticky;
  top: -3px;
  left: 0;
  color: #d0ebff;
  background-color: #000;
  box-shadow:
    0 0 5px black,
    0 0 5px black;
  z-index: 5;
}

.couplets {
  font-size: 14px;
  line-height: 1.5;
}

.active {
  /* background: linear-gradient(to top left, #9ccc9c, #55efc4);*/
  filter: none;
  background: linear-gradient(#63e6be, #8ce99a);
  color: black;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.25);
  border: none;
}

/**********************************/
/******** KURAL_CONTAINER *********/
/**********************************/

.kural-navbar {
  display: flex;
  justify-content: space-around;
  flex-direction: column-reverse;
  align-items: center;
  gap: 32px;
  margin-bottom: 28px;
}

.kural-topic {
  display: flex;
  position: relative;
  gap: 10px;
}

.kural-title {
  font-size: 17px;
  text-transform: uppercase;
  font-weight: 500;
}

.kural-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 65px;
}

.search-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inner-kural-search {
  display: flex;
  align-items: center;
  background: white;
  padding: 5px 12px;
  border-radius: 30px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.07);
  margin-right: 100px;
}

.kural-search-bar {
  width: 280px;
  padding: 5px 12px;
  border-radius: 20px;
  border: none;
  outline: none;
}

.kural-container-inner {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
  position: relative;
}

.kural-def {
  height: 320px;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  /* align-items: start;
  margin: 0 auto; */
  gap: 18px;
  padding: 12px;
  cursor: pointer;
}

/* .kural-def div{
  margin: 0 auto;
} */

.kural-sets {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 20px;
  padding: 16px 32px;
  box-shadow: 0 0 3px black;
  backdrop-filter: blur(10px);
  /* background-color: #FFE0ED; */
  background: linear-gradient(#96f2d7, #b2f2bb, #d8f5a2);
  color: rgb(0, 0, 0);
  text-shadow: 0 0 1px black;
  transition: all 700ms ease-in;
}

.kural-sets:hover {
  box-shadow: inset 0px -12px 24px -14px rgba(0, 0, 0, 0.75);
}

.activeKural {
  background: linear-gradient(120deg, #a6fdd0, #92ffde, #58b7c6);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  color: black;
}

.kural-pack div {
  margin-bottom: 16px;
}

.kural-no {
  font-size: 14px;
}

.kural-eng {
  font-size: 16px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

/**********************************/
/********** KURAL_SEARCH **********/
/**********************************/

.kural-result-box {
  background: linear-gradient(60deg, #fbfefc, #ebfbee);
  height: 370px;
  width: 750px;
  overflow-y: scroll;
  align-items: start;
  position: absolute;
  z-index: 10;
  transform: translate(-93%, 25%);
}

.result-format {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 15px 15px 15px 50px;
  transition: 400ms all ease;
}

.result-format:hover {
  cursor: pointer;
  background: rgb(7, 185, 255);
}

/**********************************/
/******** KURAL_MEANING *********/
/**********************************/

.kural-meaning {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  position: absolute;
  grid-column: span 3 / span 3;
  background: whitesmoke;
  transform: translate(-38%, -31%);
  width: 1200px;
  z-index: 10;
  overflow-y: scroll;
}

.kural-cancel {
  position: absolute;
  top: 7%;
  right: 5%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  fill: white;
  background: linear-gradient(60deg, #f03e3e, #ff6b6b);
  border-radius: 2px;
  z-index: 11;
}

.kural-cancel svg {
  fill: white;
}

.kural-heading {
  text-align: center;
  border: none;
  border-radius: 20px 0;
  background-color: #b197fc;
  padding: 10px;
  margin: 0 180px 32px 180px;
  font-weight: 400;
  display: inline-block;
}

.kural-tam-box {
  padding: 24px;
}

.kural-eng-box {
  padding: 24px;
}

.kural-tamil,
.kural-english {
  text-align: center;
  margin-bottom: 10px;
  padding: 12px;
}

.kural-tamil {
  position: relative;
}

.quote-tam,
.quote-eng {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 620px;
  margin: 0 auto 24px;
  padding: 22px 18px;
  border-radius: 14px 10px 14px 10px;
  -webkit-border-radius: 14px 10px 14px 10px;
  -moz-border-radius: 14px 10px 14px 10px;
  /* background: aqua; */
  /* background: linear-gradient(#ffe6ea,#ffe3e3); */
  /* background:linear-gradient(#ffec99,#e9fac8) ; */
  /* Temp */
  background: linear-gradient(138deg, #b2f2bb, #f1e5d5, #96f2d7);
  /* border: 4px double #585477; */
  border: 3px solid #585477;
  text-shadow: 0 0 1px black;
  color: black;
}

.quote-tam div,
.quote-eng div {
  margin: 0 auto;
}

.meaning {
  margin-bottom: 24px;
}

.meaning-eng,
.quote-eng {
  font-size: 16px;
  letter-spacing: 0.5px;
}

.quote-eng div p:first-child,
.quote-tam div .kural-line-1,
.kural-pack div .kural-line-1 {
  margin-bottom: 5px;
}

/* *********************** */
/* ******** FOOTER ******* */
/* *********************** */

.footer-section {
  background-color: #88bd8c;
  padding: 14px 40px 0;
}

.footer {
  padding: 15px;
}

.footer h3 {
  text-align: center;
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 24px;
}

.student {
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: center;
  /* gap: 30px; */
  padding-bottom: 5px;
}

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

.student-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 15px;
  margin-right: 15px;
  border-right: 2px solid black;
}

.last {
  padding-right: 0;
  margin-right: 0;
  border-right: none;
}

.student-img {
  border-radius: 50%;
  height: 42px;
  width: 42px;
}

.student-name {
  font-size: 14px;
  text-transform: uppercase;
}

/* *********************** */
/* ******** COMMON ******* */
/* *********************** */

.nav-menu:hover,
.rules-menu:hover {
  color: white;
}

.temscroll {
  display: none;
  margin-bottom: 100px;
}

/******** CENTER_ALIGN ********/
.center {
  text-align: center;
}
/******* End Of CENTER_ALIGN *******/

/******** MARGIN_CENTER ********/

.mar-center {
  margin: 0 auto;
}
/******* End Of MARGIN_CENTER *******/

/******** TAMIL_FONT ********/

.tamil-small {
  font-family: "Mukta Malar", serif;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 1.2px;
}

.tamil-medium {
  font-family: "Mukta Malar", serif;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 1.2px;
}

.tamil-large {
  font-family: "Mukta Malar", serif;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 1.2px;
}

/******* End Of Common *******/

hr {
  margin-bottom: 32px;
  /* border: 1px solid rgb(20, 20, 20); */
  width: 90vw;
  display: none;
}

.credits {
  text-align: center;
  font-size: 16px;
}

/* ====================animation================================== */
@keyframes animatenavitems {
  0% {
    transform: rotateZ(-90deg) rotateX(90deg) scale(0.1);
  }
  100% {
    transform: rotateZ(0) rotateX(0) scale(1);
    opacity: 1;
  }
}

/* ====================nth child chnages================== */
.nav__menu li:nth-child(2) {
  animation-delay: 200ms;
}
.nav__menu li:nth-child(3) {
  animation-delay: 400ms;
}
.nav__menu li:nth-child(4) {
  animation-delay: 600ms;
}
.nav__menu li:nth-child(5) {
  animation-delay: 800ms;
}
