:root {
  /**
   * colors
   */

  --eerie-black_80: hsla(225, 9%, 9%, 0.8);
  --eerie-black_60: hsla(225, 9%, 9%, 0.6);
  --eerie-black: hsl(225, 9%, 9%);
  --light-gray-1: hsl(0, 0%, 80%);
  --light-gray-2: hsl(240, 2%, 81%);
  --gainsboro: hsl(240, 9%, 91%);
  --cultured: hsl(300, 8%, 95%);
  --blue-ryb: hsl(232, 100%, 60%);
  --white_20: hsla(0, 0%, 100%, 0.2);
  --white: hsl(0, 0%, 100%);

  /**
   * typography
   */

  --ff-inter: "Inter", sans-serif;

  --fs-1: 3.6rem;
  --fs-2: 3.2rem;
  --fs-3: 2.4rem;
  --fs-4: 2.2rem;
  --fs-5: 2rem;
  --fs-6: 1.8rem;
  --fs-7: 1.5rem;
  --fs-8: 1.4rem;
  --fs-9: 1.3rem;

  --fw-700: 700;
  --fw-500: 500;
  --fw-300: 300;

  /**
   * spacing
   */

  --section-padding: 50px;

  /**
   * radius
   */

  --radius-16: 16px;
  --radius-pill: 200px;
  --radius-circle: 50%;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  padding: 0;
}

li {
  list-style: none;
}

a,
img,
span,
input,
button,
ion-icon {
  display: block;
}

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

img {
  height: auto;
}

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input {
  width: 100%;
  outline: none;
}

button {
  cursor: pointer;
}

ion-icon {
  pointer-events: none;
}

html {
  font-family: var(--ff-inter);
  font-size: 10px;
  scroll-behavior: smooth;
  cursor: url("../assets/cursor/cursor.png"), auto;
}

body {
  font-size: 1.6rem;
  line-height: 1.5;
}

body.active {
  overflow: hidden;
}

:focus-visible {
  outline-offset: 4px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 80%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 70%);
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.section {
  margin-inline: 15px;
}

.hover\:underline {
  text-underline-offset: 3px;
}

.hover\:underline:is(:hover, :focus) {
  text-decoration: underline;
}

.section:not(.header, .footer-bottom) {
  padding-block-end: var(--section-padding);
  border-block-end: 1px solid var(--light-gray-2);
}

.h1,
.h2,
.h3,
.h4,
.h5 {
  line-height: 1.2;
}

.h1,
.h2 {
  font-weight: var(--fw-300);
}

.h1 {
  font-size: var(--fs-1);
}

.h2 {
  font-size: var(--fs-2);
}

.h3 {
  font-size: var(--fs-3);
}

.h4 {
  font-size: var(--fs-4);
}

.h5 {
  font-size: var(--fs-6);
}

.newsletter-form {
  position: relative;
  max-width: 400px;
}

.newsletter-form .email-field {
  background-color: var(--cultured);
  color: inherit;
  padding: 14px 20px;
  padding-inline-end: 140px;
  border-radius: var(--radius-pill);
}

.newsletter-form .email-field:focus {
  background-color: var(--gainsboro);
}

.newsletter-form .email-field::placeholder {
  color: var(--eerie-black_60);
}

.newsletter-form .btn {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
}

.btn {
  background-color: var(--eerie-black);
  color: var(--white) !important;
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  line-height: 1.3;
  padding: 11px 25px;
  border-radius: var(--radius-pill);
  transition: var(--transition-1);
  position: relative;
  text-transform: uppercase;
}

.animatebtn {
  overflow: hidden;
  background: linear-gradient(90deg, #000, #fff, #000);
  background-repeat: no-repeat;
  background-size: 80%;
  font-weight: 700;
  animation: animatepp 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: rgba(255, 255, 255, 0);
}

@keyframes animatepp {
  0% {
    background-position: -500%;
  }
  100% {
    background-position: 500%;
  }
}

.btn:is(:hover, :focus) {
  background-color: var(--blue-ryb);
}

.section-subtitle {
  padding-block: 15px;
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--light-gray-1);
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-scrollbar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: inline mandatory;
  padding-block-end: 20px;
  margin-block-end: -20px;
  margin-inline: -15px;
  padding-inline: 15px;
}

