/*
 Theme Name:   Moonlit Dark Child
 Template:     moonlit-dark
 Author:       Clemenc
 Version:      1.0.0
 Description:  Child theme of Moonlit Dark
*/

html {
    font-size: 16px;
    line-height: 1.5;
    font-family: sans-serif;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: 'Roboto';
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

h1 {
    color: #fff;
}

h2 {
    color: #ccc;
}

h4 {
    color: #ce493f;
}

p{
    color: #ddd;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin: 0 0 20px;
}

h3, h4, h5, h6 {
    color: #ddd;
}

a {
    color: #ddd !important;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #fff !important;
}

ul{
    text-align: left;
}

/* original override */
.head-banner-img {
  background-color: #000;
  /* color: #888; */
   /* background-color: transparent !important; */
}

.site-hook-header {
  height: 170px;
  margin-top: 10px;
  margin-bottom: 80px;
}

.site-header {
    background-color: #000;
    border-top: 1px solid #a25752;
    border-bottom: 1px solid #a25752;
    /* height: 200px; */
}

.secondary-description {
  color: #e6653f;
}

.third-description {
  color: #567b7d;
}

.site-nav {
  background-color: #272930;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-footer ul li {
  display: inline-block;
  margin-right: 30px;
}

.menu-insta > a::before {
    font-family: "Font Awesome 5 Brands"; /* Pour Font Awesome, les icônes de marques */
    content: "\f16d";
    font-size: 2em;
    color: #E1306C; /* rose Instagram */
    margin-right: -15px;
}

.menu-insta > a {
  color: #E1306C !important;
}

.menu-linkedin > a::before {
    font-family: "Font Awesome 5 Brands";
    content: "\f08c"; /* icône LinkedIn */
    font-size: 2em;
    color: #0077B5; /* bleu LinkedIn */
    margin-right: -15px;
}

.menu-linkedin > a {
  color: #0077B5 !important;
}

.menu-twitter > a::before {
    font-family: "Font Awesome 5 Brands";
    content: "\f099"; /* icône LinkedIn */
    font-size: 2em;
    color: #1DA1F2; /* bleu LinkedIn */
    margin-right: -22px;
}

.menu-twitter > a {
  color: #1DA1F2 !important;
}

.menu-itchio > a::before {
    font-family: "Font Awesome 5 Brands";
    content: "\f83a"; /* icône Itch.io */
    font-size: 2em;
    color: #fa5c5c;
    margin-right: -22px;
}

.menu-itchio > a {
    color: #fa5c5c !important;
}

.menu-steam > a::before {
    font-family: "Font Awesome 5 Brands";
    content: "\f1b6"; /* icône Steam */
    font-size: 2em;
    color: #0077B5;
    margin-right: -22px;
}

.menu-steam > a {
    color: #0077B5 !important;
}

.menu-discord > a::before {
    font-family: "Font Awesome 5 Brands";
    content: "\f392"; /* icône Discord */
    font-size: 2em;
    color: #5865F2; /* bleu Discord */
    margin-right: -22px;
}

.menu-discord > a {
    color: #5865F2 !important;
}

.display_only {
    text-align: center;
    padding: 15px 0 0 0;
    margin: 0;
}

.chalkpoint-fall,
.the-sundew {
  position: relative;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.chalkpoint-fall {
  color: #e6653f;
}

.the-sundew {
  color: #567b7d;
}

.row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  margin-left: 0;
  margin-right: 0;
}

.blog-page-main .post {
    border-width: 1px;
    border-color: #a25752;
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* .post p,
.entry-summary,
.post-excerpt */
.post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 120px;
}


.post {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  /* min-width: 430px; */
  /* width: 430px;
  height: 430px; */
  text-align: left;
  background-color: #000;
  border-radius: 0px;
}

.adsense {
  width: 400px;
  height: 400px;
  color: white;
  border: 1px solid #222;
  margin: auto;
  padding: auto;
  /* margin: 20px;
  padding: 20px; */
  text-align: center;
}

.post-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.post-title {
  font-size: 1.5em;
}

.post-date,
.post-title,
.post p {
  color: white;
  position: relative;
  z-index: 3;
  transition: opacity 1s ease;
  text-shadow:
    -3px -3px 0 #000,
     3px -3px 0 #000,
    -3px  3px 0 #000,
     3px  3px 0 #000,
    -3px  0px 0 #000,
     3px  0px 0 #000,
     0px -3px 0 #000,
     0px  3px 0 #000,
     0px  0px 2px #000;
}

pre {
  color: #ddd; /* couleur du texte */
  /* font-family: "Georgia", serif; /* ou ta police préférée */ */
}

.post-title {
  margin-top: 30px;
}

/* .post p {
  margin-top: 120px;
} */

.blog-page-main .post.has-thumbnail:hover .post-date,
.blog-page-main .post.has-thumbnail:hover .post-title,
.blog-page-main .post.has-thumbnail:hover p {
  opacity: 0;
}

.post-thumbnail::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  transition: background 0.3s ease;
  pointer-events: none;
}

