:root {
    --crna: hsl(207, 19%, 9%);
    --neutralna: hsl(0, 0%, 100%);
    --zelena: rgb(66, 245, 132);
    --fa-color: rgb(30, 48, 80);
}

* {
    padding: 0;
    margin: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: hsl(208, 17%, 22%);
    border-radius: 10px;
}

body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    line-height: 1.6;
    background: var(--crna);
    font-family: sans-serif;
    overflow: hidden;
    /* padding-right: 15em; */
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
}

a {
    text-decoration: none;
}

header {
    text-align: center;
    padding-top: 20px;
}

header h2 a:active {
    transition: all 100ms ease-in-out;
    text-shadow: 1px 0 30px var(--zelena);
    color: yellow;
}

header h2 a {
    cursor: pointer;
    background-image: linear-gradient(to right,
            var(--zelena),
            var(--zelena) 50%,
            rgb(255, 255, 255) 50%);
    background-size: 200% 100%;
    background-position: -100%;
    display: inline-block;
    padding: 5px 0;
    position: relative;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease-in-out;
}

header h2 a:before {
    content: '';
    background: var(--zelena);
    display: block;
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    transition: all 0.3s ease-in-out;
}

header h2 a:hover {
    background-position: 0;
}

header h2 a:hover::before {
    width: 100%;
}

header h2 i {
    color: var(--neutralna);
}

header h2 i.fa-arrow-left-long,
header h2 i.fa-arrow-right-long {
    --fa-primary-color: var(--zelena);
}

#kontent {
    display: none;
    text-align: center;
    align-items: center;
    padding-bottom: 20px;
}

.kartica {
    text-decoration: none;
    list-style: none;
    display: inline-block;

    color: var(--neutralna);
    padding: 10rem 0 0;
    max-width: 35ch;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 2rem;

    transition: transform 500ms ease;
}

.kartica.info {
    background-image: url("img/slika3.jpg");
    background-size: cover;
}

.kartica.contact {
    background-image: url("img/kontakt3.jpg");
    background-size: cover;
    background-position: 60%;
}

.kartica.money {
    background-image: url("img/money.jpg");
    background-size: cover;
    background-position: 60%;
}

.kartica:hover,
.kartica:focus-within {
    transform: scale(1.05);
}

.grupaKartica {
    --padding: 1.5rem;
    padding: var(--padding);
    background: linear-gradient(hsl(0 0% 0% / 0), hsl(20 0% 0% / 0.3) 20%, hsl(0 0% 0% / 1));
}

@media (hover) {
    .grupaKartica {
        transform: translateY(65%);
        transition: transform 500ms ease;
    }

    .kartica:hover .grupaKartica,
    .kartica:focus-within .grupaKartica {
        transform: translateY(0);
        transition-delay: 500ms;
    }

    .kartica:focus-within .grupaKartica {
        transition-duration: 0ms;
    }

    .grupaKartica>*:not(.naslov) {
        opacity: 0;
        transition: opacity 500ms linear;
    }

    .kartica:hover .grupaKartica>*:not(.naslov),
    .kartica:focus-within .grupaKartica>*:not(.naslov) {
        opacity: 1;
        transition-delay: 1000ms;
    }

    .naslov::after {
        transform: scaleX(0);
    }
}

.naslov {
    position: relative;
    width: max-content;
}

.naslov::after {
    content: "";
    position: absolute;
    height: 4px;
    width: calc(100% + var(--padding));
    left: calc(var(--padding) * -1);
    bottom: -2px;
    background: var(--zelena);
    transform-origin: left;
    transition: transform 500ms ease;
}

.kartica:hover .naslov::after,
.kartica:focus-within .naslov::after {
    transform: scaleX(1);
}

.dugme {
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    color: var(--crna);
    background-color: var(--zelena);
    padding: 0.5em 1.25em;
    border-radius: 0.25em;
}

.dugme:hover,
.dugme:focus {
    background-color: var(--neutralna);
}

.karticaTelo {
    padding-top: 15px;
    width: 263px;
    height: 169px;
    color: rgb(255 255 255 / 0.85);
}

.karticaTelo.contact a {
    color: rgb(255 255 255 / 0.85);
    font-size: 16pt;
}

.karticaTelo.money a {
    color: rgb(255 255 255 / 0.85);
    font-size: 16pt;
}

footer {
    color: rgba(255, 255, 255, 0.295);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition-delay: 0ms !important;
    }

}

