* {
    margin: 0;
    text-decoration: none;
}

header {
    background: linear-gradient(135deg, #1a1f3a 0%, #1f0031 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #00d4ff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0f0a27;
}

a {
    text-decoration: none;
    color: inherit;
}

.pad-top-img {
    padding-top: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    max-width: 20%;
    transition: 0.3s ease;
}

.logo:hover {
    max-width: 21%;
}

/* Hero Section */
.about {
    background-color: #0f1219;
    border-bottom: 2px solid #1a1f3a;
    margin-bottom: 0.5rem;
}

.about h2 {
    font-size: 2.5rem;
    text-align: center;
    color: #6f00ff;
    margin-bottom: 0.5rem;
}

.about p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

#slimetopia-logo {
    max-width: 100%;
    height: auto;
}

/* Game Description */
.games {
    text-decoration: none;
    padding: 2rem 0;
    background-color: #0f0a27;
}

.games h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #6f00ff;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: #1a1f3a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #412d61;
    height: 100%;
}

#description1,
#description2,
#description3 {
    text-wrap-style: pretty;
    text-align: justify;
    
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(111, 0, 255, 0.2);
    border-color: #6f00ff;
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

#productivity-tools {
    max-width: 500px;
    margin: 0 auto;
    justify-self: center;
}

.game-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    color: #6f00ff;
}

.game-card p {
    padding: 0 1.5rem 1.5rem;
    color: #a0a0a0;
}

.side-note {
    font-size: 0.9rem;
    color: #707070;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
    text-wrap: pretty;
}

/* Press kit section */
.press-grid {
    display: grid;
    grid-template-columns: minmax(min-content, 350px) minmax(150px, 0.95fr);
    gap: 0rem;
}

#presskit-section {
    background-color: #0f1219;
    border-top: 2px solid #1a1f3a;
    padding: 2rem 0;
    min-width: 100%;
}

#presskit-div{
    text-align: center;
}

#presskit-div p {
    color: #a0a0a0;
    font-size: 1.25rem;
    padding: 0 20px 5px 20px;
    text-align: justify;
}

#press-kit-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #6f00ff;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.presskit-header {
    font-size: 1.5rem;
    color: #6f00ff;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.presskit-text {
    color: #a0a0a0;
    font-size: 1rem;
    padding: 0 10px 5px 10px;
    text-align: justify;
}

.presskit-text a {
    color: #8a36f8;
    text-decoration: underline;
}

#presskit-images {
    display:grid;
    grid-gap: 10px;
    grid-template:
        'img img img'
        'img img img'
        'img img img';
    max-width: 100%;
    margin-top: 1rem;
    padding: 10px;
}

.presskit-img {
    width: fit-content;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

.youtube-player {
    margin: 5px 10px 0px;
    height: 315px;
    width: 560px;
    max-width: 95%;
}

.copy-embed-btn {
    display: block;
    margin: 5px auto;
    padding: 0.5rem 1rem;
    background-color: #6f00ff8f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.copy-embed-btn:hover {
    background-color: #5a00cc;
}

#factsheet-div {
    max-width: 75%;
    margin: 0 auto;
}

#factsheet-div a{
    text-decoration: underline;
}

.fact-sheet-header {
    font-size: 2rem;
    text-align: center;
    color: #6f00ff;
    margin-bottom: 1.5rem !important;
    padding: 0 1.5rem 1.5rem;
}

.fact-sheet-item {
    color: #cecece;
    font-size: 1.25rem;
    padding: 0 10px 5px 10px;
    text-align: justify;
}

.fact-sheet-text {
    color: #a0a0a0;
    font-size: 1rem;
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    background-color: #0f1219;
    color: white;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    border-top: 5px solid #1a1f3a;
    position: sticky;
    bottom: 0;
    width: 100%;
}

.foot-img {
    max-height: 24px;
    margin: 0 25px;
    transition: filter 0.3s ease;
    vertical-align: middle;
    padding-bottom: 5px;
}

footer p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #707070;
    padding-bottom: 5px;
    font-size: 1rem;
}

.hover-underline {
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #6f00ff, #151922);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.hover-underline::before {
  top: -5px;
  transform-origin: left;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}

/* Presskit Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    margin-top: 50px !important;
    padding: 5px;
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    background-color: rgb(0, 0, 0);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .press-grid {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    #factsheet-div {
        max-width: 90%;
        min-width: 85%;
    }

    .fact-sheet-header {
        padding: 0;
    }

    .fact-sheet-item {
    text-align: center;
    }

    .fact-sheet-text {
    text-align: center;
    }

    #presskit-images {
    grid-template:
        'img img'
        'img img'
        'img img';
    }

    .about h2,
    .games h2,
    .contact h2 {
        font-size: 2rem;
    }

    .foot-img {
        margin: 10px 15px;
    }
}

@media (max-width: 690px) {
    .youtube-player{
        margin: 10px 10px;
}
    .copy-embed-btn {
        margin: 0.5rem 10px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    #presskit-images {
    display: block;
    }
}

