/* Import a modern Google Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Reset some default styles for consistency */
body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
}

/* Body background and base font */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Montserrat', Arial, sans-serif;
    color: #232526;
    min-height: 100vh;
}

/* Apply basic styles to the header */
header {
    background-color: #333333;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    margin-bottom: 32px;
    transition: box-shadow 0.3s; /* Smooth shadow transition */
    backdrop-filter: blur(8px) saturate(180%);
    background-color: rgba(51, 51, 51, 0.85);
}

/* Header shadow on hover for depth */
header:hover {
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
}

.logo-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    width: 80px;
    margin-right: 14px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.text {
    font-size: 1.3rem;
    text-align: center;
    text-decoration: none;
    letter-spacing: 1px;
}

.text a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}

.text a:hover {
    color: #ff9900;
    background: rgba(255,153,0,0.08);
}

/* Cute pastel style for Google Drive links */
.text a[href*="drive.google.com"] {
    display: inline-block;
    background: linear-gradient(90deg, #ffe0fa 0%, #a2aaff 100%);
    color: #a259c6;
    font-weight: bold;
    border-radius: 16px;
    padding: 12px 28px;
    margin: 16px 0;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(162,89,198,0.08);
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.text a[href*="drive.google.com"]:hover {
    background: linear-gradient(90deg, #ffb6d5 0%, #a2aaff 100%);
    color: #fff;
    transform: scale(1.07) rotate(-2deg);
    box-shadow: 0 4px 16px rgba(255,182,193,0.18);
}

/* Cute pastel style for game link */
.text a[href*="itch.io"] {
    display: inline-block;
    background: linear-gradient(90deg, #ffe0fa 0%, #a2aaff 100%);
    color: #a259c6;
    font-weight: bold;
    border-radius: 16px;
    padding: 12px 28px;
    margin: 16px 0;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(162,89,198,0.08);
    transition: background 0.3s, color 0.3s, transform 0.2s;
}
.text a[href*="itch.io"]:hover {
    background: linear-gradient(90deg, #ffb6d5 0%, #a2aaff 100%);
    color: #fff;
    transform: scale(1.07) rotate(-2deg);
    box-shadow: 0 4px 16px rgba(255,182,193,0.18);
}

/* Style the navigation menu */
nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: space-evenly;
    flex: 1;
    padding: 0;
    margin: 0;
    gap: 12px;
}

nav li {
    flex-grow: 1;
    text-align: center;
    margin: 0;
}

nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
    position: relative;
    overflow: hidden;
}

nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: #ff9900;
    transition: all 0.3s;
    transform: translateX(-50%);
}

nav a:hover {
    color: #ff9900;
    background: rgba(255,153,0,0.08);
}

nav a:hover::after {
    width: 80%;
}

/* Style the social media links */
.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    height: 120px;
    margin: 0 auto;
    padding: 20px 0;
    text-decoration: none;
}

.fa {
    width: 64px;
    height: 64px;
    font-size: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb347 0%, #ff6961 100%);
    color: #fffbe7;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(255,179,71,0.10);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1;
    position: relative;
}

/* Fix for Font Awesome 4 pseudo-elements (icon centering) */
.fa:before {
    display: block;
    text-align: center;
    width: 100%;
    height: 100%;
    line-height: 64px;   /* Vertically center icon */
    margin: 0;
    position: static;
}

.fa:hover {
    background: linear-gradient(135deg, #ff6961 0%, #ffb347 100%);
    color: #fffbe7;
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(255,153,0,0.18);
    border: 2px solid #fffbe7;
    opacity: 1;
}

.fa-facebook, .fa-twitter, .fa-steam, .fa-soundcloud, .fa-youtube, .fa-twitch, .fa-instagram, .fa-link {
    color: #fff;
}

/* Soft shadow and rounded corners for main content and slideshow */
main, .slideshow-container {
    box-shadow: 0 8px 32px rgba(44,62,80,0.08);
    border-radius: 18px;
    background: #fff;
}

main {
    padding-bottom: 24px;
}

/* Slideshow container styling */
.slideshow-container {
    position: relative;
    width: 32%;
    min-width: 320px;
    max-width: 480px;
    margin: 0 auto 32px auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    background: #fff;
    min-height: 320px;
    height: 352px;
    transition: height 1.5s cubic-bezier(0.4,0,0.2,1);
}

.slideshow-container.paused {
    height: 1080px;
}

@media (max-width: 600px) {
  .slideshow-container.paused {
    height: 700px;
  }
}

/* Add fade animation for slideshow images */
.slideshow-image {
    opacity: 0;
    transition: opacity 0.6s;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.slideshow-image.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
    position: relative;
}
.slideshow-container {
    position: relative;
    min-height: 320px;
}

/* Slideshow image styling */
.slideshow-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.4s;
}

/* Slight scale and shadow on slideshow image hover */
.slideshow-image img:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 24px rgba(44,62,80,0.12);
}

