@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@700&family=Fira+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Margarine&display=swap');
@font-face {
    font-family: 'HooeyDEMO';
    src: url('font/hooey-demo/HooeyDEMO-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'psilly';
    src: url('font/psilly/Psilly.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'hippy';
    src: url('font/hippy-stamp/HippyStamp.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}

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

body {
    background-color: #ffffff;
    background-image: url('slike/pozadina3.png');
    background-attachment: fixed;
    background-size: cover;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    text-align: center;
    font-family: 'HooeyDEMO', sans-serif;
    color: #4b0082;
    font-size: 80px;
    margin-top: 20px;
}

h2 {
    color: #4b0082;
    font-size: 60px;
    font-family: 'psilly', sans-serif;
    text-align: center;
    margin: 20px 0;
}

a:hover {
    color: #8a2be2;
}

header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

p {
    font-family: "Margarine", serif;
    width: 60%;
    color: #3a0070;
    font-size: 30px;
    text-align: center;
}

hr {
    background-color: #4b0082;
    height: 2px;
    width: 50%;
    margin: 20px auto;
}

a {
    display: block;
    font-family: "Margarine", serif;
    text-decoration:none;
    color: #4b0082;
    text-align: center;
    margin: 10px 0;
    font-size:25px;
}

.tekst {
    text-align: center;
    margin: auto;
    padding-top: 10px;
}

.naslov {
    opacity: 0;
    animation: fadeInAnimation 0.5s ease-in forwards;
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.zastor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 420;
    display: flex;
    pointer-events: none;
}

.zastor-lijevo,
.zastor-desno {
    width: 50%;
    height: 100%;
    background: url('slike/weirdfishes.jpg') no-repeat;
    background-size: 200% 100%;
}

.zastor-lijevo {
    background-position: left;
    animation: zastoraniml 2.5s ease-in forwards;
}

.zastor-desno {
    background-position: right;
    animation: zastoranimd 2.5s ease-in forwards;
}

@keyframes zastoraniml {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes zastoranimd {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

.cloud {
    position: fixed;
    top: 30%;
    width: 400px;
    height: 200px;
    background: url('slike/cloud.png') no-repeat;
    background-size: contain;
    animation: cloudMove 39s linear infinite;
    z-index: -1;
}

.cloud-slow {
    position: fixed;
    top: 70%;
    width: 400px;
    height: 200px;
    background: url('slike/cloud2.png') no-repeat;
    background-size: contain;
    animation: cloudMoveSlow 34s linear infinite;
    z-index: -1;
}

.cloud-brz {
    position: fixed;
    top: 10%;
    width: 400px;
    height: 200px;
    background: url('slike/cloud3.png') no-repeat;
    background-size: contain;
    animation: cloudMoveFast 29s linear infinite;
    z-index: -1;
}

@keyframes cloudMove {
    0% {
        left: -500px;
    }

    100% {
        left: 100%;
    }
}

@keyframes cloudMoveSlow {
    0% {
        left: -400px;
    }

    100% {
        left: 100%;
    }
}

@keyframes cloudMoveFast {
    0% {
        right: -700px;
    }

    100% {
        right: 100%;
    }
}

nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.toggle {
    display: none;
}

.toggle+label {
    display: inline-block;
    width: 120px;
    font-family: 'psilly', sans-serif;
    color: #4b0082;
    text-align: center;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 30px;
    transition: color 0.3s;
    background: none;
    border: none;
    position: relative;
}

.toggle+label:hover {
    transition: color 0.3s;
    background: none;
    border: none;
    position: relative;
}

.toggle+label::before {
    display: none;
}

.toggle+label:hover {
    color: #8a2be2;
}

#toggle1:checked~.content-container #content1,
#toggle2:checked~.content-container #content2,
#toggle3:checked~.content-container #content3 {
    display: block;
}

.toggle:checked+label {
    color: #8a2be2;
    font-weight: bold;
}

.footer-text p {
    font-family: "hippy", sans-serif;
    font-size: 100px;
    margin: auto;
}

.content-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.content {
    display: none;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 50px;
        margin-top: 10px;
    }

    h2 {
        font-size: 40px;
    }

    p {
        font-size: 20px;
        width: 90%;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    .toggle+label {
        width: 100%;
        font-size: 40px;
        padding: 20px 0;
    }

    .content-container {
        padding: 10px;
    }

    .content {
        padding: 10px;
    }

    img {
        width: 100%;
        height: auto;
    }
}