:root {
    /* Primary Logo Colors */
    --light-green: #80d26a;
    --dark-green: #4ead34;
    --yellow: #e7c146;

    /* Supporting Colors */
    --light-bg: #f8f9f4;
    --off-white: #f2f7ef;
    --light-accent: #e8f3e3;
    --dark-accent: #3a8626;
    --text-dark: #2c3e2e;
    --text-medium: #4a5d4c;

    /* Interactive Elements */
    --hover-green: #6bc554;
    --hover-fun: #9d82c6;
    --hover-foss: #6accd2;
    --hover-private: #ff2ed44f;
    --hover-green-card: #56ee119e;

    /* Utility */
    --white: #ffffff;
    --black: #000000;
    --shadow: rgba(0, 0, 0, 0.1);
    --border-light: rgba(74, 173, 52, 0.3);
    --gradient-green: linear-gradient(
        135deg,
        var(--light-green),
        var(--dark-green)
    );
    --gradient-yellow: linear-gradient(
        135deg,
        var(--yellow),
        var(--hover-yellow)
    );
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--light-accent);
    box-shadow: 0 2px 5px var(--shadow);
    flex-direction: column;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-container:hover h1 {
    color: var(--hover-green);
}

.logo {
    height: 65px;
    margin-right: 0.8rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-green);
}

main {
    flex: 1;
    padding: 3rem 5%;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-medium);
    font-style: italic;
}

#values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background-color: var(--off-white);
    border-radius: 8px;
    padding: 2rem;
    padding-bottom: 5rem;
    box-shadow: 0 3px 10px var(--shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-left: 4px solid var(--yellow);
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    border-color: var(--light-green);
    transform: translateY(-5px);
    border-width: 3px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--yellow);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-green);
}

.value-card p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.value-card::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -80px;
    width: 300px;
    height: 300px;
    background-image: url("../assets/ObviousGainLogo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.4s ease, right 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.value-card:hover::before {
    opacity: 0.2;
    right: -60px;
}

.value-card h3,
.value-card p,
.value-card a {
    position: relative;
    z-index: 1;
}

.value-link {
    position: absolute !important;
    bottom: 1.5rem;
    left: 2rem;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--light-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.value-link:hover {
    background-color: var(--hover-green);
}

#wandering-door-games-link:hover {
    background-color: var(--hover-fun);
}

#foss-link:hover {
    background-color: var(--hover-foss);
}

#value-fun:hover {
    border-left: 4px solid var(--hover-fun);
}

#value-foss:hover {
    border-left: 4px solid var(--hover-foss);
}

#value-private:hover {
    border-left: 4px solid var(--hover-private);
}

#value-green:hover {
    border-left: 4px solid var(--hover-green-card);
}

footer {
    background-color: var(--light-accent);
    text-align: center;
    padding: 2rem;
    color: var(--text-medium);
}

#codeberg-badge img {
    height: 3.5rem;
    transition: opacity 0.3s ease;
}

#codeberg-badge:hover img {
    opacity: 0.8;
}

#site-license-text {
    padding-bottom: 1.5rem;
}

.page-not-found-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url("../assets/ObviousGainLogo.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.1;
    z-index: 1;
}

.page-not-found-content {
    max-width: 600px;
    padding: 3rem;
    position: relative;
    z-index: 2;
}

.page-not-found-title {
    font-size: 8rem;
    font-weight: 700;
    color: var(--dark-green);
    margin: 0;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(52, 149, 173, 0.15);
}

.page-not-found-divider {
    height: 4px;
    width: 100px;
    background: var(--gradient-green);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.page-not-found-subtitle {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.page-not-found-message {
    color: var(--text-medium);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

#mastodon-verification {
    display: none;
}

@media (max-width: 1026px) {
    #values-grid {
        grid-template-columns: 1fr;
    }
}
