:root {
    --color-primary: #00b09b;
    --color-secondary: #96c93d;
    --color-black: #333;
    --color-gray: #555;
    --color-light-gray: #aaa;
    --color-white: #fff;
    --color-background: #f4f4f4;
    --color-border: #e0e0e0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-modal-overlay: rgba(0, 0, 0, 0.5);

    --font-family: Arial, sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 2px 5px var(--color-shadow);
    --transition-speed: 0.3s;
    
    /* Change this variable to white */
    --section-bg: #fff;
}

a {
    text-decoration: none;
    color: unset;
}
/* Constrain the overall width on desktop */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Apply the uniform background to sections inside main */
main > section {
    background-color: var(--section-bg);
    /* Optionally, if you want to remove extra margin/padding from previous rules,
       adjust or override them here. */
}

/* --- General Styles --- */
body {
    font-family: var(--font-family);
    margin: 0;
    background-color: var(--color-background);
    color: var(--color-black);
    line-height: 1.5;
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 10px;
}

/* --- Header --- */
header {
    background-color: var(--color-white);
    padding: 15px 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo a {
    display: inline-block;
}

.logo img {
    height: 40px;
    display: block;
}

.play-button {
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    transition: filter var(--transition-speed) ease;
}

.play-button:hover {
    filter: brightness(1.1);
}

/* --- Game Info Section --- */
.game-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    background-color: var(--color-white);
    box-shadow: var(--box-shadow);
    margin: 20px auto;
    max-width: 95%;
    border-radius: var(--border-radius);
    flex-wrap: wrap;
    box-sizing: border-box;
}

.game-info img {
    width: 100px;
    height: 100px;
    margin-right: 15px;
    flex-shrink: 0;
}

.game-details {
    flex-grow: 1;
    min-width: 200px;
}

.game-details h1 {
    margin-bottom: 5px;
}

.game-details .light-gray {
    color: var(--color-light-gray);
    font-size: 0.8rem;
}

.game-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--color-gray);
    flex-wrap: wrap;
}

.game-stats span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.game-stats img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    margin: 0 3px;
}

.game-stats span:not(:last-child)::after {
    content: "|";
    margin: 0 5px;
    color: var(--color-light-gray);
}

/* --- CTA Buttons (Install and Share) --- */
.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 95%;
}

.install-button {
    display: block;
    width: 200px;
    padding: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: filter var(--transition-speed) ease;
}

.install-button:hover {
    filter: brightness(1.1);
}

.share-game {
    display: flex;
    gap: 15px;
}

.share-game a {
    display: inline-block;
}

.share-game img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform var(--transition-speed) ease;
}

.share-game img:hover {
    transform: scale(1.1);
}

/* --- Platform Availability --- */
.platform-availability {
    text-align: center;
    margin: 20px auto;
    background-color: var(--color-white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.platform-availability h2 {
    margin-bottom: 15px;
}

.platform-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.platform-item img {
    width: 40px;
    height: 40px;
}

.platform-item span {
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-gray);
}

/* --- Gameplay Gallery --- */
.gameplay-gallery {
    text-align: center;
    margin: 20px auto;
    background-color: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.gameplay-gallery h2 {
    margin-bottom: 15px;
}

.gallery-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    max-width: 95%;
    margin: 0 auto;
}

.slider-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    max-width: 100%;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
}

.screenshot {
    width: auto !important;
    max-height: 400px !important;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.prev-slide,
.next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: var(--border-radius);
    z-index: 10;
}

.prev-slide {
    left: 10px;
}

.next-slide {
    right: 10px;
}

.prev-slide:hover,
.next-slide:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* --- About Game Section --- */
.about-game {
    background-color: var(--color-white);
    padding: 20px;
    margin: 20px auto;
    max-width: 95%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

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

.about-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
}

.toggle-about {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: transform var(--transition-speed) ease;
}

.toggle-about.rotate {
    transform: rotate(90deg);
}

.about-excerpt {
    font-size: 0.95rem;
    color: var(--color-gray);
    margin-top: 10px;
}

/* --- Excerpt & Update Blocks Outside the Modal --- */
.about-excerpt-container {
  padding: 15px;
  border-top: 1px solid var(--color-border);
  margin-top: 15px;
  background-color: var(--color-white);
}

.about-excerpt-container .excerpt {
  font-size: 1rem;
  color: var(--color-gray);
  margin-bottom: 8px;
  line-height: 1.4;
}

.about-excerpt-container .update-info {
  font-size: 0.85rem;
  color: var(--color-light-gray);
}

.about-excerpt-container .update-info time {
  font-style: italic;
}

/* --- Game Tags Block --- */
.game-tags {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* --- Modal --- */
.about-modal {
    /* Visibility is controlled by the .hidden class */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-white);
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.about-modal-content {
    display: flex;
    flex-direction: column;
}

.about-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.about-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--color-light-gray);
}