@media (max-width: 1200px) {
    body {
        overflow: auto;
    }
}

@media (max-width: 730px) {
    #kontent {
        text-align: center;
    }

    .kartica {
        text-align: center;
    }
}

.kontent-loader {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: auto;
    height: auto;
}

.loader ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    -webkit-animation: rot 16s linear infinite;
    animation: rot 16s linear infinite;
    list-style: none;
}

@-webkit-keyframes rot {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rot {
    100% {
        transform: rotate(360deg);
    }
}

.loader li {
    width: 20px;
    height: 20px;
    background: var(--zelena);
    border-radius: 4px;
    box-shadow: 0 0 1px rgb(255, 255, 255), 0 0 5px var(--zelena), 0 0 10px var(--zelena), 0 0 15px var(--zelena), 0 0 25px var(--zelena), 0 0 55px var(--zelena);
    -webkit-animation: scale 0.8s linear alternate infinite;
    animation: scale 0.8s linear alternate infinite;
}

@-webkit-keyframes scale {
    100% {
        transform: scale(0.1);
        opacity: 0;
    }
}

@keyframes scale {
    100% {
        transform: scale(0.1);
        opacity: 0;
    }
}

.loader li:nth-child(1) {
    z-index: 24;
}

.loader li:nth-child(2) {
    z-index: 23;
}

.loader li:nth-child(3) {
    z-index: 22;
}

.loader li:nth-child(4) {
    z-index: 21;
}

.loader li:nth-child(5) {
    z-index: 20;
}

.loader li:nth-child(6) {
    z-index: 19;
}

.loader li:nth-child(7) {
    z-index: 18;
}

.loader li:nth-child(8) {
    z-index: 17;
}

.loader li:nth-child(9) {
    z-index: 16;
}

.loader li:nth-child(10) {
    z-index: 15;
}

.loader li:nth-child(11) {
    z-index: 14;
}

.loader li:nth-child(12) {
    z-index: 13;
}

.loader li:nth-child(13) {
    z-index: 12;
}

.loader li:nth-child(14) {
    z-index: 11;
}

.loader li:nth-child(15) {
    z-index: 10;
}

.loader li:nth-child(16) {
    z-index: 9;
}

.loader li:nth-child(17) {
    z-index: 8;
}

.loader li:nth-child(18) {
    z-index: 7;
}

.loader li:nth-child(19) {
    z-index: 6;
}

.loader li:nth-child(20) {
    z-index: 5;
}

.loader li:nth-child(21) {
    z-index: 4;
}

.loader li:nth-child(22) {
    z-index: 3;
}

.loader li:nth-child(23) {
    z-index: 2;
}

.loader li:nth-child(24) {
    z-index: 1;
}

.loader li:nth-child(25) {
    z-index: 0;
}

.loader li:nth-child(1) {
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

.loader li:nth-child(7) {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.loader li:nth-child(13) {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

.loader li:nth-child(19) {
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
}

.loader li:nth-child(24) {
    -webkit-animation-delay: 0.9s;
    animation-delay: 0.9s;
}

.loader li:nth-child(2) {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

.loader li:nth-child(8) {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.loader li:nth-child(14) {
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.loader li:nth-child(20) {
    -webkit-animation-delay: 0.8s;
    animation-delay: 0.8s;
}

.loader li:nth-child(3) {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.loader li:nth-child(9) {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

.loader li:nth-child(15) {
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
}

.loader li:nth-child(4) {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.loader li:nth-child(10) {
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.loader li:nth-child(5) {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

.loader li:nth-child(1) {
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

.loader li:nth-child(6) {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

.loader li:nth-child(11) {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.loader li:nth-child(16) {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.loader li:nth-child(21) {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

.loader li:nth-child(7) {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.loader li:nth-child(12) {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.loader li:nth-child(17) {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

.loader li:nth-child(22) {
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.loader li:nth-child(13) {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

.loader li:nth-child(18) {
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.loader li:nth-child(23) {
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
}

.loader li:nth-child(19) {
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
}

.loader li:nth-child(24) {
    -webkit-animation-delay: 0.8s;
    animation-delay: 0.8s;
}

.loader li:nth-child(25) {
    -webkit-animation-delay: 0.9s;
    animation-delay: 0.9s;
}

#kontent .kartica a:hover {
    color: var(--zelena);
    transition: all 300ms ease-in-out;
}