.has-scrollbar::-webkit-scrollbar {
  height: 10px;
}

.has-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: var(--radius-pill);
}

.has-scrollbar::-webkit-scrollbar-button {
  width: 10px;
}

.has-scrollbar:is(:hover, :focus-within)::-webkit-scrollbar-thumb {
  background-color: var(--light-gray-1);
}

.scrollbar-item {
  min-width: 70%;
  scroll-snap-align: center;
}

.blog-card .card-banner {
  position: relative;
  border-radius: var(--radius-16);
  margin-block-end: 15px;
}

.avatar-list {
  display: flex;
  flex-direction: row-reverse;
}

.avatar-list.absolute {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

.avatar-item:not(:first-child) {
  margin-inline-end: -15px;
}

.avatar {
  width: 40px;
  border-radius: var(--radius-circle);
  background: none;
  border: 5px solid var(--white_20);
  transition: var(--transition-1);
  will-change: transform;
}

.avatar-list.absolute .avatar:is(:hover, :focus) {
  transform: scale(0.9);
  border-color: var(--white);
}

.card-meta-list {
  display: flex;
  gap: 5px;
}

.card-tag {
  background-color: var(--cultured);
  font-size: var(--fs-9);
  font-weight: var(--fw-500);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  transition: var(--transition-1);
}

.card-tag:is(:hover, :focus) {
  background-color: var(--gainsboro);
}

.blog-card .card-title {
  margin-block: 8px 12px;
  text-decoration-thickness: 2px;
}

.blog-card .card-text {
  font-size: var(--fs-8);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  padding-inline-end: 20px;
}

.grid-list {
  display: grid;
  gap: 30px;
}

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.search-btn .span,
.header .btn {
  display: none;
}

.header {
  position: relative;
  padding-block: 25px;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .wrapper {
  display: flex;
  gap: 15px;
}

.search-btn {
  font-size: 28px;
}

.search-btn ion-icon {
  --ionicon-stroke-width: 50px;
}

.nav-toggle-btn .span {
  background-color: var(--eerie-black);
  width: 30px;
  height: 3px;
  transition: var(--transition-1);
}

.nav-toggle-btn .span:not(:last-child) {
  margin-block-end: 7px;
}

.nav-toggle-btn.active .span.two {
  opacity: 0;
}

.nav-toggle-btn.active .span.one {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle-btn.active .span.three {
  transform: translateY(-10px) rotate(-45deg);
}

.navbar {
  background-color: var(--eerie-black);
  color: var(--white);
  position: absolute;
  top: calc(100% - 20px);
  right: 0;
  min-width: 180px;
  padding: 15px 10px;
  border-radius: var(--radius-16);
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-1);
  z-index: 2;
}

.navbar.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.navbar-link {
  text-align: right;
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  padding: 5px;
}

/*-----------------------------------*\
  #SEARCH BAR
\*-----------------------------------*/

.search-bar {
  background-color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  transform: translateY(calc(-100% - 2px));
  z-index: 4;
  transition: var(--transition-1);
  visibility: hidden;
}

.search-bar.active {
  visibility: visible;
  transform: translateY(0);
}

.search-bar .input-field {
  font-size: var(--fs-1);
  font-weight: var(--fw-700);
  line-height: 1.3;
  padding-inline-end: 60px;
}

.search-bar .input-field::placeholder {
  color: var(--eerie-black);
}

.search-bar .input-field::-webkit-search-cancel-button {
  display: none;
}

.search-close-btn {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 45px;
}

.search-close-btn ion-icon {
  --ionicon-stroke-width: 20px;
}

.search-bar-text {
  font-size: 1.4rem;
  color: var(--eerie-black_80);
  margin-block-start: 5px;
}

.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--eerie-black_80);
  transition: var(--transition-1);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.newsletter-text {
  display: none;
}

.hero {
  padding-block-start: 10px;
}

.hero-title {
  margin-block-end: 25px;
}

/*-----------------------------------*\
  #RECENT POST
\*-----------------------------------*/

.top-author {
  display: none;
}

.recent {
  padding-block-start: 15px;
}

.recent .section-title .strong {
  display: block;
}

.recent .section-title {
  margin-block-end: 20px;
}

.recent .btn {
  margin-inline: auto;
  margin-block: 50px 30px;
}

/*-----------------------------------*\
  #RECOMMENDED POST
\*-----------------------------------*/

.section.recommended {
  border-block-end: none;
}

.recommended .grid-list {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.recommended .blog-card {
  margin-block-end: 5px;
}

/*-----------------------------------*\
  #NEWSLETTER
\*-----------------------------------*/

.newsletter {
  padding-block-start: 40px;
}

.newsletter .section-title {
  margin-block-end: 25px;
}

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  padding-block: 40px 20px;
}

.section.footer-top {
  border-block-end: none;
}

.footer-top {
  display: grid;
  gap: 25px;
}

.footer .logo {
  margin-block-end: 25px;
}

.footer-text {
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
  line-height: 1.4;
}

.footer-list .h5 {
  font-weight: var(--fw-700);
  margin-block-end: 15px;
}

.footer-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-list-item ion-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.footer-link {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
  margin-block-start: 8px;
}

.copyright {
  font-size: var(--fs-8);
  margin-block-start: 25px;
}

.copyright-link {
  display: inline-block;
}

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-1: 6rem;
    --fs-2: 4.8rem;
  }

  /**
   * REUSED STYLE
   */

  .section {
    margin-inline: 30px;
  }

  .newsletter-form,
  .btn {
    --fs-6: 2.2rem;
  }

  .newsletter-form .email-field {
    font-size: var(--fs-6);
    padding-inline-end: 170px;
  }

  .btn {
    padding: 14px 30px;
  }

  .section-subtitle {
    font-size: var(--fs-6);
  }

  .has-scrollbar {
    margin-inline: -30px;
    padding-inline: 30px;
  }

  .has-scrollbar::-webkit-scrollbar-button {
    width: 15px;
  }

  .scrollbar-item {
    min-width: 40%;
  }

  .grid-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
  }

  /**
   * HEADER
   */

  .header {
    padding-block: 30px;
  }

  /**
   * SEARCH BAR
   */

  .search-bar .input-field {
    --fs-1: 3.6rem;
  }

  /**
   * RECOMMENDED POST, FOOTER
   */

  .recommended .grid-list,
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / 4;
  }

  .footer-text {
    max-width: 400px;
    margin-block-end: 20px;
  }
}

