/* Global Settings */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #151515;
    color: white;
    font-family: Arial, sans-serif;
}

main {
    flex: 1; 
}

footer {
    width: 100%;
    background-color: #104CFF; 
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    text-align: center;
    padding: 20px; 
}

.footer-hr {
    border: 0;
    height: 1px;
    background-color: #007bff;
    margin: 0;
}

footer p {
    margin: 0;
    padding: 20px 0; 
}

/* Footer container for layout */
.footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}

/* Social media icons styling */
.social-media-icons {
    position: absolute;
    left: 20px;
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 24px;
    height: 24px;
}

.footer-content {
    text-align: center;
    flex: 1;
}

/* Navbar */
header {
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #104CFF; 
}

.logo span {
    font-size: 1.5em;
    font-weight: bold;
}

.logo-img {
    width: 180px;
    height: auto;
    max-width: 100%;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1em;
}

.nav-links a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #ffffff;
}

.navbar-hr {
    border: 0;
    height: 1px;
    background-color: #007bff;
    margin: 0;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero Text */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text h1 {
    font-size: 3em;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.hero-text h2 {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 0.5em;
}

/* Content styles */
.content {
    padding: 20px;
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.content h1, .content h2, .content p {
    text-align: center;
}

.centered-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Project Section */
.project {
    margin-bottom: 40px;
}

.project-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px; 
}

.project-image {
    max-width: 100%;
    height: auto;    
    display: block;  
    margin: 0 auto;  
}

/* Sizing for Project 2 logo */
.project img[src="images/GameLogo2.png"] {
    max-width: 80% !important; 
    height: auto !important;   
    display: block !important; 
    margin: 0 auto !important; 
}

.project-label {
    margin: 10px auto; 
    text-align: center;
    background-color: #ffc107; 
    padding: 5px 15px;
    border-radius: 5px;
}

.project-title,
.project-description {
    margin-top: 10px;
}

/* Blue Button for Games Page */
.project-buttons .blue-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: white;
    background-color: #104CFF;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #007bff;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-buttons .blue-btn:hover {
    background-color: #007bff;
    transform: scale(1.05);
}

/* Store Badges for Dog Gone Cats Page */
.project-buttons .store-badge {
    height: 45px;
    width: auto;
    display: inline-block;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.project-buttons .store-badge:hover {
    transform: scale(1.05);
}

/* Game Info Section */
.game-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 2rem auto;
    padding: 20px;
    background-color: #1d1d1d;
    border-radius: 8px;
}

.info-sections {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 1.5rem;
}

.info-section {
    text-align: center;
    width: 30%;
}

.info-section h3 {
    font-size: 1.2em;
    margin-bottom: 0.5rem;
    color: #ffc107;
}

.info-section p {
    font-size: 1em;
    color: #bdc3c7;
    margin: 0;
}

/* Feature Section */
.feature-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #3a3a3a;
    width: 100%;
}

.feature-section h2 {
    font-size: 1.5em;
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.feature-section p {
    font-size: 1em;
    color: #bdc3c7;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 80%;
}

/* Screenshots Section */
.screenshots-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.screenshot img:hover {
    transform: scale(1.05);
}

.free-note {
    font-size: 0.9em;
    color: #ffc107; 
    margin-top: 10px;
    text-align: center;
}

/* Video Section */
.video-heading {
    text-align: center;
    font-size: 1.8em;
    margin-top: 40px;
    color: #ffc107;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Donate Section */
.donation-section {
    text-align: center;
    margin: 20px 0;
}

.donation-message {
    font-size: 1em;
    color: #bdc3c7;
    margin-bottom: 10px;
}

.donate-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: white;
    background-color: #104CFF;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #007bff;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.donate-btn:hover {
    background-color: #007bff;
    transform: scale(1.05);
}

/* New 16:9 Screenshot Gallery (Second Page) */
.gallery-16-9 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    margin: 2rem auto;
    max-width: 1200px;
}

.gallery-16-9 .screenshot {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-16-9 .screenshot img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures 16:9 aspect ratio */
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
    border-radius: 8px;
}

.gallery-16-9 .screenshot img:hover {
    transform: scale(1.05);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .screenshots-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot img {
        width: 80%;
        margin: auto;
    }
}

@media (max-width: 480px) {
    .screenshots-section {
        grid-template-columns: 1fr;
    }

    .screenshot img {
        width: 50%;
        margin: auto;
    }

    .project-buttons .blue-btn {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    .project-buttons .store-badge {
        height: 40px;
    }
}