.post.has-thumbnail:hover:hover .post-thumbnail::before {
  background: rgba(0,0,0,0); /* overlay transparent au hover */
}

.post img:hover , .latset-post-img img:hover,.post-sect2 img:hover , .post-sect4-more img:hover{
        -webkit-transform: scale(1);
        transform: scale(1);
}

.post img, .latset-post-img img ,.post-sect2 img , .post-sect4-more img {
    border-radius: 0;
    box-shadow: rgb(0 0 0) 0px 0px 20px;
}

/* posts dans la page category.php */

.card {
  background-color: #000; /* fond noir */
  color: #ccc; /* texte gris clair par défaut */
  border: 1px solid #555; /* enlève la bordure claire par défaut de la card */
  border-radius: 0;
}

.card a {
  color: #eee; /* liens en blanc cassé */
  text-decoration: none;
}

.card a:hover {
  color: #fff; /* liens au survol en blanc pur */
}

.card .card-title {
  color: #fff; /* titre en blanc pur */
}

.card .card-text {
  color: #ccc; /* texte extrait en gris clair */
}

.card-footer {
  background-color: #111; /* fond un peu plus clair que le noir */
  color: #ddd!important; /* date et infos en gris moyen */
  border-top: 1px solid #555;
}

.card .card-body {
  border-bottom: 1px solid #555;
}

.card p strong {
  color: #fff; /* pour les textes en gras dans le champ personnalisé */
}

/* Pour t’assurer que les images ne soient pas affectées */
.card-img-top {
  border-bottom: 1px solid #555; /* sépare l’image du contenu */
}

.card-body a {
    background-color: transparent !important;
}

/**/

.wp-block-button__link {
  position: relative;
  display: inline-block;
  padding: 16px 32px;
  font-size: 18px;
  background-color: #000;
  color: #66ffe0;
  border: 1px solid #66ffe0;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none !important;
  overflow: hidden;
  transition: color 0.4s ease;
  z-index: 0;
}

/* Gradient container */
.wp-block-button__link::before,
.wp-block-button__link::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(102, 255, 224, 0.5) 0%,
    rgba(102, 255, 224, 0.15) 50%,
    rgba(102, 255, 224, 0) 100%
  );
  transition: transform 0.4s ease;
  pointer-events: none;
  border-radius: 3px;
  z-index: -1;
  opacity: 0;
}

/* Left gradient */
.wp-block-button__link::before {
  left: 0;
  transform: translateX(-100%);
}

/* Right gradient droite */
.wp-block-button__link::after {
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(102, 255, 224, 0.5) 0%,
    rgba(102, 255, 224, 0.15) 50%,
    rgba(102, 255, 224, 0) 100%
  );
  transform: translateX(100%);
}

/* Hover text */
.wp-block-button__link:hover {
  color: white;
}

/* Hover gradient */
.wp-block-button__link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.wp-block-button__link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

#blog-hook {
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.tooltip-wrapper {
  position: relative;
  width: auto;
  max-width: 800px;
  background-color: #000;
}

.tooltip-target {
  padding: 16px;
  text-align: center;
  border-left: 1px solid #a25752;
  border-right: 1px solid #a25752;
  border-bottom: 1px solid #a25752;
  cursor: pointer;
}

.tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.85);
  color: #ddd;
  padding: 14px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
  border: 1px solid #a25752;
}

.chalkpoint-fall:hover .tooltip-top-text,
.the-sundew:hover .tooltip-top-text,
.tooltip-wrapper:hover .tooltip-content,
.tooltip-wrapper:focus-within .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  border-width: 8px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

.tooltip-header {
  position: relative;
}

.tooltip-top-text {
  width: 300px;          /* largeur fixe */
  font-size: 0.85rem;    /* taille de police plus petite */
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px); /* Remplace top par bottom */
  left: 50%;
  transform: translateX(-50%);
  /* width: 90vw; */
  /* max-width: 800px; */
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  /* padding: 14px; */
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
  border: 1px solid #a25752;
}