.close-about-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.about-modal-body {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-black);
}

.about-modal-body strong {
    display: block;
    margin: 10px 0 5px 0;
}

/* --- Modal Overlay --- */
.about-modal-overlay {
    /* Visibility is controlled by the .hidden class */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-modal-overlay);
    z-index: 999;
}

/* --- Data Safety Section --- */
.data-safety {
  background-color: var(--color-white);
  padding: 20px;
  margin: 20px auto;
  max-width: 95%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.data-safety-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.data-safety-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.data-safety-link {
  text-decoration: none;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.data-safety-description {
  font-size: 1rem;
  color: var(--color-gray);
  margin-bottom: 15px;
}

.data-safety-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.data-safety-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.data-safety-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.data-safety-text p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-black);
}

.data-safety-detail {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: 5px;
}

/* --- Expandable Section --- */
.expandable-section {
    background-color: var(--color-white);
    padding: 20px;
    margin: 20px auto;
    max-width: 95%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.expand-header h2 {
    margin: 0;
}

.expand-button {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    transition: transform var(--transition-speed) ease;
}

.expand-button.rotate {
    transform: rotate(180deg);
}

.expandable {
    margin-top: 10px;
}

.about-expanded {
    margin-top: 10px;
}

/* --- Footer --- */
footer {
    background-color: var(--color-light-gray);
    color: var(--color-black);
    padding: 20px;
    text-align: center;
}

/* --- Helper Classes --- */
.hidden {
    display: none !important;
}

.rotate {
    transform: rotate(90deg);
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    :root {
        --font-size-h1: 1.6rem;
        --font-size-h2: 1.4rem;
        --font-size-h3: 1.1rem;
    }

    header {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px;
    }

    body {
        padding-top: 65px;
        overflow-x: hidden;
    }

    .header-container {
        padding: 0 10px;
    }

    .game-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .game-info img {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .game-stats {
        gap: 5px;
        font-size: 0.8rem;
        margin-top: 5px;
    }

    .game-stats span {
        white-space: normal;
        text-align: center;
        margin-bottom: 5px;
    }

    .game-stats img {
        width: 12px;
        height: 12px;
    }

    .cta-buttons {
        margin: 10px auto;
    }
    
    .share-game img {
        width: 35px;
        height: 35px;
    }
    
    .platform-icons {
        gap: 10px;
    }
    
    .platform-item img {
        width: 35px;
        height: 35px;
    }
    
    .screenshot {
        width: 250px;
    }
    
    .prev-slide,
    .next-slide {
        font-size: 1.2rem;
        padding: 8px;
    }
    
    .about-modal-icon {
        width: 30px;
        height: 30px;
    }
    
    .expand-button {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --font-size-h1: 1.4rem;
        --font-size-h2: 1.2rem;
        --font-size-h3: 1rem;
    }
    
    .game-info img {
        width: 60px;
        height: 60px;
    }
    
    .game-stats {
        font-size: 0.7rem;
    }
    
    .game-stats img {
        width: 10px;
        height: 10px;
    }
    
    .screenshot {
        width: 200px;
    }
    
    .prev-slide,
    .next-slide {
        font-size: 1rem;
        padding: 6px;
    }
    
    .about-modal {
        max-width: 98%;
        padding: 10px;
    }
    
    .modal-subtitle {
        font-size: 0.7rem;
    }
    
    .about-modal-body {
        font-size: 0.8rem;
    }
}

/* --- Reviews Summary --- */
.reviews-summary {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}
  
.total-score {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-black);
    margin-bottom: 10px;
}
  
.total-score .score-value {
    margin-right: 10px;
    color: #f4b400; /* gold color for the rating number */
}
  
.total-score .score-text {
    font-size: 1rem;
    color: var(--color-gray);
}
  
.score-graph {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
  
.score-row {
    display: flex;
    align-items: center;
}
  
.star-label {
    width: 20px;
    font-size: 0.9rem;
    color: var(--color-gray);
}
  
.bar-container {
    flex: 1;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 0 10px;
    height: 8px;
    overflow: hidden;
}
  
.bar {
    height: 100%;
    background-color: #f4b400;
    border-radius: 4px;
}
  
.score-percentage {
    font-size: 0.85rem;
    color: var(--color-gray);
}
  
/* --- Reviews Section --- */
.reviews {
    background-color: var(--color-white);
    padding: 20px;
    margin: 20px auto;
    max-width: 95%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
  
.reviews h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
  
/* --- Individual Review Items --- */
.review-item {
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
}
  
.review-item:last-child {
    border-bottom: none;
}
  
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
  
.reviewer-name {
    font-weight: bold;
    color: var(--color-black);
}
  
.review-stars {
    color: #f4b400; /* gold for stars */
    font-size: 1.2rem;
}
  
.review-text {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 8px;
}
  
.review-meta {
    font-size: 0.85rem;
    color: var(--color-light-gray);
}
  
/* --- Helpful Text and Developer Reply --- */
.review-item .helpful-text {
    font-size: 0.85rem;
    color: var(--color-light-gray);
    margin-top: 5px;
}
  
.review-reply {
    background-color: #f9f9f9;
    border-left: 4px solid var(--color-primary);
    padding: 10px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--color-black);
}

/* --- What's New Section --- */
.whats-new {
    background-color: var(--color-white);
    padding: 20px;
    margin: 20px auto;
    max-width: 95%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
  
.whats-new h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
  
.whats-new ul {
    list-style-type: disc;
    margin-left: 20px;
}
  
.whats-new li {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 10px;
}

/* --- Flag Section --- */
.flag-section {
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    background-color: var(--color-white);
}
  
.flag-section p {
    font-size: 0.9rem;
    color: var(--color-primary);
    margin: 0;
}
  
.flag-section a {
    text-decoration: none;
    color: var(--color-primary);
}
  
.flag-section a:hover {
    text-decoration: underline;
}

/* --- App Support Section styling --- */
.app-support {
    background-color: var(--section-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 20px auto;
    max-width: 95%;
    padding: 20px;
}
  
.app-support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
    position: static; /* override sticky */
    top: auto;
    z-index: auto;
}
  
.app-support-header h2 {
    font-size: 1.5rem;
    margin: 0;
}
  
.toggle-support {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}
  
.app-support-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
  
.support-item {
    display: flex;
    align-items: center;
}
  
.support-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-black);
}
  
.support-item i.material-icons {
    font-size: 1.5rem;
    margin-right: 10px;
}
  
.support-text .support-title {
    font-weight: bold;
}
  
.support-text .support-detail {
    font-size: 0.9rem;
    color: var(--color-gray);
}
  
.developer-info {
    margin-top: 15px;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
    font-size: 0.9rem;
    color: var(--color-gray);
}
  
.developer-info-title {
    font-weight: bold;
    margin-bottom: 5px;
}

/* --- Similar Games Section Styling --- */
.similar-games {
    background-color: var(--section-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 20px auto;
    max-width: 95%;
    padding: 20px;
}
  
.similar-games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
    position: static; /* ensure header is not sticky */
}
  
.similar-games-header h2 {
    font-size: 1.5rem;
    margin: 0;
}
  
.see-more {
    text-decoration: none;
    color: var(--color-black);
    display: flex;
    align-items: center;
}
  
.see-more i.material-icons {
    font-size: 1.2rem;
}
  
/* For screens 600px and wider, use fixed 200px columns and center them */
@media (min-width: 600px) {
    .similar-games-list {
      display: grid;
      grid-template-columns: repeat(2, 200px);
      gap: 15px;
      justify-content: center;
    }
}
  
/* For screens smaller than 600px, use 2 equal columns */
@media (max-width: 599px) {
    .similar-games-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
    }
}
  