/* Slideshow navigation button styling */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 16px;
    background-color: rgba(35,37,38,0.7);
    color: white;
    font-size: 22px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    z-index: 2;
}

/* Slideshow navigation button hover effect */
.prev:hover, .next:hover {
    background-color: #ff9900;
    color: #232526;
}

/* Slideshow navigation button positions */
.prev { left: 16px; }
.next { right: 16px; }

/* Focus style for accessibility (keyboard navigation) */
a:focus, button:focus {
    outline: 2px solid #ff9900;
    outline-offset: 2px;
}

/* Badge style */
.badge {
    display: inline-block;
    background: linear-gradient(90deg, #ffb6d5 0%, #ffe066 100%);
    color: #a259c6;
    font-weight: bold;
    border-radius: 12px;
    padding: 4px 14px;
    margin-top: 6px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Responsive Styles */
/* Medium screens */
@media (max-width: 900px) {
    .slideshow-container {
        width: 60%;
        min-width: 220px;
    }
}

/* Tablet screens */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 14px 8px;
    }

    .logo img {
        width: 60px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    nav li {
        margin: 8px 0;
    }

    .slideshow-container {
        width: 90%;
        min-width: 180px;
    }
}

/* Mobile screens */
@media (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 4px;
    }

    .logo img {
        width: 44px;
    }

    .text {
        font-size: 1rem;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    nav li {
        margin: 4px 0;
    }

    .slideshow-container {
        width: 100%;
        min-width: 120px;
    }

    .prev, .next {
        padding: 8px 10px;
        font-size: 18px;
    }
}

/* Extra small screens */
@media (max-width: 600px) {
  .logo-text {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }
  .logo {
    margin-bottom: 8px;
  }
  .text {
    align-items: center;
    text-align: center;
  }
  nav ul {
    flex-direction: column;
    gap: 8px;
    padding: 0;
  }
  .slideshow-container {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0;
  }
  .slideshow-image img {
    width: 90vw !important;
    max-width: 98vw;
    height: auto;
  }
  .social-media {
    flex-wrap: wrap;
    gap: 12px !important;
  }
  .social-media .fa {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  body, main {
    padding: 0 4vw;
  }
}

.slideshow-container.paused::after {
    content: "⏸ Paused";
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(162, 89, 198, 0.85);
    color: #fff;
    font-size: 1.5rem;
    padding: 12px 32px;
    border-radius: 18px;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(162,89,198,0.18);
    text-align: center;
    letter-spacing: 1px;
}

/* Responsive Spotify embed */
.spotify-embed-wrapper {
  display: flex;
  justify-content: center;
  margin: 32px 0 64px 0;
  width: 100%;
}

.spotify-embed-wrapper iframe {
  width: 100%;
  max-width: 480px;
  min-width: 180px;
  height: 352px;
  border-radius: 12px;
  border: none;
}

@media (max-width: 600px) {
  .spotify-embed-wrapper iframe {
    height: 180px;
    min-width: 0;
    max-width: 98vw;
  }
}

/* Responsive itch.io game embed */
.itchio-embed-wrapper {
  display: flex;
  justify-content: center;
  margin: 32px 0 24px 0;
  width: 100%;
}

.itchio-embed-wrapper iframe {
  width: 100%;
  max-width: 800px;
  min-width: 180px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: none;
  height: auto;
  background: #000;
}

@media (max-width: 600px) {
  .itchio-embed-wrapper iframe {
    max-width: 98vw;
    min-width: 0;
    aspect-ratio: 16 / 9;
  }
}

/* Guest Book Styles */
.guest-book {
    max-width: 800px;
    margin: 48px auto;
    padding: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(162, 89, 198, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(162, 89, 198, 0.1);
}

.guest-book-heading {
    text-align: center;
    color: #a259c6;
    font-size: 2.5rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(162, 89, 198, 0.1);
}

.guest-book-subtitle {
    text-align: center;
    color: #ff6961;
    font-size: 1.1rem;
    margin-bottom: 32px;
    font-style: italic;
}

.guest-book-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #a259c6;
    font-weight: bold;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(162, 89, 198, 0.2);
    border-radius: 12px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a259c6;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(162, 89, 198, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: linear-gradient(90deg, #ffe0fa 0%, #a2aaff 100%);
    color: #a259c6;
    border: none;
    padding: 14px 28px;
    border-radius: 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(162, 89, 198, 0.15);
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #ffb6d5 0%, #a2aaff 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 89, 198, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

.guest-book-entries h3 {
    color: #a259c6;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.entries-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 8px;
}

.entry {
    background: linear-gradient(135deg, rgba(255, 224, 250, 0.3) 0%, rgba(162, 170, 255, 0.1) 100%);
    border: 1px solid rgba(162, 89, 198, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(162, 89, 198, 0.1);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.entry-name {
    font-weight: bold;
    color: #a259c6;
    font-size: 1.1rem;
}

.entry-date {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

.entry-message {
    color: #333;
    line-height: 1.5;
    word-wrap: break-word;
}

.empty-message {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 2px dashed rgba(162, 89, 198, 0.2);
}

/* Scrollbar styling for entries container */
.entries-container::-webkit-scrollbar {
    width: 8px;
}

.entries-container::-webkit-scrollbar-track {
    background: rgba(162, 89, 198, 0.1);
    border-radius: 4px;
}

.entries-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ffe0fa 0%, #a2aaff 100%);
    border-radius: 4px;
}

.entries-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #ffb6d5 0%, #a2aaff 100%);
}

/* Responsive design for guest book */
@media (max-width: 768px) {
    .guest-book {
        margin: 32px 16px;
        padding: 24px;
    }
    
    .guest-book-heading {
        font-size: 2rem;
    }
    
    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .guest-book {
        margin: 24px 12px;
        padding: 20px;
    }
    
    .guest-book-heading {
        font-size: 1.8rem;
    }
    
    .guest-book-subtitle {
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Newsletter Section Styles */
.newsletter-section {
    max-width: 800px;
    margin: 64px auto 48px auto;
    padding: 0 24px;
}

.newsletter-container {
    background: linear-gradient(135deg, rgba(255, 224, 250, 0.3) 0%, rgba(162, 170, 255, 0.2) 100%);
    border: 2px solid rgba(162, 89, 198, 0.2);
    border-radius: 24px;
    padding: 48px 32px;
    box-shadow: 0 8px 32px rgba(162, 89, 198, 0.15);
    backdrop-filter: blur(10px);
    text-align: center;
}

.newsletter-heading {
    color: #a259c6;
    font-size: 2.5rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(162, 89, 198, 0.1);
}

.newsletter-subtitle {
    color: #ff6961;
    font-size: 1.2rem;
    margin-bottom: 32px;
    font-style: italic;
}

.newsletter-form {
    margin-top: 24px;
}

.newsletter-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    border: 2px solid rgba(162, 89, 198, 0.3);
    border-radius: 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.newsletter-input:focus {
    outline: none;
    border-color: #a259c6;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(162, 89, 198, 0.1);
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-submit-btn {
    background: linear-gradient(90deg, #ffe0fa 0%, #a2aaff 100%);
    color: #a259c6;
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(162, 89, 198, 0.15);
    white-space: nowrap;
}

.newsletter-submit-btn:hover {
    background: linear-gradient(90deg, #ffb6d5 0%, #a2aaff 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 89, 198, 0.25);
}

.newsletter-submit-btn:active {
    transform: translateY(0);
}

.newsletter-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.newsletter-privacy {
    color: #888;
    font-size: 0.9rem;
    margin-top: 12px;
    font-style: italic;
}

/* Responsive styles for newsletter */
@media (max-width: 768px) {
    .newsletter-section {
        margin: 48px auto 32px auto;
        padding: 0 16px;
    }
    
    .newsletter-container {
        padding: 36px 24px;
    }
    
    .newsletter-heading {
        font-size: 2rem;
    }
    
    .newsletter-subtitle {
        font-size: 1.1rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-input {
        min-width: 100%;
    }
    
    .newsletter-submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .newsletter-container {
        padding: 28px 20px;
    }
    
    .newsletter-heading {
        font-size: 1.8rem;
    }
    
    .newsletter-subtitle {
        font-size: 1rem;
    }
    
    .newsletter-input,
    .newsletter-submit-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}