.tooltip-top-text::after {
  content: "";
  position: absolute;
  top: 100%; /* juste en dessous */
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.85) transparent transparent transparent;
}

@media (min-width: 800px) {
  .tooltip-content {
    width: 800px;
    max-width: none;
  }
}

.side-adsense {
  width: 300px;
  height: 600px;
  color: white;
  border: 1px solid #222;
  margin: 0 0 0 30px;
  padding: 20px;
  text-align: center;
}

.left-side-adsense {
  width: 160px;
  height: 600px;
  color: white;
  border: 1px solid #222;
  margin: 0;
  padding: 20px;
  text-align: center;
}

.newsletter-side-right  {
  padding-left: 10px;
  padding-top: 100px;
}

.newsletter-side-left  {
  padding-right: 10px;
  padding-top: 10px;
}

.newsletter-image-left, .newsletter-image-right  {
  height: 150px;
  width: 600px;
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 14px;
  font-weight: bolder;
}

@media (max-width: 768px) {
  .newsletter-image-right, .newsletter-image-left {
    width: 270px;
  }
}

.newsletter-image-right  {
  background-image: url('https://www.2054games.net/wp-content/themes/moonlit-dark-custom/assets/images/the_sundew.png');
  text-align: left;
  background-position: bottom left;
}

@media (max-width: 768px) {
  .newsletter-image-right {
    background-image: url('https://www.2054games.net/wp-content/themes/moonlit-dark-custom/assets/images/the_sundew-mobile.png');
  }
}

.newsletter-image-left  {
  background-image: url('https://www.2054games.net/wp-content/themes/moonlit-dark-custom/assets/images/chalkpoint-fall.png');
  text-align: right;
  background-position: bottom right;
}

@media (max-width: 768px) {
  .newsletter-image-left {
    background-image: url('https://www.2054games.net/wp-content/themes/moonlit-dark-custom/assets/images/chalkpoint-fall-mobile.png');
  }
}

.newsletter-image-left a, .newsletter-image-right a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.newsletter-side-left a, .newsletter-side-right a {
  color: #ddd;
}

.newsletter-side-left a:hover, .newsletter-side-right a:hover {
  color: #fff;
}

.newsletter-box {
  padding-left: 2px;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  /* padding-top: 10px; */
  height: auto;
  /* text-align: left; */
  border: 1px solid #555;
  /* border-left: 1px solid #555;
  border-right: 1px solid #555; */
  background-color: #18191f;
  overflow: hidden;
}

.newsletter-gift {
  font-size: 14px;
  font-weight: bolder;
  /* text-align: center; */
}

.newsletter {
  color: white;
  font-size: 14px;
}

textarea,
input[type="email"],
input[type="submit"],
input[type="text"],
input[type="url"] {
  background-color: black;
  color: white;
  border: 1px solid #555;
  border-color: #555;
}

input[type="email"],
input[type="submit"],
input[type="text"],
input[type="url"] {
  height: 30px;
}

.newsletter input[type="email"] {
  margin: 0 0 0 10px;
  width: 240px;
}

input[type="submit"] {
  cursor: pointer;
  margin: 0 0 0 10px;
  transition: background-color 0.2s ease;
}

input[type="submit"]:hover {
  background-color: #333;
}

span.wpcf7-form-control.wpcf7-checkbox.optin-text {
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 0;
  margin: 0;
  color: #ccc;
}

.comments-area {
  background-color: #333;
  border: 1px solid #666;
}

#comments {
  color: #aaa;
}

.toggle-button:hover .toggle-bar {
  background-color: #aaa !important;
  opacity: 1 !important;
}

.sub-menu li {
  color: #ddd;
}

.sub-menu li a {
  background-color: #222;
}

.sub-menu li a:hover {
  background-color: #333;
}

.text-column {
  background-color: black;
  border-left: 1px solid #555;
  border-right: 1px solid #555;
  border-bottom: 1px solid #555;
}

.text-column .entry-title,
.text-column .entry-content,
.text-column .entry-share,
.text-column .post-navigation {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* .main-single-post-page, */
main#content {
  background-image: url('https://www.2054games.net/wp-content/themes/moonlit-dark-custom/assets/images/page-background.png');
  background-repeat: no-repeat;
  background-size: auto; /* ou initial */
  background-position: top left; /* ou center, selon l'effet voulu */
  background-color: #272930;
  border-bottom: 1px solid #a25752;
}

