/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff;
}

.bg-main {
  background-color: #0a1225;
}

.bg-ra {
  background-color: #0a1225;
  background: url("img/ra/bg_720p.png") no-repeat center center fixed;
  background-size: cover;
}

.bg-es {
  background-color: #0a1225;
  background: url("img/es/bg_720p.png") no-repeat center center fixed;
  background-size: cover;
}

.bg-alrh {
  background-color: #0a1225;
  background: url("img/alrh/bg.png") no-repeat center center fixed;
  background-size: cover;
}


a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
.site-header {
  padding: 0.5rem 1rem;
  background: #6FA8DC;
  color: black;
}

.logo-link {
  display: inline-block;
  margin-right: 1rem; /* spacing from navigation */
}

.logo {
  height: 42px;      /* adjust to desired logo height */
  width: auto;       /* preserve aspect ratio */
}


.nav-list {
  font-family:'Inter', sans-serif; /* example: change to your preferred font */
  font-size: large;
  font-weight: bold;
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-list > li > a {  /*adds an underline effect just the first level of the nav buttons*/
  position: relative;
  padding-bottom: 4px;
}

.nav-list >li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: rgb(0, 0, 0);
  transition: width 0.25s ease;
}

.nav-list > li > a:hover::after {
  width: 100%;
}

/*DROP DOWN MENU*/

.dropdown {
  position: relative; /* needed for absolute menu positioning */
}

.dropdown-menu {
  list-style: none;
  display: none; /* hidden by default */
  position: absolute;
  top: 100%; /* below parent */
  left: -100%;
  background: #6FA8DC;
  padding: 0.5rem 0;
  border-radius: 4px;
  min-width: 250px;
  z-index: 100;
  box-shadow: 0 4px 8px rgb(0, 0, 0); /* subtle shadow */
}

.dropdown-menu li {
  margin: 0;
  font-weight: normal;
  font-size:large;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: rgb(0, 0, 0);
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #dbcfcfbd;
}

.dropdown:hover .dropdown-menu {
  display: block; /* show menu on hover */
}

/* LAYOUT */
.container {
  padding: 0rem;  
}

.hero-main {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(to bottom, #06102c, #020713);
  border-bottom: 2px solid #ffffff; /* 2px white line */
  margin-bottom: 2rem; /* spacing after the line */  
}

.hero-main h2 {
  margin: 0.5rem 0; /* vertical spacing between headings */
  font-family: 'Roboto', sans-serif; /* example: change to your preferred font */
  font-size: 3rem;   /* bigger emphasis for "ONE BIT STUDIO" */
}

.hero-main h2:last-child {
  font-family: 'Roboto', sans-serif; /* example: change to your preferred font */
  font-size: 4rem;   /* bigger emphasis for "ONE BIT STUDIO" */    
}

.hero-games {
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 2px solid #ffffff; /* 2px white line */
  margin-bottom: 2rem; /* spacing after the line */  
}

.hero-games h2 {
  margin: 0.5rem 0; /* vertical spacing between headings */
  font-family: 'Roboto', sans-serif; /* example: change to your preferred font */
  font-size: 3rem;   
}

.hero-games h2:last-child {
  font-family: 'Roboto', sans-serif; /* example: change to your preferred font */
  font-size: 4rem;    
}

.section-title {
  font-family: 'Inter', serif; /* example: elegant serif font */
  text-align: left;      /* left-align the text */
  font-size: 1.5rem;     /* size can be adjusted */
  font-weight: bold;
  margin: 1.5rem 1rem 1rem; /* spacing above and below */
  color: #ffffff;
}

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr; /* mobile: single column */
  padding-bottom: 2rem;
  border-bottom: 2px solid #ffffff; /* 2px white line */
  margin-bottom: 0rem; /* spacing after the line */
}

.feature img {
  width: 100%;
  height: auto;         /* keeps aspect ratio */
  display: block;
  border-radius: 8px;   /* optional rounded corners */
  object-fit: cover;    /* ensures image fills the container nicely */
}

.feature-text {
  font-family: 'Inter', Tahoma, Verdana, sans-serif; /* example: clean sans-serif */
  margin: 0.5rem;
  font-size: medium;
  font-weight: 300;
  line-height: 1.5;
  text-align: left; /* left-align the descriptive text */
  color: #ffffff;
}