/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-1: 7.2rem;
    --fs-2: 5.5rem;

    /**
     * radius
     */

    --radius-16: 26px;
  }

  /**
   * REUSED STYLE
   */

  .section {
    margin-inline: 50px;
  }

  .has-scrollbar {
    margin-inline: -50px;
    padding-inline: 50px;
    gap: 15px;
  }

  .has-scrollbar::-webkit-scrollbar-button {
    width: 25px;
  }

  .scrollbar-item {
    min-width: 30%;
  }

  .grid-list {
    gap: 40px 15px;
  }

  /**
   * SEARCH BAR
   */

  .search-bar {
    padding: 25px;
  }

  .search-bar .input-field {
    --fs-1: 4.6rem;
  }

  /**
   * RECENT POST
   */

  .top-author {
    display: block;
    text-align: right;
  }

  .recent .title-wrapper {
    display: flex;
    justify-content: space-between;
    margin-block-end: 10px;
  }

  .top-author .avatar-item:not(:first-child) {
    margin-inline-end: -25px;
  }

  .top-author .span {
    color: var(--eerie-black_80);
    font-size: var(--fs-8);
    margin-block-start: 10px;
  }

  .avatar.large {
    border: 6px solid var(--white);
    width: 70px;
  }

  .avatar.large:is(:hover, :focus) {
    transform: translateY(-3px);
  }

  /**
   * RECOMMENDED POST
   */

  .recommended .grid-list {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 15px;
  }

  /**
   * FOOTER
   */

  .footer-top {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: 1 / 5;
  }

  .footer-link {
    --fs-7: 1.7rem;
  }
}

