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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

header {
    display: block;
    background-color: #2563eb;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.9;
}

.nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-right a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.nav-right a:hover {
    opacity: 0.8;
}

img {
    border-style: solid;
    border-width: 1px;
    border-color: Black;
    max-width: 100%;
    height: auto;
}

p {
    padding: 5px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Content wrapper styles */
.content-wrapper {
    padding: 2rem;
    color: #333;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

.imgblock {
    margin: 1.5rem 0;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-right {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-right a {
        font-size: 0.9rem;
    }

    .content-wrapper {
        width: 95%;
        padding: 1rem;
    }

    p {
        font-size: 1rem;
    }

    img {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.75rem;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-right {
        gap: 0.75rem;
    }

    .nav-right a {
        font-size: 0.85rem;
        padding: 0.25rem;
    }

    .content-wrapper {
        padding: 0.75rem;
    }

    p {
        font-size: 0.95rem;
        padding: 3px;
    }

    p[style*="font-family:'Courier New'"] {
        font-size: 0.75rem;
        overflow-x: auto;
    }
}

/* Container styles for forms and download page */
.container {
    margin-left: auto;
    margin-right: auto;
    display: block;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
        width: 95%;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    input, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    button {
        padding: 12px !important;
        font-size: 14px !important;
    }
}