/* Basic Modern Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Explicit Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 6px;
    border: 3px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #888;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f0f0f0;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    margin: 20px 0;
    text-align: center;
}

.subtitle {
    font-size: 0.9em;
    color: #aaa;
}

.badge {
    background: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    color: #4CAF50;
    display: inline-block;
}

main {
    flex-grow: 1;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

/* Game Wrapper */
.game-wrapper-outer {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    /* Important for scaling */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.game-wrapper-inner {
    position: relative;
    /* Will be resized by JS */
    width: 540px;
    height: 960px;
    transition: width 0.3s ease, height 0.3s ease;
}

#game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 540px;
    /* Original Base Size */
    height: 1000px;
    /* Original Base Size */
    border: none;
    transform-origin: top left;
    /* Scale from top-left corner */
}



/* Info Section */
.info-section {
    background: #2b2b2b;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
}

.info-section h2 {
    color: #fff;
    border-bottom: 2px solid #ed1c24;
    /* Unity Red Accents */
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.credits {
    margin-top: 20px;
    font-size: 0.9em;
    color: #ccc;
    border-top: 1px solid #444;
    padding-top: 10px;
}

.credits ul {
    list-style: none;
    padding: 0;
}

.credits li {
    margin: 5px 0;
}

.credits a {
    color: #4db6ac;
    text-decoration: none;
    transition: color 0.2s;
}

.credits a:hover {
    color: #80cbc4;
    text-decoration: underline;
}

.author-btn {
    display: inline-block;
    background: #444;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    border: 1px solid #666;
}

.author-btn:hover {
    background: #555;
}

.credits h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1em;
    color: #eee;
}

footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.8em;
    background: #0a0a0a;
}

/* Author Page Styles */
.authors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.author-card {
    background: #333;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.author-card h3 {
    color: #4db6ac;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.author-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.author-desc {
    font-size: 0.9em;
    color: #ccc;
}

.back-link {
    margin-top: 20px;
}

.back-link a {
    color: #ed1c24;
    text-decoration: none;
    font-weight: bold;
}

.back-link a:hover {
    text-decoration: underline;
}