html {
    line-height: 1.6;
    letter-spacing: .06em;
}

body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
    /* display: block; */
    opacity: 1;
    pointer-events: auto;
    background-color: #e5decf;
}

#home-center {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
}

#home-title {
    margin: 0;
    font-size: 1.6em;
    text-align: center;
}

#home-subtitle {
    margin-top: 0;
    margin-bottom: 1.5em;
    text-align: center;
    line-height: normal;
    font-style: italic;
    font-size: 0.5em;
    opacity: 0.9;
}

h1 {
    display: block;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}

p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

a {
    color: black;
    background-color: transparent;
    text-decoration: none;
}

p a {
    color: #7c3aed;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.2s;
}

p a:hover {
    color: #2a3a5e;
}

#home-nav {
    opacity: 0.8;
}

#content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    max-width: 93%;
    margin: auto;
    font-size: 1.5rem;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.menu-link {
    text-decoration: none;
    padding: 12px 16px;
    display: block;
    font-size: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#projects-dropdown:hover ~ .menu-link {
    position: relative;
    z-index: 102;
    transform: translateY(1000px);
}

.dropdown-content {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 32px;
    top: 100%;
    min-width: 300px;
    z-index: 99;
    transition: opacity 0.5s ease;
    border-radius: 6px;
    padding: 8px 0;
}

.dropdown-content a {
    display: block;
    font-size: 1.1rem;
    color: #222;
    padding: 8px 24px;
    text-decoration: none;
    background: none;
    border: none;
    margin: 0;
    border-radius: 0;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: linear-gradient(90deg, #e0e0e0 70%, #d2abf5 100%);
    color: #4b2a5e;
    border-left: 2px solid #7c3aed;
    box-shadow: 2px 0 8px rgba(124,58,237,0.08);
    transform: scale(1.04) translateX(4px);
    transition: 
        background 0.3s,
        color 0.3s,
        border-left 0.3s,
        box-shadow 0.3s,
        transform 0.2s;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    pointer-events: auto;
}

.dropdown:hover ~ .menu-link {
    transform: translateY(180px);
}

#gol-grid {
    margin-left: auto;
    margin-right: auto;
}

#gol-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive styles for mobile friendliness */
@media (max-width: 600px) {
    #content {
        max-width: 100vw;
        padding: 0 8px;
    }
    #home-center {
        padding: 0;
    }
    #gol-grid {
        grid-template-columns: repeat(20, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(20, minmax(0, 1fr)) !important;
        width: 100vw;
        max-width: 100vw;
        margin-left: auto;
        margin-right: auto;
    }
    #gol-buttons {
        width: 100vw;
        max-width: 100vw;
        flex-direction: column;
        gap: 8px;
        margin-left: auto;
        margin-right: auto;
    }
    .menu-link {
        font-size: 1rem;
        padding: 10px 0;
    }
    .dropdown-content {
        min-width: 180px;
        font-size: 1rem;
    }
    h1, #home-title {
        font-size: 1.2em;
    }
    #home-subtitle {
        font-size: 0.8em;
    }
}