/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Concert One', cursive;
}

/* ===== MOBILE BASE ===== */
.container {
  display: flex;
  flex-direction: column;
}

.left,
.right {
  width: 100%;
  padding: 20px;
}

.title-image {
  display: block;
  width: 80%;
  max-width: none;
  height: auto;
  margin: 0 auto 15px auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.title-image:hover {
  transform: scale(1.03);
}

.subtitle {
  font-family: 'Concert One', cursive;
  color: #D32F2F;                       
  text-align: center;
  font-size: 1.5rem;
  margin-top: 10px;
}

.gif-container {
  position: relative;
  width: 100%;
  margin: 1px auto;
}

.gif-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Shared text styling */
.gif-text {
  position: absolute;
  width: 100%;
  color: white;
  pointer-events: auto;
}

.gif-text p {
  margin: 0px 0;
}

/* LEFT BLOCK OVERLAY */
.gif-text-left {
  top: 7.7%;
  left: 30%;
  transform: translateX(-50%);
  text-align: center; 
  font-size: 0.55rem; /* mobile */
}

/* CENTER BLOCK OVERLAY */
.gif-text-center {
  bottom: 60%;
  left: 34%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.42rem; /* mobile */
}

/* Link styling */
.gif-text a {
  display: inline-block; 
  margin: 0.8px;        
  color: #D32F2F;
  text-decoration: none;
}

.gif-text a:hover {
  color: #7757FF;
}


.left p {
  text-align: center;
  margin-bottom: 15px;
}

h1, h2, h3, h4, h5, h6 {
  color: #231d6c;                    
  margin-bottom: 15px;
  font-size: 2rem;    
  text-transform: uppercase; 
  letter-spacing: 1px;  
}

/* ===== ICON BUTTONS ===== */
.icon-buttons {
  display: flex;
  justify-content: space-between; 
  width: 100%;                     
  margin: 5px auto;           
  gap: 15px;                    
}

.icon-btn {
  width: 80px;  
  height: 80px;
  transition: transform 0.2s ease;
}

.icon-btn:hover {
  transform: scale(1.5);
}

.icon-buttons a:nth-child(1) .icon-btn:hover { content: url(images/gmail_a.png); }
.icon-buttons a:nth-child(2) .icon-btn:hover { content: url(images/insta_a.png); }
.icon-buttons a:nth-child(3) .icon-btn:hover { content: url(images/tiktok_a.png); }
.icon-buttons a:nth-child(4) .icon-btn:hover { content: url(images/itch_a.png); }

/* ===== TEXT BUTTONS ===== */
.text-buttons-row {
  display: flex;
  flex-wrap: wrap;          
  justify-content: flex-start; 
  align-items: center;
  width: 80%;               
  margin: 15px auto;
  gap: 10px;
}

.jump-label {
  color: black;
  font-weight: bold;
}

/* Jump buttons style */
.jump-btn {
  background-color: #C8BFFF;
  color: white;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.2s ease;
  font-family: 'Concert One', cursive;
  white-space: nowrap;    
}

.jump-btn:hover {
  background-color: #A085FF;
}

/* MOBILE*/
@media (max-width: 480px) {
  .text-buttons-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .jump-label {
    margin-bottom: 5px;
  }
  .jump-btn {
    width: 100%;
    text-align: center;
  }
}

/* LAPTOP */
@media (min-width: 1200px) and (max-width: 1600px) {
  .text-buttons-row {
    flex-direction: row;
    flex-wrap: wrap;       
    justify-content: flex-start;
    gap: 15px;
  }
  .jump-btn {
    width: auto;            
    text-align: center;
  }
}

/* DESKTOP / LARGE SCREENS*/
@media (min-width: 1600px) {
  .text-buttons-row {
    flex-direction: row;
    flex-wrap: nowrap;      
    justify-content: flex-start;
    gap: 50px;
  }
  .jump-btn {
    width: auto;
  }
}

/* ===== DESKTOP SPLIT ===== */
@media (min-width: 1200px) {
  .container {
    flex-direction: row;
    height: 100vh;
  }

  .left {
    width: 45%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: hidden; 
    display: block;
  }

  .right {
    width: 55%;
    margin-left: 45%;
    height: 100vh;
    overflow-y: auto;
  }

  /* Overlay text scaling for laptops */
  .gif-text-left {
    font-size: 0.85rem;
    top: 12%;
  }
  .gif-text-center {
    font-size: 0.64rem;
    bottom: 39%;
  }
}

/* LARGE DESKTOP */
@media (min-width: 1600px) {
  .gif-text-left {
    font-size: 1rem;
    top: 13%;
  }
  .gif-text-center {
    font-size: 0.8rem;
    bottom: 36%;
  }
}

/* ===== GAMES SECTION ======== */

.games-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  align-items: center; 
}

.game-card {
  position: relative;
  width: 90%;
  max-width: 700px;
  cursor: pointer;
}

.game-card img,
.game-card video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  transition: opacity 0.3s ease;
}

/* Hide video initially */
.game-card video {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

/* On hover: show video */
.game-card:hover video {
  opacity: 1;
}

.game-card:hover img {
  opacity: 0;
}

/* ======= DESKTOP ======== */

@media (min-width: 1024px) {

  .games-grid {
    align-items: flex-start;
  }

  .game-card {
    width: 100%;       
    max-width: 900px; 
  }

}