/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-1: 8.8rem;

    /**
     * spacing
     */

    --section-padding: 60px;
  }

  /**
   * REUSED STYLE
   */

  .section {
    margin-inline: 60px;
  }

  .has-scrollbar {
    margin-inline: -60px;
    padding-inline: 60px;
  }

  .has-scrollbar::-webkit-scrollbar-button {
    width: 30px;
  }

  .btn {
    --fs-6: 2.4rem;
    padding: 18px 36px;
  }

  .newsletter-form {
    max-width: 450px;
  }

  .newsletter-form .email-field {
    padding-block: 18px;
    padding-inline-start: 30px;
  }

  .blog-card .card-title {
    padding-inline-end: 15px;
  }

  .blog-card .card-text {
    font-size: unset;
  }

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

  /**
   * HEADER
   */

  .nav-toggle-btn {
    display: none;
  }

  .search-btn .span,
  .header .btn {
    display: block;
  }

  .header .wrapper {
    gap: 10px;
  }

  .search-btn,
  .header .btn {
    --fs-6: 1.8rem;
    padding: 6px 20px;
  }

  .search-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--cultured);
    font-size: var(--fs-6);
    font-weight: var(--fw-500);
    border-radius: var(--radius-pill);
    transition: var(--transition-1);
  }

  .search-btn:is(:hover, :focus) {
    background-color: var(--gainsboro);
  }

  .navbar,
  .navbar.active {
    all: unset;
    margin-inline: auto 12px;
  }

  .navbar-list {
    display: flex;
    gap: 8px;
  }

  /**
   * HERO
   */

  .hero {
    padding-block-start: 25px;
  }

  .hero-title {
    margin-block-end: 30px;
  }

  .hero .newsletter-text {
    display: block;
    max-width: 400px;
    color: var(--eerie-black_80);
    line-height: 1.3;
  }

  .hero .wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  /**
   * RECENT POST
   */

  .top-author .avatar {
    width: 85px;
  }

  /**
   * RECOMMENDED POST
   */

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

  /**
   * NEWSLETTER
   */

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

  .newsletter .section-title {
    margin-block-end: 0;
  }
}

/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-1: 9.2rem;
    --fs-2: 6rem;
    --fs-3: 2.6rem;
    --fs-4: 2.4rem;
  }

  /**
   * REUSED STYLE
   */

  .section {
    margin-inline: 70px;
  }

  .has-scrollbar {
    margin-inline: -70px;
    padding-inline: 70px;
  }

  .has-scrollbar::-webkit-scrollbar-button {
    width: 35px;
  }

  .card-tag {
    --fs-9: 1.4rem;
    padding: 4px 10px;
  }

  .grid-list {
    row-gap: 50px;
  }

  /**
   * HERO
   */

  .section.hero {
    padding-block: 50px 80px;
  }

  .hero-title {
    margin-block-end: 50px;
  }

  /**
   * RECENT POST
   */

  .top-author .avatar {
    width: 100px;
  }

  .recent .btn {
    margin-block-start: 70px;
  }

  /**
   * FOOTER
   */

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

  .footer-brand {
    grid-column: auto;
    padding-inline-end: 100px;
  }
}

