@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap');

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

:root {
    --zuta: #eca23c;
    --magenta: #a11361;
    --plava: #2d84ee;
    --bijela: #cfecf0;
}

a {
    color: var(--plava);
    text-decoration: none;
}

p{
    text-indent: 1.5em;
}

body {
    font-family: 'Arimo';
    line-height: 1.6;
    color: #333;
    animation: puls 15s infinite alternate;
}

@keyframes puls {
    0% {
        background-color: var(--zuta);
    }

    50% {
        background-color: var(--bijela);
    }

    100% {
        background-color: var(--magenta);
    }
}

.page-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    width: 100vw;
    margin: 0 auto;
    padding: 1rem;
    gap: 2rem;
}

/* HEADER */
header[role="banner"] {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to right, var(--zuta), var(--plava));
    color: white;
    border-radius: 10px;
    animation: gradient 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

header h1 {
    font-size: 30pt;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: sjaj 1s infinite alternate;
}

header h2 {
    font-size: 20pt;
    animation: sjaj 1s infinite alternate;
}

@keyframes sjaj {
    from {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
        opacity: 1;
    }

    to {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
        opacity: 0;
    }
}

/* SUMMARY */

.summary {
    position: relative;
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
}

.summary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--plava), var(--magenta));
    border-radius: 10px 0 0 10px;
}

.summary p {
    font-style: italic;
}

/* PERMABLE */
.preamble {
    position: relative;
    text-align: justify;
    padding: 1rem;
    margin: 1rem 0;
    background-color: white;
    border-radius: 10px;
}

.preamble::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--plava), var(--magenta));
    border-radius: 10px 0 0 10px;
}

/* MAIN EXPLANATION PARTICIPATION BENEFITS REQUIREMENTS */
.main.supporting {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.explanation,
.participation,
.benefits,
.requirements {
    padding: 1.5rem;
    border-radius: 10px;
    background-color: white;
    transition: all 0.2s ease-in;
}

.explanation:hover,
.participation:hover,
.benefits:hover,
.requirements:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.627);
    transform: translateY(-5px);
    animation: In 0.5s ease-out forwards;
}

.explanation a:hover,
.participation a:hover,
.benefits a:hover,
.requirements a:hover {
    color: var(--magenta);
    transition: color 0.5s ease;
}

h3 {
    color: #eca23c;
    position: relative;
    padding-bottom: 0.5rem;
}

h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: #a11361;
    border-radius: 5px;
}

/* FOOTER */
footer {
    text-align: center;
    margin-top: auto;
}

footer a {
    color: #3498db;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.5s ease;
}

footer a:hover {
    color: var(--magenta);
}

/* SIDEBAR */
.sidebar {
    position: relative;
    background-color: white;
    border-radius: 10px;
}

.sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--plava), var(--magenta));
    border-radius: 10px 0 0 10px;
}

.design-selection,
.design-archives,
.zen-resources {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
}

.design-selection h3,
.design-archives h3,
.zen-resources h3 {
    color: var(--zuta);
}

.design-selection h3::after,
.design-archives h3::after,
.zen-resources h3::after {
    background-color: var(--magenta);
}

.design-selection ul,
.design-archives ul,
.zen-resources ul {
    list-style: none;
}

.design-selection li,
.design-archives li,
.zen-resources li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #d5d5d5;
    transition: all 0.3s ease;
}

.design-selection li:hover,
.design-archives li:hover,
.zen-resources li:hover {
    background-color: rgba(52, 152, 219, 0.1);
    padding-left: 5px;
}

.design-selection a,
.design-archives a,
.zen-resources a {
    color: #2c3e50;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.design-selection a:hover,
.design-archives a:hover,
.zen-resources a:hover {
    color: var(--magenta);
}

.main.supporting,
.sidebar {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONZIVNOST */
@media (min-width: 900px) {
    .page-wrapper {
        grid-template-columns: 2fr 1fr;
        grid-template-areas:
            "main header"
            "main sidebar";
            width: 100%;
    }

    .intro-header {
        grid-area: header;
    }

    .main.supporting {
        grid-area: main;
    }

    .sidebar {
        grid-area: sidebar;
    }
 }

@media (min-width: 1700px) {
         .page-wrapper {
            width: 70%;
    }
}