/* Individual game item */
.similar-game-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}
  
.similar-game-item a {
    display: block;
    text-decoration: none;
    color: var(--color-black);
}
  
.similar-game-item img {
    width: 100%;
    display: block;
}
  
.game-info {
    display: grid;
    grid-template-columns: 1fr auto; /* title takes remaining space, rating auto-sizes */
    grid-template-rows: auto auto;    /* two rows */
    gap: 8px;                         /* spacing between grid cells */
    padding: 10px;
  }
  
  .game-title {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    /* additional styling if needed */
  }
  
  .game-rating {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end; /* pushes the rating to the right */
    /* additional styling if needed */
  }
  
  .game-publisher {
    grid-column: 1 / -1; /* span all columns */
    grid-row: 2 / 3;
    /* additional styling if needed */
  }
  
  
.game-rating i.material-icons {
    font-size: 0.8rem;
}

@media (min-width: 600px) {
    .similar-games-list {
      display: grid;
      grid-template-columns: repeat(3, 200px);
      gap: 15px;
      justify-content: center;
    }
}

/* Remove shadows, borders, and rounded corners from primary layout blocks */
header,
main > section,
footer,
.game-info,
.platform-availability,
.gameplay-gallery,
.about-game,
.about-excerpt-container,
.data-safety,
.reviews,
.whats-new,
.flag-section,
.app-support,
.similar-games {
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

/* Remove extra border lines in inner elements */
.reviews-summary,
.review-item,
.app-support-header,
.similar-games-header,
.about-modal-header {
  border: none !important;
}

.similar-games .similar-game-item img {
    width: 100%;         /* fills the width of the container */
    height: 150px;       /* set a fixed height */
    object-fit: cover;   /* crops the image to fill the area */
  }

  