.feature a {
  display: block;           /* ensures the link covers the image */
}

.feature a img {
  transition: transform 0.3s ease; /* smooth hover effect */
}

.feature a:hover img {
  transform: scale(1.05);   /* slightly zooms the image on hover */
}


/* FOOTER */
.site-footer {
  padding: 1rem;
  text-align: center;  
  color: white;
  background: linear-gradient(to bottom, #020713, #06143b);
}

.site-footer-games {
  padding: 1rem;
  text-align: center;  
  color: white;
  background: linear-gradient(to bottom, #23232400, #000000);
}

/* TABLET */
@media (min-width: 768px) {

  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* TABLET AND DESKTOP */
@media (min-width: 600px) and (max-width: 767px) {
  .features {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
  }
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
  }
}

/* CENTER ALL CONTENT WITH MAX WIDTH */
.site-header,
.container,
.site-footer,
.site-footer-games {
  width: 80%;
  max-width: 1300px;
  margin: 0 auto;
}

.site-header {
  text-align: center;
}


.nav-list {
  justify-content: center;
}

.hero,
.features {
  text-align: center;
}

/*YOUTUBE EMBEDDING */

.video-section {
  display: flex;
  justify-content: center;
  margin: 2rem 0;

  
}

.video-wrapper {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.329);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/*STEAM EMBED*/
.steam-widget-section {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  padding-bottom: 2rem;
  border-bottom: 2px solid #ffffff; /* 2px white line */
  margin-bottom: 3rem; /* spacing after the line */  
}

.steam-widget-wrapper {
  width: 100%;
  max-width: 646px;   /* original Steam widget width */
  aspect-ratio: 646 / 190; /* maintain original widget aspect ratio */
}

.steam-widget-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/*GALLERY */

.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 1rem;
  width: 100%;
  margin: 2rem auto; /* center the gallery */
  padding-bottom: 2rem;
  border-bottom: 2px solid #ffffff; /* 2px white line */
  margin-bottom: 0rem; /* spacing after the line */    
}

.thumbnail-gallery .thumb {
  width: 100%;
  height: 100%;       /* thumbnail height */
  object-fit: cover;   /* keep aspect ratio, crop if necessary */
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.thumbnail-gallery .thumb:hover {
  transform: scale(1.05); /* subtle zoom on hover */
}

/*CENTER IMAGE*/
.center-image-section {
  display: flex;
  justify-content: center; /* horizontal centering */
  margin: 2rem 0;
}

.center-image {
  max-width: 80%;       /* scale to fit container */
  height: auto;         /* maintain aspect ratio */
  border-radius: 8px;   /* optional rounding */
}

.center-image-smaller {
  max-width: 60%;       /* scale to fit container */
  height: auto;         /* maintain aspect ratio */
  border-radius: 8px;   /* optional rounding */
}

/*GIF SECTION*/
.gif-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 1rem;
  width: 100%;
  margin: 2rem auto; /* center the gallery */

}

.gif-section .gif {
  width: 100%;
  height: 100%;       /* thumbnail height */
  object-fit: cover;   /* keep aspect ratio, crop if necessary */
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

 /*TWO PICTURES IN A ROW*/
.two-image-row {
  display: flex;
  gap: 8rem;
  justify-content: center;
  margin: 2rem auto;
  width: 100%;
}

.two-image-row img {
  width: 50%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
}

.about-section {
  padding-bottom: 2rem;
  border-bottom: 2px solid #ffffff; /* 2px white line */  
}

.about-text {
  font-family:'Inter', Tahoma, Verdana, sans-serif; /* example: clean sans-serif */
  font-size: larger;  
  margin-left: 4rem;
  letter-spacing: 0.2em;
}

.about-text li {
  line-height: 2;
}


/*SOCIAL ICONS*/
.social-icons {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center; /* center horizontally */
  gap: 1rem;              /* spacing between icons */
  margin-bottom: 1rem; /* spacing after the line */  
}

.social-icon {
  width: 48px;   /* size of the icon */
  height: 48px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2); /* subtle hover effect */
}

.copyright-text {
  font-size: small;
}