.accordion {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #fff;
  max-width: 100%;
  border-radius: 4rem;
  overflow: hidden;
  box-shadow: 0 0 0.8rem 0.1rem rgba(15, 72, 179, 0.06),
    0 20px 30px -10px rgba(15, 72, 179, 0.2);
}
.accordion-list__item + .accordion-list__item {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-item--opened .accordion-item__icon {
  transform: rotate(180deg);
}
.accordion-item--opened .accordion-item__inner {
  max-height: 100rem;
  transition-timing-function: cubic-bezier(0.895, 0.03, 0.685, 0.22);
  transition-duration: 0.5s;
  transition-property: max-height;
}
.accordion-item--opened .accordion-item__content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
  transition-timing-function: ease-in-out;
  transition-duration: 0.2s;
  transition-property: opacity, transform;
}
.accordion-item__line {
  display: block;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  z-index: 2;
  position: relative;
}
.accordion-item__title {
  font-size: 1.6rem;
  margin: 0;
  font-weight: 700;
  color: #121212;
}
.accordion-item__icon {
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 0.3s ease-in-out;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAQAAABIkb+zAAABGklEQVR4Ae3RAcZCQRiF4buDfwshBGi+2UQgcIGAVtpSIuS/KyilG+UTcbk6zIH3GQBm3mM6AAAAAAAAAACA+eqf/yZBXcV/2XeCVPYx1FXj/FjGUMd45AQp/1HHGGLZNL+e61jHnKDmv8652YT1IvPfE2LX/Sh27/ycsF60yT/lk58JYn6eU4MJccjnlAmZ/33i0OAH4jg9Qcw/5g9YJpS+m6n0xvzpCfVe+nn59S7kGyYo+YYJWz3fO+E2PaFs9XzPhMy/6fmWCXq+YUJs9HzrhLh+JsQmrnq+bYKeb52g53snXPR88wQ93z9Bz/dP0PP9E/R89wQ93zpBz7dO0POtE/R86wQ93zpBzzdP+MoHAAAAAAAAAADAExTnTW20AtjhAAAAAElFTkSuQmCC);
  opacity: 0.6;
}
.accordion-item__inner {
  max-height: 0;
  overflow: hidden;
  text-transform: cubic-bezier(0.95, 0.05, 0.795, 0.035);
  transition-duration: 0.5s;
  transition-property: max-height;
  z-index: 1;
  position: relative;
}
.accordion-item__content {
  opacity: 0;
  transform: translateY(-1rem);
  transition-timing-function: linear, ease;
  transition-duration: 0.1s;
  transition-property: opacity, transform;
  transition-delay: 0.5s;
}
.accordion-item__paragraph {
  margin: 0;
  font-size: 1rem;
  color: #333;
  font-weight: 300;
  line-height: 1.3;
}

input[type="radio"] {
  display: none;
}
#cheat {
  position: absolute;
  bottom: 0;
  right: 0;
}
#cheat:checked ~ input[type="radio"] {
  display: block;
}
#cheat:checked ~ input[type="radio"]::after {
  content: attr(id);
  color: #fff;
  display: block;
  padding-left: 1em;
  width: 30em;
}
#a-up,
#a-left,
#b-up,
#b-center,
#c-up,
#c-right,
#d-middle,
#d-left,
#e-middle,
#e-center,
#f-middle,
#f-right,
#g-down,
#g-left,
#h-down,
#h-center {
  outline: 2px solid red;
}

