:root {
    --primary-color: #2d3748;
    --text-color: #1a202c;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-right: 2rem;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

/* API Documentation Styles */
.api-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

elements-api {
    display: block;
    height: 100vh;
}

/* Floating Back Button */
.floating-button {
    position: fixed;
    width: 50px;
    height: 50px;
    background-color: #DDFFFF;
    color: black;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    border-radius: 20%;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
    bottom: 20px;
    right: 20px;
}

.floating-button:hover {
    background-color: #F0FFFF;
    transform: translateY(-2px);
}

/* API List Styles */
.api-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.api-list li {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.api-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.api-list h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.api-list p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.api-list a {
    text-decoration: none;
    color: inherit;
}

.api-list a:hover {
    text-decoration: none;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #f8f8f8;
    font-size: 0.9em;
    color: #666;
}

.footer .contact {
    margin-left: 20px;
}

.footer a {
    color: #555;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Loading screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Language Selector Styles */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.language-selector a {
    padding: 5px 10px;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.9em;
}

.language-selector a.active {
    background-color: var(--primary-color);
    color: white;
}

.language-selector a:hover:not(.active) {
    background-color: #f0f0f0;
}
