body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #fff;
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1.5em 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 1.5em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3498db;
}

main {
    padding: 3em;
    max-width: 960px;
    margin: 0 auto;
}

section {
    background-color: #252525;
    padding: 2.5em;
    margin-bottom: 2.5em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    background-color: #333;
}

h2 {
    color: #3498db;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

ul {
    list-style-type: none;
    padding: 0;
    margin-left: 0;
}

ul li {
    margin-bottom: 0.8em;
    padding-left: 1.2em;
    position: relative;
}

ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
}

.button {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    margin-top: 1em;
}

.button:hover {
    background-color: #2980b9;
}

footer {
    text-align: center;
    padding: 1.5em 0;
    background-color: #2c3e50;
    color: #fff;
    position: relative;
    width: 100%;
    margin-top: 4em;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donate-buttons {
    margin-top: 10px;
}

.donate-buttons a {
    margin: 0 5px;
}

.code-example {
    background-color: #333;
    padding: 1.5em;
    border-radius: 8px;
    margin-bottom: 1.5em;
}

.code-example h3 {
    margin-top: 0;
    color: #3498db;
}

.code-example pre {
    background-color: #444;
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
}

.code-example code {
    font-family: 'Courier New', monospace;
    color: #fff;
}

.auth-area {
    display: flex;
    align-items: center;
}

#user-profile {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

#user-profile span {
    margin-right: 10px;
}

#login-button, #logout-button {
    background-color: #3498db;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#login-button:hover, #logout-button:hover {
    background-color: #2980b9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #252525;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #555;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.modal-content input {
    display: block;
    margin: 10px 0;
    padding: 10px;
    width: calc(100% - 22px);
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
}

.modal-content button {
    background-color: #3498db;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.modal-content button:hover {
    background-color: #2980b9;
}

.modal-content p {
    margin-top: 15px;
    text-align: center;
}

.modal-content a {
    color: #3498db;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

.error-message {
    color: #e74c3c;
    margin-top: 5px;
    font-size: 0.9em;
}