.board {
  font-size: 1vmin;
  outline: 2em solid #333;
  width: 60em;
  height: 60em;
  position: relative;
  left: calc(50% - 30em);
  top: calc(50% - 30em);
  overflow: hidden;
}
[class^="peice"] {
  --x: 20em;
  position: absolute;
  width: 20em;
  height: 20em;
  transform: translate(var(--x), var(--y));
  transition: transform 0.5s;
}
[class^="peice"].img {
  background-size: 60em 60em;
  box-shadow: inset 0 0 0em 0.2em #eee, inset 1em 1em 1em #eee5,
    inset -1em -1em 1em #0005;
  box-sizing: box-border;
}
.peice-a.img {
  background-position: top left;
}
.peice-b.img {
  background-position: top center;
}
.peice-c.img {
  background-position: top right;
}
.peice-d.img {
  background-position: center left;
}
.peice-e.img {
  background-position: center center;
}
.peice-f.img {
  background-position: center right;
}
.peice-g.img {
  background-position: bottom left;
}
.peice-h.img {
  background-position: bottom center;
}
[class^="peice"] label {
  display: block;
  width: 13em;
  height: 13em;
  position: absolute;
  transform: rotate(45deg);
  background: #444;
}
[class^="peice"] label:hover {
  background: #666;
  outline: 0.5em solid #111;
}
[class^="peice"] label[for$="up"] {
  top: -6em;
  left: 3.5em;
}
[class^="peice"] label[for$="middle"] {
  display: none;
  z-index: 5;
  left: 3.5em;
}
[class^="peice"] label[for$="down"] {
  bottom: -6em;
  left: 3.5em;
}
[class^="peice"] label[for$="left"] {
  left: -6em;
  top: 3.5em;
}
[class^="peice"] label[for$="center"] {
  display: none;
  z-index: 5;
  top: 3.5em;
}
[class^="peice"] label[for$="right"] {
  right: -6em;
  top: 3.5em;
}

#a-up:checked ~ * [for="a-middle"],
#b-up:checked ~ * [for="b-middle"],
#c-up:checked ~ * [for="c-middle"],
#d-up:checked ~ * [for="d-middle"],
#e-up:checked ~ * [for="e-middle"],
#f-up:checked ~ * [for="f-middle"],
#g-up:checked ~ * [for="g-middle"],
#h-up:checked ~ * [for="h-middle"] {
  display: block;
  transform: translate(0, 13em) rotate(45deg);
}
#a-down:checked ~ * [for="a-middle"],
#b-down:checked ~ * [for="b-middle"],
#c-down:checked ~ * [for="c-middle"],
#d-down:checked ~ * [for="d-middle"],
#e-down:checked ~ * [for="e-middle"],
#f-down:checked ~ * [for="f-middle"],
#g-down:checked ~ * [for="g-middle"],
#h-down:checked ~ * [for="h-middle"] {
  display: block;
  transform: translate(0, -6em) rotate(45deg);
}
#a-left:checked ~ * [for="a-center"],
#b-left:checked ~ * [for="b-center"],
#c-left:checked ~ * [for="c-center"],
#d-left:checked ~ * [for="d-center"],
#e-left:checked ~ * [for="e-center"],
#f-left:checked ~ * [for="f-center"],
#g-left:checked ~ * [for="g-center"],
#h-left:checked ~ * [for="h-center"] {
  display: block;
  transform: translate(13em, 0) rotate(45deg);
}
#a-right:checked ~ * [for="a-center"],
#b-right:checked ~ * [for="b-center"],
#c-right:checked ~ * [for="c-center"],
#d-right:checked ~ * [for="d-center"],
#e-right:checked ~ * [for="e-center"],
#f-right:checked ~ * [for="f-center"],
#g-right:checked ~ * [for="g-center"],
#h-right:checked ~ * [for="h-center"] {
  display: block;
  transform: translate(-6em, 0) rotate(45deg);
}

