/*
 Theme Name:   rEADesign
 Theme URI:    https://ead.se
 Description:  Child Theme
 Author:       EAD
 Author URI:   https://ead.se
 Template:     generatepress
 Version:      0.1
*/

/* Header */ 
ul.wp-block-social-links {margin-bottom: 0;}
.wp-block-social-links .wp-social-link svg:hover {fill: #ff00cc !important;}

/*
#menu-item-1163.gb-menu-item {border: 1px solid #ff00cc;box-shadow: 0px 0px 8px #ff00cc;border-radius: 6px;}
#menu-item-1163.gb-menu-item:hover {background: #ff00cc;color: #000;}
*/

.gb-menu-container a.gb-menu-link {padding: 8px 30px !important;}

/* STARTPAGE - FIRST SECTION */
.home.one-container .site-content {margin-top: -155px;}

/* BUTTONS */
.gamebutton p {
    margin: 0 !important;
}
.gamebutton a,.gamebutton a:hover {color:#fff !important;}
.gamebutton img {display: block;}

/* HERO and GAME BORDER */
.heroborder {
  position: relative;
  --border-size: 24px; /* justera för tjockare/tunnare border */
}

.heroborder::after {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  z-index: 2;
  image-rendering: pixelated;

  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat,
                      repeat-x, repeat-x, repeat-y, repeat-y;

  background-position:
    top left, top right, bottom left, bottom right,
    top center, bottom center, center left, center right;

  background-image:
    url("https://1248919.us18.myftpupload.com/wp-content/uploads/2026/08/hero_border_top_left_corner.png"),
    url("https://1248919.us18.myftpupload.com/wp-content/uploads/2026/08/hero_border_top_right_corner.png"),
    url("https://1248919.us18.myftpupload.com/wp-content/uploads/2026/08/hero_border_bottom_left_corner.png"),
    url("https://1248919.us18.myftpupload.com/wp-content/uploads/2026/08/hero_border_bottom_right_corner.png"),
    url("https://1248919.us18.myftpupload.com/wp-content/uploads/2026/08/hero_border_horizontal_top.png"),
    url("https://1248919.us18.myftpupload.com/wp-content/uploads/2026/08/hero_border_horizontal_bottom.png"),
    url("https://1248919.us18.myftpupload.com/wp-content/uploads/2026/08/hero_border_vertical_left.png"),
    url("https://1248919.us18.myftpupload.com/wp-content/uploads/2026/08/hero_border_vertical_right.png");

  background-size:
    var(--border-size) var(--border-size),
    var(--border-size) var(--border-size),
    var(--border-size) var(--border-size),
    var(--border-size) var(--border-size),
    auto var(--border-size),
    auto var(--border-size),
    var(--border-size) auto,
    var(--border-size) auto;
}

.gameborder {
  position: relative;
}

.gameborder::after {
  content: "";
  position: absolute;
  inset: -10px;
  pointer-events: none;
  z-index: 2;
  image-rendering: pixelated;

  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;

  background-position:
    top center, bottom center, center left, center right;

  background-image:
    url("https://1248919.us18.myftpupload.com/wp-content/uploads/2026/08/game_border_pattern_horizontal_top.png"),
    url("https://1248919.us18.myftpupload.com/wp-content/uploads/2026/08/game_border_pattern_horizontal_bottom.png"),
    url("https://1248919.us18.myftpupload.com/wp-content/uploads/2026/08/game_border_pattern_vertical_left.png"),
    url("https://1248919.us18.myftpupload.com/wp-content/uploads/2026/08/game_border_pattern_vertical_right.png");

  background-size:
    auto 18px,
    auto 18px,
    18px auto,
    18px auto;
}

/* ARCHIVE */

.gbp-card__meta-text span {border: 1px solid;border-radius: 4px;margin-right: 5px;padding: 2px 4px;font-size: 0.7rem;color: #888;}

/* SINGLE POST */

.single-post .grid-container {max-width: none;}
.single-post .entry-content {max-width: 700px;margin: auto;}
.single-post .entry-title {margin: 80px 0;text-align: center;}

.featured-image.page-header-image-single {
  height: 550px;
  overflow: hidden;
}

.featured-image.page-header-image-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inside-article {
  position: relative;
}

.gb-element-82293383 {
  position: absolute;
  top: 550px;              /* = nuvarande featured image-höjd */
  transform: translateY(-100%);
  left: -40px;
  right: -40px;
  width: auto;
  margin-top: 0;
  z-index: 2;
}

@media (max-width: 768px) {
  .gb-element-82293383 {
    left: -30px;
    right: -30px;
  }
}
/* FORMS 
.subscribe-button a.ml-onclick-form, button.ml-onclick-form {background-color: #000;border: 1px solid;border-radius: 6px;padding:1em;}
*/

label.wpforms-field-label {color: #ffffff !important;}
.wpforms-submit-container button {background: #000 !important;border: 1px solid #fff !important;border-radius: 6px !important;}

/* CRED */
#cred, #cred a{color:rgba(255,255,255,0.3);font-size:10px;margin-top:40px;}
#cred a:hover{color:rgba(255,155,155,0.5);}