@media screen and (max-width: 1024px) {
  /* Changer le fond du menu mobile complet */
  .main-menu-modal {
    background-color: #272930 !important;
    color: #ccc !important;
    border-right: solid 3px #ccc !important;
  }

  /* Si le menu lui-même a aussi un fond blanc */
  .mobile-menu {
    background-color: transparent !important;
    color: #ccc !important;
  }

  /* Couleur du texte pour les liens du menu mobile */
  .main-menu-modal a {
    color: #ccc !important;
    border-bottom: solid 1px #ccc !important;
  }

  /* Sous-menus (si tu en as) */
  .main-menu-modal .sub-menu a {
    color: #ccc !important;
    border-bottom: solid 1px #ccc !important;
  }

  /* Icônes ou boutons du menu (ex: "+" pour ouvrir les sous-menus) */
  .main-menu-modal .iconmenu,
  .main-menu-modal .submenu-toggle {
    color: #ccc !important;
  }

  .toggle-bar {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: #FFB199 !important;
    margin-left: 10px !important;
    margin-top: 20px !important;
  }

  .toggle-bar:first-child {
    margin-top: 22px !important;
  }

  .toggle-button::after {
    content: "MENU";
    font-size: 10px;
    color: #FFB199;
    /* position: absolute; */
    /* bottom: -14px; */
    letter-spacing: 1px;
  }

  .modal-backdrop {
    --bs-backdrop-bg: transparent !important;  /* fond transparent */
    --bs-backdrop-opacity: 0 !important;       /* plus d’opacité */
    background-color: transparent !important;
    opacity: 0 !important;
  }

}

/*=== Categories menu ===*/
/* .category-title {
  font-size: 4rem;
  color: #1c2a38;
  margin-bottom: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
} */

.category-menu {
    border-top: 1px solid #a25752;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
    z-index: 10;
    position: relative;
    overflow: visible !important;
}

.category-menu::before {
  /* content: "LES NEWS"; */
  position: absolute;
  /* bottom: -35px; */
  left: 50%;
  transform: translateX(-50%);
  font-size: 100px;
  color: #1c2a38;
  /* color: rgba(40, 60, 80, 0.5);*/
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  z-index: -1;
  font-weight: bold;
  pointer-events: none;
  white-space: nowrap;
}

.category-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.category-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 8px;
    transition: transform 0.1s linear;
    will-change: transform;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.category-name {
    font-size: 14px;
    display: block;
    margin-top: -10px;
    /* color: #333; */
    font-weight: bold;
}

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

#downloadModal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

#downloadModal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

#downloadModal .modal-content {
  background-color: #000;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  padding: 30px 40px;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
}

#downloadModal button {
  margin-top: 20px;
  background: #222;
  color: #ddd;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#downloadModal button:hover {
  background: #444;
}

#downloadModal a {
  color: #ffd700;
  font-weight: 700;
  text-decoration: underline;
  font-size: 1.1em;
}

/* duplication not right but need to work fast */
#ksDownloadModal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

#ksDownloadModal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

#ksDownloadModal .modal-content {
  background-color: #000;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  padding: 30px 40px;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
}

#ksDownloadModal button {
  margin-top: 20px;
  background: #222;
  color: #ddd;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#ksDownloadModal button:hover {
  background: #444;
}

#downloadModal a {
  color: #ffd700;
  font-weight: 700;
  text-decoration: underline;
  font-size: 1.1em;
}

.wpcf7-form-control-wrap {
  position: relative;
  display: block;
}

/* Style du message d'erreur */
.wpcf7-not-valid-tip {
  position: absolute;
  top: 20px;
  left: 90px;
  font-size: 0.9em;
  color: #d00;
  background: transparent;
  /*padding: 2px 5px;*/
  z-index: 10;
  white-space: nowrap;
  pointer-events: none;
}

/* Empêche les erreurs de casser la mise en page */
.wpcf7-form-control-wrap {
  overflow: visible;
  min-height: 2.5em; /* tu peux ajuster en fonction de la hauteur des erreurs */
}

/* TOGGLE BAR NOT VISIBLE ENOUGH ON MOBILE */

.offcanvas-backdrop {
  background-color: transparent !important;
}
.offcanvas-backdrop.fade {
  opacity: 0;
}

.offcanvas-backdrop.show {
  opacity: 0 !important;
}