#a-up:checked ~ * .peice-a,
#b-up:checked ~ * .peice-b,
#c-up:checked ~ * .peice-c,
#d-up:checked ~ * .peice-d,
#e-up:checked ~ * .peice-e,
#f-up:checked ~ * .peice-f,
#g-up:checked ~ * .peice-g,
#h-up:checked ~ * .peice-h {
  --y: 0;
}
#a-middle:checked ~ * .peice-a,
#b-middle:checked ~ * .peice-b,
#c-middle:checked ~ * .peice-c,
#d-middle:checked ~ * .peice-d,
#e-middle:checked ~ * .peice-e,
#f-middle:checked ~ * .peice-f,
#g-middle:checked ~ * .peice-g,
#h-middle:checked ~ * .peice-h {
  --y: 20em;
}
#a-down:checked ~ * .peice-a,
#b-down:checked ~ * .peice-b,
#c-down:checked ~ * .peice-c,
#d-down:checked ~ * .peice-d,
#e-down:checked ~ * .peice-e,
#f-down:checked ~ * .peice-f,
#g-down:checked ~ * .peice-g,
#h-down:checked ~ * .peice-h {
  --y: 40em;
}
#a-left:checked ~ * .peice-a,
#b-left:checked ~ * .peice-b,
#c-left:checked ~ * .peice-c,
#d-left:checked ~ * .peice-d,
#e-left:checked ~ * .peice-e,
#f-left:checked ~ * .peice-f,
#g-left:checked ~ * .peice-g,
#h-left:checked ~ * .peice-h {
  --x: 0;
}
#a-center:checked ~ * .peice-a,
#b-center:checked ~ * .peice-b,
#c-center:checked ~ * .peice-c,
#d-center:checked ~ * .peice-d,
#e-center:checked ~ * .peice-e,
#f-center:checked ~ * .peice-f,
#g-center:checked ~ * .peice-g,
#h-center:checked ~ * .peice-h {
  --x: 20em;
}
#a-right:checked ~ * .peice-a,
#b-right:checked ~ * .peice-b,
#c-right:checked ~ * .peice-c,
#d-right:checked ~ * .peice-d,
#e-right:checked ~ * .peice-e,
#f-right:checked ~ * .peice-f,
#g-right:checked ~ * .peice-g,
#h-right:checked ~ * .peice-h {
  --x: 40em;
}
.winner {
  font-family: arial;
  color: #fff;
  text-align: center;
  font-size: 4vw;
  z-index: 100;
  width: 100%;
  height: 2em;
  position: absolute;
  top: calc(50% - 1em);
  line-height: 2em;
  background: red;
  transform: scale(0);
}
#a-up:checked
  ~ #a-left:checked
  ~ #b-up:checked
  ~ #b-center:checked
  ~ #c-up:checked
  ~ #c-right:checked
  ~ #d-middle:checked
  ~ #d-left:checked
  ~ #e-middle:checked
  ~ #e-center:checked
  ~ #f-middle:checked
  ~ #f-right:checked
  ~ #g-down:checked
  ~ #g-left:checked
  ~ #h-down:checked
  ~ #h-center:checked
  ~ .winner {
  animation: winner 3s 1 1s;
}
@keyframes winner {
  0%,
  100% {
    transform: scale(0);
  }
  10%,
  90% {
    transform: scale(1);
  }
}

.selectBG {
  display: inline-block;
  font-family: arial;
  font-size: 2vmin;
  width: 8em;
  text-align: center;
  padding: 1em 0;
  background: #000;
  color: #fff;
  border: 0.25em solid #333;
  margin: 2em 0.25em;
}
#cage:checked ~ *[for="cage"],
#cageAnim:checked ~ *[for="cageAnim"],
#cageKitten:checked ~ *[for="cageKitten"] {
  border-bottom-color: #0062b9cc;
  border-bottom-width: 1rem;
}
#cage:checked ~ * [class^="peice"].img {
  background-image: url(../assets/images/blog1.jpg);
}
#cageAnim:checked ~ * [class^="peice"].img {
  background-image: url(../assets/images/blog2.jpg);
}
#cageKitten:checked ~ * [class^="peice"].img {
  background-image: url(../assets/png/youcef.jpg);
}

