* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Päis */
header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Menüü */
nav {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    justify-content: center;
}

.menu a {
    display: block;
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu a:hover,
.menu a.active {
    background: #6a11cb;
    color: white;
    transform: translateY(-2px);
}

/* Sisu */
main {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.joke-container {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    padding: 2rem 1rem;
}

.joke-text {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-style: italic;
}

.joke-id {
    color: #6a11cb;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Jalus */
footer {
    background: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    color: #666;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobiili kohandused */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .menu {
        flex-direction: column;
    }

    .menu a {
        text-align: center;
    }

    main {
        padding: 1.5rem;
    }

    .joke-text {
        font-size: 1.2rem;
    }
}