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

html, body {
    height: 100%;
    font-family: 'Roboto Condensed', sans-serif;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.header {
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    height: 60px;
    width: auto;
}

.delegate-btn {
    background-color: #666;
    color: white;
    border: 2px solid #FFD700;
    padding: 12px 28px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.delegate-btn:hover {
    background-color: #777;
    border-color: #FFD700;
}

.delegate-btn:active {
    transform: translateY(0);
}

.hero-content {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-info {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-ticker {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.wallet-container {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px;
}

.wallet-container.visible {
    display: flex;
}

.wallet-btn {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 24px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 120px;
    opacity: 0.7;
}

.wallet-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
}

.wallet-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message-box {
    display: none;
    margin: 30px auto 0 auto;
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 1rem;
    max-width: 500px;
    text-align: center;
    width: fit-content;
}

.message-box.visible {
    display: block;
}

.message-box.info {
    background-color: rgba(0, 102, 204, 0.8);
    color: white;
}

.message-box.success {
    background-color: rgba(40, 167, 69, 0.8);
    color: white;
}

.message-box.error {
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
}

.message-box.warning {
    background-color: rgba(255, 193, 7, 0.9);
    color: #333;
}

.delegate-action-container {
    display: none;
    margin-top: 20px;
}

.delegate-action-container.visible {
    display: block;
}

.delegate-to-pool-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 35px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.delegate-to-pool-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.delegate-to-pool-btn:active {
    transform: translateY(0);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Motto Section */
.motto-section {
    position: fixed;
    bottom: 45px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 24px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 5;
}

.motto-section p {
    margin: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-info {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .logo {
        height: 50px;
    }

    .delegate-btn {
        padding: 10px 20px;
        font-size: 14px;
        background-color: #666;
        border: 2px solid #FFD700;
    }

    .hero-title {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-info {
        font-size: 1rem;
    }

    .hero-ticker {
        font-size: 1.2rem;
    }

    .wallet-btn {
        padding: 10px 18px;
        font-size: 13px;
        min-width: 100px;
    }

    .delegate-to-pool-btn {
        padding: 12px 25px;
        font-size: 16px;
    }

    .motto-section {
        font-size: 16px;
        padding: 15px 10px;
        letter-spacing: 1.5px;
        bottom: 70px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 40px;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .wallet-container {
        flex-direction: column;
        align-items: center;
    }

    .wallet-btn {
        width: 80%;
        max-width: 200px;
    }

    .motto-section {
        font-size: 14px;
        padding: 15px 10px;
        letter-spacing: 1px;
        bottom: 80px;
    }

    .footer {
        flex-direction: column;
        gap: 8px;
        padding: 12px 20px;
    }

    .footer p {
        font-size: 12px;
    }

    .footer-link {
        font-size: 12px;
    }
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #666;
    color: white;
    padding: 15px 20px;
    font-size: 14px;
    font-family: 'Roboto Condensed', sans-serif;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    margin: 0;
}

.footer-link {
    color: white;
    text-decoration: underline;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #90ee90;
    text-decoration: underline;
}

/* Top Banner */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #666;
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'Roboto Condensed', sans-serif;
    z-index: 15;
}

.top-banner p {
    margin: 0;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    25% { opacity: 1; }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

/* Terms Page Styles */
body.terms-page {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 60px 20px;
}

.terms-container {
    max-width: 700px;
    background-color: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-link {
    display: inline-block;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-link:first-child {
    margin-bottom: 30px;
    display: block;
    text-align: center;
}

.back-link:last-child {
    margin-top: 30px;
    display: block;
    text-align: center;
}

.back-link:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.back-link:active {
    transform: translateY(0);
}

.terms-content {
    color: #333;
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1.8;
}

.terms-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.terms-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #28a745;
    margin-top: 30px;
    margin-bottom: 15px;
}

.terms-content p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}

.terms-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.terms-content li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555;
}

.terms-acceptance {
    margin-top: 30px;
    font-weight: 700;
}

@media (max-width: 768px) {
    body.terms-page .terms-container {
        padding: 30px 25px;
    }

    body.terms-page .terms-content h1 {
        font-size: 1.6rem;
    }

    body.terms-page .terms-content h2 {
        font-size: 1.1rem;
    }
}