figuree {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100%;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  &:before,
  &:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  &:before {
    content: "";
    background-color: rgba(black, 0.1);
    z-index: 0;
  }
  &:after {
    content: "";
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
  }
  &:hover {
    background-size: 175%;
    background-color: #0062b9cc;
    &:after {
      content: "See More";
      color: white;
      font-size: 72px;
      z-index: 2;
    }
    .date {
      bottom: -59px;
    }
    figcaption {
      transform: translateY(-110%);
    }
  }
  .date {
    position: absolute;
    bottom: 0;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px;
    text-shadow: 1px 1px rgba(black, 0.7);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    span {
      color: white;
      line-height: 1;
      &:first-child {
        font-size: 20px;
        font-weight: 900;
      }
      &:last-child {
        font-size: 14px;
        font-weight: 400;
      }
    }
  }
  @media screen and (max-width: 600px) {
    .date {
      display: none;
    }
  }
  figcaption {
    margin-top: 10px;
    color: white;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
    h4 {
      margin: 0 0 5px;
      font-size: 24px;
      line-height: 1.35;
      text-shadow: 1px 1px rgba(black, 0.7);
    }
    p {
      margin: 0;
      line-height: 1.5;
    }
  }
}

#particles-js {
  width: 100%;
  height: 100%;
  background-color: #0062b9cc;
  background-image: url("../assets/images/accordion.png");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
  height: 0;
  overflow: hidden;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tag-list {
  width: 30rem;
  max-width: 90vw;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 1rem 0;
  position: relative;
  padding: 1.5rem 0;
  overflow: hidden;
}

.loop-slider {
  .inner {
    display: flex;
    width: fit-content;
    animation-name: loop;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: var(--direction);
    animation-duration: var(--duration);
  }
}

.tag {
  display: flex;
  align-items: center;
  gap: 0 0.2rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  background-color: #0063b9ab;
  border-radius: 0.4rem;
  padding: 0.7rem 1rem;
  margin-right: 1rem;

  span {
    font-size: 1.2rem;
    color: #0062b9cc;
  }
}

.fade {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

@keyframes loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.notification {
  background: rgba(255, 82, 82, 1);
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  border-radius: 50%;
  height: 20px;
  width: 20px;
  transform: scale(1);
  box-shadow: 0 0 0 0 rgba(255, 82, 82, 1);
  animation: pulse-red 2s infinite;
}

.notification2 {
  background-color: #0062b9;
  box-shadow: 0 0 0 0 #0062b9;
  animation: pulse-blue 2s infinite;
  border-radius: 5rem;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 25px rgba(255, 82, 82, 0);
  }

  100% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
  }
}

@keyframes pulse-blue {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(3, 65, 199, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 25px rgba(8, 61, 121, 0);
  }

  100% {
    transform: scale(0.999999999);
    box-shadow: 0 0 0 0 rgba(12, 23, 167, 0);
  }
}

/* /////////////////////// */

.notificationn {
  z-index: 1000;
  width: 90%; /* Adjust as needed */
  max-width: 360px; /* Limit maximum width */
  padding: 5px; /* Use percentage-based padding for responsiveness */
  background-color: white;
  border-radius: 8px;
  position: fixed;
  bottom: 3vw; /* Use percentage-based positioning */
  left: 3vw; /* Use percentage-based positioning */
  transform: translateY(200%);
  animation: noti 40s ease-out;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

@keyframes noti {
  65% {
    transform: translateY(1000%);
  }
  70% {
    transform: translateY(0);
  }
  95% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(200%);
  }
}

.form-outline {
  position: relative;
  width: 100%;
  margin: 20px;
  padding: 10px;
}

/* Style for the input field */
.form-outline input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  font-weight: 100;
}

.form-outline select,
.form-outline select option {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  top: -0.5rem;
  left: 0rem;
  font-size: 20px;
  font-weight: 100;
}

/* Style for the input label */
.form-outline label {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  color: #777;
  transition: top 0.15s ease-in-out, left 0.15s ease-in-out,
    font-size 0.15s ease-in-out;
}

/* Style for the label when input is focused */
.form-outline input:focus + label,
.form-outline input:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 0rem;
  font-size: 20px;
  color: #6c757d;
}
