:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --success-color: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI',  sans-serif;
}
html{
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    @media screen and (max-width: 768px) {
        font-size: 1.2rem;
        margin-bottom: 0;
        
    }
}

header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    @media screen and (max-width: 768px) {
        font-size: 0.8rem;
    }
}

nav {
    background-color: white;
    padding: 0.7rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Stylowanie ikony hamburgera */
#hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    text-align: end;
    font-size: 1.7rem;
}



/* Responsywność na urządzenia mobilne */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Ukrywamy menu na małych ekranach */
        width: 100%;
        flex-direction: column;
        background-color: white;
    }
    
    /* Pokaż menu po kliknięciu w hamburgera */
    ul.active {
        display: flex;
    }

    nav ul li {
        margin: 1rem 0;
        text-align: center;
        width: 100%;
    }

    #hamburger-menu {
        display: block;
    }
}


main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.qr-generator {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.generator-form {
    display: flex;
    flex-direction: column;
}

.generator-form h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.tab-container {
    margin-bottom: 1.5rem;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.8rem 1.2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s;
}

.tab-btn.active {
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.customize-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.customize-section h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.2rem;
}

.color-picker {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-option.selected {
    border: 2px solid var(--text-color);
}

.generate-btn {
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.generate-btn:hover {
    background-color: var(--secondary-color);
}

.qr-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-result {
    background-color: white;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.qr-result img {
    max-width: 80%;
    max-height: 80%;
}
.blur{
    filter: blur(5px);
}

.download-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.download-btn {
    padding: 0.7rem 1.2rem;
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.print-btn{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.download-btn:hover {
    background-color: var(--light-gray);
    border-color: var(--text-color);
}
.success-message {
    background-color: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 1rem;
    display: none;
}
.ready{
    display: none;
}
.tips-section {
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.tips-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ad-container {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.examples-section {
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.examples-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.example-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.example-card img {
    max-width: 100px;
    margin-bottom: 1rem;
}

.example-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.faq-section {
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.faq-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

footer {
    background-color: var(--text-color);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: left;
    @media screen and (max-width: 470px) {
        text-align: center;
        
    }
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

@media (max-width: 768px) {
    .qr-generator {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
}
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
}
#scrollToTopBtn:hover {
    background-color: var(--secondary-color);
}