@font-face {
  font-family: Jura;
  src: url(./media/fonts/Jura-VariableFont_wght.ttf);
}
@font-face {
  font-family: RougeScript;
  src: url(./media/fonts/RougeScript-Regular.ttf);
}
@font-face {
  font-family: Yekan;
  src: url(./media/fonts/IRANYekanXVFaNumVF.ttf);
}

/* GENERAL */

body {
  font-family: Yekan;
  margin: 0;
  direction: rtl;
}

.main-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.flex {
  display: flex;
}

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

h1 {
  text-align: center;
}

.sign {
  position: absolute;
  right: 30px;
  top: 30px;
}

.centerize {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.pngs {
  display: flex;
  flex-direction: column;
}

.pngs > img {
  width: 280px;
  border-radius: 40px;
}

@media screen and (max-width: 800px) {
  .main-layout {
    gap: 32px;
  }

  .width300 > img {
    width: 100%;
  }
}

/* NAVBAR */

.topnav {
  overflow: hidden;
  padding: 32px 32px 20px 32px;
  display: flex;
  justify-content: space-between;
  vertical-align: baseline;
}
.primary-btn {
  padding: 14px 20px;
  background-color: var(--primary-300);
  color: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--bottom-shadow);
  cursor: pointer;
}
.primary-btn:hover {
  box-shadow: var(--grey-shadow);
  border: 2px solid white;
}
.secondary-btn {
  padding: 14px 20px;
  background-color: var(--primary-50);
  color: var(--primary-300);
  border-radius: var(--radius-sm);
  box-shadow: var(--bottom-shadow);
  cursor: pointer;
}
.secondary-btn:hover {
  box-shadow: var(--grey-shadow);
  border: 2px solid white;
}
/* 
.topnav a {
  float: left;
  display: block;
  padding: 20px;
  color: var(--primary-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.topnav a:not(:first-child):hover {
  background-color: var(--secondary-50);
}

.topnav a.active {
  background-color: #04AA6D;
  color: white;
} 

.topnav .icon {
  display: none;
}
*/


@media screen and (max-width: 800px) {
  .topnav {
    padding: 20px 10px;
  }
  /* .topnav a:not(:first-child) {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 10px;
    top: 10px;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  } 
  .sign {
    display: none;
  }*/
}

/* HEADER */
.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 52px;
}
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  width: 90%;
}
.header > h1 {
  font-weight: 200;
}


@media screen and (max-width: 800px) {
  .header-container {
  margin-bottom: 24px;
}
  .header {
    padding: 20px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .header > div > img {
    width: 200px;
  }
  .header > p {
    margin-top: 0;
    font-size: var(--text-3xl);
  }
}

/* AVAGHEB NAKHARIDAN */
.avagheb-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.avagheb {
  padding: 20px 40px;
  border: var(--border-lg);
  box-shadow: var(--green-shadow);
  border-radius: var(--radius-lg);
  background-color: var(--primary-50);
  display: flex;
  gap: 48px;
  width: 60%;
}
.avagheb > div > img {
  width: 300px;
}
.avagheb > p {
  font-size: var(--text-base);
  color: var(--primary-300);
}

@media screen and (max-width: 800px) {
  .avagheb {
    padding: 20px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 90%;
  }
  .avagheb > div > img {
    width: 200px;
  }
  .avagheb > p {
    margin-top: 0;
    font-size: var(--text-2xl);
  }
}

/* PRODUCTS */
.products-container {
  display: grid;
  grid-template-columns: auto auto;
  /* margin: 24px 48px; */
  gap: 24px
}
.hide {
  display: none;
} 
.products-container div:hover {
  border-radius: var(--radius-lg);
  box-shadow: var(--grey-shadow);
  font-size: var(--text-2xl);
  color: white;
  background-color: var(--primary-300);
}

.product-btn {
  text-align: center;
  padding: 4px 14px 14px 14px;
}

@media screen and (max-width: 800px) {
  
.products-container {
  display: flex;
  flex-direction: column;
}

}

/* KHABARNAME */
.khabarname {
  padding: 20px 40px;
  border: var(--border-lg);
  box-shadow: var(--green-shadow);
  border-radius: var(--radius-lg);
  background-color: var(--primary-50);
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 60%;
}
.sub-khabarname {
  display: flex;
  justify-content: space-between;
}
.sub-khabarname > div > img {
  width: 100px;
}
.sub-khabarname > div > div > img {
  width: 40px;
  vertical-align: baseline;
}
.sub-khabarname > p {
  font-size: var(--text-base);
  color: var(--primary-300);
}

input[type=text], input[type=submit] {
  padding: 12px;
  margin: 8px 0;
  border: 1px solid white;
  background-color: #ffffff80;
  border-radius: 10px;
  font-family: yekan;
  font-size: var(--text-xl);
}

input[type=checkbox] {
  margin-top: 16px;
  font-family: yekan;
}

input[type=submit] {
  background-color: var(--surface-300);
  color: white;
  border: none;
  font-family: yekan;
  font-size: var(--text-xl);
}

input[type=text]:hover {
  box-shadow: var(--grey-shadow);
  background-color: white;
}

input[type=submit]:hover {
  box-shadow: var(--grey-shadow);
  border: 2px solid white;
}

@media screen and (max-width: 800px) {
  .khabarname {
    padding: 20px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 90%;
  }
  .khabarname > div > img {
    width: 200px;
  }
  .khabarname > p {
    margin-top: 0;
    font-size: var(--text-3xl);
  }
}


/* SWIPER */

.swiper-subject {
  margin: 0 40px;
  font-size: var(--text-4xl);
  margin-bottom: 20px;
}
.swiper-container {
  display: flex;
  gap: 10px;
  width: 100%-40px;
  padding: 0px 40px;
  overflow-x: scroll;
}
.swiper-container > a {
  display: flex;
  flex-direction: column;
  text-align: center;
  /* background-color: var(--primary-50); */
  cursor: pointer;
  font-family: Jura;
}
.swiper-container > a > img {
  width: 300px;
  border-radius: var(--radius-lg);
}
.swiper-container > a > p {
  margin: 8px 0;
}
.swiper-container > a > img:hover {
  border: 4px solid var(--surface-300);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.swiper-container::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.swiper-container {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

@media screen and (max-width: 800px) {
  .swiper-subject {
    margin: 20px;
    font-size: var(--text-3xl);
  }
  .swiper-container {
    width: 100%-20px;
    padding: 0px 20px;
  }
}

/* TWIN BANNER */

.twin-banner-container {
  display: flex;
  gap: 24px;
  padding: 40px;
  justify-content: center;
  align-items: center;
}

.twin-banner-item {
  width: 100%;
  height: 300px;
  text-align: center;
  border-radius: var(--radius-lg);
  background-color: var(--primary-50);
  cursor: pointer;
}

@media screen and (max-width: 800px) {
  .twin-banner-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
  }
}

/* TEXT SLIDER */

.text-slider {
  color: var(--primary-100);
  font-family: RougeScript;
  font-size: var(--text-6xl);
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  text-overflow: clip;
  margin: 72px 0;
}

/* FOOTER */

.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 24px;
  color: var(--surface-50);
  background-color: var(--primary-200);
}

.short-about {
  text-align: left;
  font-size: var(--text-3xl);
  width: 60%;
}
.twin-button-madule {
  display: flex;
  gap: 24px;
}
.button-lg {
  display: flex;
  gap: 18px;
  padding: 10px 20px;
  border: var(--border-sm);
  border-radius: var(--radius-sm);
  color: var(--surface-300);
  background-color: var(--primary-50);
  font-weight: 700;
}
.button-lg:hover {
  background-color: var(--secondary-50);
}
@media screen and (max-width: 800px) {
  .footer {
    justify-content: left;
    align-items: flex-start;
    gap: 14px;
  }
  .short-about {
    width: 100%;
  }
  .twin-button-madule {
    flex-direction: column-reverse;
    width: 100%;
    min-height: 48px;
  }
  
  .header > .centerize > .twin-button-madule > div {
    padding: 24px;
    text-align: center;
    font-size: var(--text-2xl);
  }
}

/* COLOR PALETTE */

.palette-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 48px 48px 48px;
  border: solid 6px var(--surface-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--grey-shadow);
  max-width: 60%;
}

