/* --- GLOBAL --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
	flex: 1;  
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-image: url("background.jpg");
	background-color: #2a5c3b;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
	height: 100%; 
}

main {
	flex: 1;  
    margin: 0;
    width: 100%;
    max-width: 600px;
	justify-content: flex-end;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* --- LOGO --- */
.logo {
    width: 250px;
    max-width: 80%;
    margin-bottom: 0;
    animation: fadeIn 1s ease-in;
}

/* --- HEADINGS & TEXT --- */
h1, h2 {
    margin: 0.5rem 0;
}

h2 {
    font-size: 1.2rem;
}

p {
    max-width: 600px;
    margin: 0 0 0rem;
    line-height: 1.6;
}

/* --- LINK BUTTONS --- */
.links,
.top-right-buttons {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.links {
    width: 250px;
    max-width: 80%;
    margin: 0 auto;
}

.links a,
.top-right-buttons a,
.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-weight: bold;
    text-decoration: none;
    border: outset;
    border-radius: 10px;
    transition: background 0.3s, transform 0.2s, border-color 0.3s;
}

.links a {
    background: #a256a4;
    border-color: #6e3a70;
    color: #fff;
    font-size: 1.2rem;
}

.links a:hover {
    background: #793578;
    border-color: #552d57;
    transform: scale(1.05);
}

.top-right-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    gap: 10px;
    z-index: 2000;
}

.top-right-buttons a {
    background: #a256a4;
    border-color: #6e3a70;
    color: #fff;
    font-size: 1rem;
}

.top-right-buttons a:hover {
    background: #793578;
    border-color: #552d57;
    transform: scale(1.05);
}

/* --- CONTACT BUTTON --- */
.contact-button {
    width: 250px;
	color: #fff;
    background: #c18726;
    border-color: #805a19;
    font-size: 1.2rem;
    margin-top: 1rem;
    cursor: pointer;
}

.contact-button:hover {
    background: #805a19;
	color: #fff;
    border-color: #664814;
    transform: scale(1.05);
}

/* --- SECRET BUTTON --- */
.secret-button {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #000000;
    text-decoration: none;
	font-weight: bold;
}

.secret-button:hover {
    color: #111111;
}

/* --- FILE SIZE --- */
.filesize {
    font-size: 0.9em;
    opacity: 0.7;
    margin-left: 6px;
}

/* --- GAME SECTION --- */
.game-section {
    background: #2a5c3c;
	width: 600px;           
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.buttons-section {
    background: #2a5c3c;
	width: 600px;           
	height: 100vh; 
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.embed-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.embed-wrapper iframe {
    width: 552px;
    max-width: 95vw;
    height: 190px;
    border-radius: 10px;
    border: none;
}

/* --- FOOTER --- */
footer {
    padding: 1rem;
    font-size: 0.9rem;
    color: #1f1f1f;
    text-align: center;
}

/* --- ANIMATION --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
/* --- MOBILE POLISH (OVERRIDES ONLY) --- */
@media (max-width: 600px) {

    body {
        padding: 0;
        justify-content: flex-start;
    }

    main {
        max-width: 100%;
        padding: 0;
    }

    /* Sections */
    .game-section,
    .buttons-section {
        width: 100%;
        max-width: 100%;
        padding: 1rem 0.75rem;
    }

    /* Prevent forced full-height awkwardness */
    .buttons-section {
        height: auto;
        min-height: 100vh;
        justify-content: flex-start;
    }

    /* Logo */
    .logo {
        width: 180px;
        margin-bottom: 0.5rem;
    }

    /* Text spacing */
    p {
        padding: 0 0.5rem;
        font-size: 0.95rem;
    }

    h2 {
        font-size: 1.1rem;
        margin-top: 1rem;
    }

    /* Buttons & links */
    .links,
    .contact-button {
        width: 100%;
        max-width: 320px;
    }

    .links a,
    .contact-button,
    .top-right-buttons a {
        font-size: 1rem;
        padding: 0.75rem;
    }

    /* Top-right nav */
    .top-right-buttons {
        top: 10px;
        right: 10px;
    }

    /* Embeds */
    .embed-wrapper {
        width: 100%;
    }

    .embed-wrapper iframe {
        width: 100%;
        height: 180px;
    }

    /* Footer breathing room */
    footer {
        padding-bottom: 2rem;
    }
}