:root {
    --main-pink: #D92B73;
    --main-white: #fff;
    --main-yellow: #f4ea0c;
    --main-black: #222;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-size: 1.3em;
    background-color: var(--main-yellow);
    line-height: 1.5;
}

img {
    display: block;
    margin: auto;
    max-width: 100%;
    height: auto;
}

div {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

div#links {
    display: block;
    text-align: left;
}

a,
a:visited,
a:hover,
a:focus,
a:active {
    color: var(--main-pink);
    background-color: var(--main-white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover,
a:focus {
    opacity: 0.8;
}

a:focus-visible {
    outline: 3px solid var(--main-pink);
    outline-offset: 2px;
}

li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

div#links p {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 0.2em;
}

div#links ul {
    margin-top: 0.2em;
}

div#disturber {
    background-color: var(--main-white);
    color: var(--main-pink);
    font-weight: bold;
    max-width: 800px;
    width: calc(100% - 2rem);
    margin: 1em auto;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 8px dotted var(--main-pink); /* pink dotted border */
    padding: 0;
}

/* Inner wrapper for white background and padding */
div#disturber-inner {
    background: var(--main-white);
    padding: 0.5em;
    width: 100%;
    box-sizing: border-box;
}

.workshop-container {
    background-color: var(--main-white);
    /*display: flex;*/
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    border: 8px dotted var(--main-pink); /* pink dotted border */
    box-sizing: border-box;
}

.workshop-container h2 {
    text-align: center;
}

.workshop-flyer {
    max-width: 100%;
    max-height: 350px;
    border: 8px dotted var(--main-pink); /* pink dotted border */
    cursor: pointer;
    margin-top: 0;
}

.workshop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
}

.workshop-info {
    margin-top: 20px    ;
    text-align: center;
    font-weight: bold;
}

.our-instances {
    background-color: var(--main-white);
    border: 8px dotted var(--main-pink);
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px;
    max-width: 1600px; /* increased from 1200px to 1600px for more width */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}


h2, h3 {
    margin-bottom: 10px;
    margin-top: 0;
    text-align: left;
}

h1 {
    text-align: center;
}


.unstyled-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;

}

.our-instances ul.unstyled-list {
    text-align: left;
    margin-left: 2em;
}
.our-instances ul.unstyled-list li {
    text-align: left;
    margin-bottom: 0.8em;
}

.unstyled-list.qr-horizontal {
    display: flex;
    flex-direction: row;
    gap: 3em;
    justify-content: space-evenly;
    align-items: flex-start;
    padding-left: 0;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
}
.unstyled-list.qr-horizontal li {
    text-align: left;
    margin-bottom: 0;
    flex: 1 1 0;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Align QR code images to the left edge of the text block */
.unstyled-list.qr-horizontal li a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.unstyled-list.qr-horizontal li img {
    margin-left: 0;
    margin-right: 0;
}

.qr-desc {
    margin-top: 0.5em;
    font-size: 1em;
    color: #222;
    text-align: left;
    max-width: 260px;
    margin-left:13px;
}

.qr-image {
    width: 200px;
    max-width: 100%;
    height: auto;
}

/* Desktop optimization for large screens */
@media (min-width: 1401px) {
    body {
        font-size: 1.4em;
    }

    .our-instances {
        padding: 30px;
    }

    .workshop-container {
        padding: 30px;
    }

    .unstyled-list.qr-horizontal {
        gap: 4em;
    }
}

/* Responsive: stack vertically on small screens */
@media (max-width: 900px) {
    body {
        font-size: 1.1em;
    }

    div {
        padding: 0 0.5rem;
    }

    h1 {
        font-size: 1.5em;
        line-height: 1.3;
        margin: 0.5em 0;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.1em;
    }

    .our-instances {
        max-width: 98vw;
        padding: 10px;
        margin-top: 20px;
        margin-bottom: 20px;
        border-width: 4px;
    }

    .workshop-container {
        padding: 10px;
        border-width: 4px;
    }

    div#disturber {
        width: calc(100% - 1rem);
        margin: 0.5em auto;
        border-width: 4px;
        padding: 0.5em;
    }

    .unstyled-list.qr-horizontal {
        flex-direction: column;
        gap: 2em;
        max-width: 100%;
    }

    .unstyled-list.qr-horizontal li {
        min-width: unset;
        align-items: flex-start;
    }

    .qr-image {
        max-width: 200px;
    }

    .qr-desc {
        margin-left: 0;
    }

    .workshop-flyer {
        max-height: none;
        width: 100%;
        border-width: 4px;
    }
}

/* Additional tablet optimization */
@media (min-width: 901px) and (max-width: 1400px) {
    .unstyled-list.qr-horizontal {
        gap: 2em;
    }

    .our-instances {
        max-width: 95vw;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 1em;
    }

    h1 {
        font-size: 1.3em;
    }

    div {
        padding: 0 0.25rem;
    }

    .our-instances {
        padding: 8px;
        border-width: 3px;
    }

    .workshop-container {
        padding: 8px;
        border-width: 3px;
    }

    div#disturber {
        border-width: 3px;
    }

    .qr-image {
        max-width: 180px;
    }
}