.palette-rows {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.color-row {
  display: flex;
  gap: 14px;
}

.color-row > div {
  display: flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  border: none;
  font-size: 12px;
}

.color-row > div:hover {
  box-shadow: var(--grey-shadow);
  cursor: pointer;
}

@media screen and (max-width: 800px) {
  .palette-container {
    border: none;
    box-shadow: none;
    max-width: 60%;
    margin: 0 0 64px 0;
  }
}

/* TOOLTIP */
.tooltip {
  position: relative;
}
.tooltip:after,
.tooltip:before {
  opacity: 0;
  pointer-events: none;
  bottom: 100%;
  left: 50%;
  position: absolute;
  z-index: 10;
  transform: translate(-50%, 10px);
  transform-origin: top;
  transition: all 0.18s ease-out 0.18s;
}

.tooltip:after {
  background-color: var(--surface-300);
  color: white;
  border-radius: 10px;
  content: attr(data-tooltip);
  padding: 8px 16px;
  white-space: nowrap;
  margin-bottom: 11px;
}

.tooltip:before {
  width: 0;
  height: 0;
  content: "";
  margin-bottom: 6px;
}

.tooltip:hover:before,
.tooltip:hover:after {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

[data-tooltip-pos="up"]:before {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #f5f5f5;
  margin-bottom: 6px;
}

/* COPIED ALART */
.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2ecc71;
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.notification.show {
  opacity: 1;
}

:root {
  /* Color */
  --primary-50: hsl(200, 24%, 93%);
  --primary-100: hsl(200, 11%, 67%);
  --primary-200: hsl(200, 17%, 41%);
  --primary-300: hsl(200, 25%, 24%);

  --secondary-50: hsl(56, 80%, 86%);
  --secondary-200: hsl(56, 100%, 67%);

  --surface-50: hsl(200, 100%, 100%);
  --surface-100: hsl(200, 0%, 90%);
  --surface-300: hsl(200, 0%, 20%);

  /* Shadow */
  --grey-shadow: 0px 0px 20px hsla(0, 0%, 36%, 0.575);
  --green-shadow: 0px 0px 10px hsla(201, 12%, 54%, 0.25);
  --bottom-shadow: 0px 3px 4px hsla(0, 0%, 0%, 0.18);

  /* Border */
  --border-sm: 4px solid white;
  --border-lg: 6px solid white;

  /* Radius */
  --radius-sm: 14px;
  --radius-md: 32px;
  --radius-lg: 40px;

  /* Fonts */
  --text-6xl: 48px;
  --height-6xl: 58px;

  --text-5xl: 40px;
  --height-5xl: 52px;

  --text-4xl: 36px;
  --height-4xl: 48px;

  --text-3xl: 24px;
  --height-3xl: 32px;

  --text-2xl: 20px;
  --height-2xl: 24px;

  --text-base: 16px;
  --height-base: 24px;
}
