/* =========================================
    Based off  of Microsoft's 2008 homepage.
    Enhanced by the GPT LLM.
    Edited by MegaLearns in 2025.
   ========================================= */

/* ====================================================================================================================================== */

/* =========================
   Keyframes
   ========================= */

@keyframes FadeIn {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}

/* =========================
   Universal
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: #00becc;
    text-decoration: none;
    vertical-align: baseline;
}

/* =========================
   Body
   ========================= */

body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    background: #DAF3FD;
    align-items: center;
    font-size: 0.83em;
}

/* =========================
   Main Containers
   ========================= */

.body-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 945px;
    box-shadow:
        -10px 0 15px rgba(0, 0, 0, 0.1),
         10px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
    padding-top: 0; /* important */
}

.body-content-credits,
.body-content.projects {
    background-color: #ffffff;
    width: 90%;
    max-width: 945px;
    box-shadow:
        -10px 0 15px rgba(0, 0, 0, 0.1),
         10px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}


/* =========================
   Headers
   ========================= */

.obsolete-header {
    width: 100%;
    background: #ffff99;
    text-align: center;
    padding: 4px;
    font-size: 1.05rem;
}

.top-header {
    display: flex;
    gap: 1.5%;
    padding: 0 20px 0.5% 20px;
    font-size: 100%;
    justify-content: flex-end;
}

.bottom-header {
    padding: 0 2%;
}

.language-header {
    font-weight: bold;
}

.header-wrapper {
    position: relative;
}

.nav-banner {
    background: url("Assets/header.png") no-repeat 0 -520px;
    position: absolute;
    height: 130px;
    width: 50%;
    top: 0;
    left: 160px;
    z-index: -1;
}

.nav-gradient {
    background: url("Assets/gradient.png") repeat-x 0 -16px;
    position: absolute;
    height: 130px;
    width: 100%;
    max-width: 955px;
    top: 0;
    z-index: -2;
    opacity: 0;
    animation: FadeIn 2.2s ease-in-out 0s forwards;
}

/* =========================
   Navigation
   ========================= */

.navlinks {
    display: flex;
    align-items: center;
    gap: 2.1%;
}

.navlinks a {
    font-size: 115%;
}

.link-selected {
    color: #000;
}

.megalearns-logo {
    padding-bottom: 1.75%;
    transition: 0.3s ease-in-out;
}

.megalearns-logo:hover {
    filter: brightness(120%);
}

.navbar {
    padding-bottom: 2.25%;
}

/* =========================
   Banner
   ========================= */

.banner-content,
.banner-content-download {
    color: white;
    padding: 0 40px;
    background: url("Assets/banner.png");
    height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-content h1,
.banner-content p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.banner-content-download {
    background: url("Assets/banner-downloads.svg");
}

.header-banner {
    padding-bottom: 1%;
}

/* =========================
   Content / Cards
   ========================= */

.content-cards,
.content-cards-download {
    border-top: 1px solid #e4e4e4;
    margin: 26px 50px 0 50px;
    padding-top: 23px;
    width: 628px;
    display: flex;
    flex-direction: column;
    padding-bottom: 150px;
}

.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card,
.project-card {
    display: flex;
    flex-direction: column;
    width: 200px;
}

.card-header,
.addons-header {
    color: #22436C;
    font-size: 146%;
    font-weight: 400;
    padding-bottom: 25px;
}

.card-header-link {
    color: #0099CC;
    font-size: 105%;
}

.line-spacing {
    width: 100%;
    height: 1px;
    margin: 6px 0;
    background-color: #a1a1a136;
}

.project-card {
    transition: 0.15s ease-in-out;
}

.project-card:hover {
    transform: scale(1.05);
}

/* =========================
   Images
   ========================= */

.showcase-img,
.project-img {
    padding-bottom: 10px;
    max-width: 100%;
    height: auto;
}

.line-padded img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* =========================
   Text Content
   ========================= */

.content-padded,
.line-padded {
    padding: 0 20px 20px 20px;
    line-height: 1.6;
}

.real-content {
    display: flex;
    flex-direction: column;
}

/* =========================
   Footer
   ========================= */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 100%;
    max-width: 925px;
}

.copyright,
.right-side {
    display: flex;
    align-items: center;
    gap: 15px;
}

.psa {
    font-weight: bold;
    font-size: 12px;
}

/* =========================
   Animations
   ========================= */

.banner-content,
.banner-content *,
.real-content,
.real-content *,
.line-padded,
.line-padded *,
footer,
footer * {
    opacity: 0;
    animation: FadeIn 1.5s ease-in-out 0.1s forwards;
}

/* =========================
   Interactions
   ========================= */

.navlinks a:hover,
a[href^="https"]:hover {
    filter: brightness(75%);
}

.download-button {
    background-color: #0066CC;
    color: #fff;
    padding: 4px 10px;
    border: 1px solid #fff;
    width: fit-content;
    transition: 0.1s ease-in-out;
}

.download-button:hover {
    background-color: #5E9AF0;
    transform: scale(0.98);
}

.download-button:active {
    transform: scale(0.95);
}
