/* CSS reset - https: //www.joshwcomeau.com/css/custom-css-reset/ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    z-index: 0;
    -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
a.button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/* Globalne spremenljivke */
:root {
    --Focus: #51fe5a;
    --MainForeground: #000000;
    --MainBackground: #ffffff;
    --SecBackground: #f5f5f5;
    --Radius: 2rem;
    --gap-element: 1rem;
    --gap-section: 2rem;
    --container: 1500px;
    --padding-section: 2rem;
}

/* Označevanje vsebine (npr: copy/paste) */

::selection {
    background: var(--Focus);
    color: var(--MainBackground);
    text-shadow: none;
}

::-moz-selection {
    background: var(--Focus);
    color: var(--MainBackground);
    text-shadow: none;
}

/* Ikone (self-hosted) https: //remixicon.com/ */

@font-face {
    font-family: 'RemixIcon';
    src: url('../icons/remixicon.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

i {
    font-family: 'RemixIcon';
    font-style: normal;
    font-weight: normal;
    font-size: 2rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Vsa vsebina */
body {
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
}

/* Besedila */

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
}

a {
    font-weight: 600;
    text-decoration: none;
    color: var(--Focus);
}

ul {
    padding-left: 0;
    list-style: inside;
}

ol {
    padding-left: 0;
    list-style: inside decimal;
}

/* Gumbi */

a.button {
    background-color: var(--Focus);
    color: var(--MainBackground);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--Radius);
    transition: background 0.5s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

a.button i {
    font-size: 1.5rem;
}

a.button:hover {
    background-color: var(--MainForeground);
    cursor: pointer;
    transition: background 0.5s;
}

a.button.sec {
    border: 2px solid var(--Focus);
    background-color: transparent;
    color: var(--Focus);
    transition: 0.5s;
}

a.button.sec:hover {
    border-color: var(--MainForeground);
    color: var(--MainForeground);
    transition: 0.5s;
}


a.button.ter {
    background-color: var(--MainBackground);
    color: var(--Focus);
}

a.button.ter:hover {
    color: var(--MainForeground);
    background-color: var(--SecBackground);
    transition: 0.5s;
}


a.button:disabled,
a.button[disabled] {
    background-color: var(--SecBackground);
    cursor: not-allowed;
    color: var(--MainForeground);
    opacity: 0.5;
}

button {
    background-color: var(--Focus);
    color: var(--MainBackground);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--Radius);
    transition: background 0.5s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

button i {
    font-size: 1.5rem;
}

button:hover {
    background-color: var(--MainForeground);
    cursor: pointer;
    transition: background 0.5s;
}

button.sec {
    border: 2px solid var(--Focus);
    background-color: transparent;
    color: var(--Focus);
    transition: 0.5s;
}

button.sec:hover {
    border-color: var(--MainForeground);
    color: var(--MainForeground);
    transition: 0.5s;
}


button.ter {
    background-color: var(--MainBackground);
    color: var(--Focus);
}

button.ter:hover {
    color: var(--MainForeground);
    background-color: var(--SecBackground);
    transition: 0.5s;
}


button:disabled,
button[disabled] {
    background-color: var(--SecBackground);
    cursor: not-allowed;
    color: var(--MainForeground);
    opacity: 0.5;
}

/* Slike */

img {
    max-width: 100%;
    border-radius: var(--Radius);
    object-fit: cover;
}

/* Video */

.video {
    width: 100%;
    height: 25rem;
    border-radius: var(--Radius);
    overflow: hidden;
}

.video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Postavitev */

section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;
}

section.wrapper {
    flex-direction: row;
    flex-wrap: wrap;
}

section.slider,
section.full-slider {
    overflow: hidden;
    padding: 0;
}

.group {
    display: flex;
    gap: 1rem;
}

/* Grid */

[class*="Grid--"] {
    display: grid;
    grid-auto-rows: auto;
    gap: var(--gap-element);
}

/* 1 col */
.mGrid--1 {
    grid-template-columns: 1fr;
}

/* 2 cols */
.mGrid--11 {
    grid-template-columns: 1fr 1fr;
}

.mGrid--12 {
    grid-template-columns: 1fr 2fr;
}

.mGrid--21 {
    grid-template-columns: 2fr 1fr;
}

/* 3 cols */
.mGrid--111 {
    grid-template-columns: 1fr 1fr 1fr;
}

.mGrid--112 {
    grid-template-columns: 1fr 1fr 2fr;
}

.mGrid--121 {
    grid-template-columns: 1fr 2fr 1fr;
}

.mGrid--211 {
    grid-template-columns: 2fr 1fr 1fr;
}

/* 4 cols */
.mGrid--1111 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.mGrid--1122 {
    grid-template-columns: 1fr 1fr 2fr 2fr;
}

.mGrid--1212 {
    grid-template-columns: 1fr 2fr 1fr 2fr;
}

.mGrid--1221 {
    grid-template-columns: 1fr 2fr 2fr 1fr;
}

.mGrid--2111 {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.mGrid--2211 {
    grid-template-columns: 2fr 2fr 1fr 1fr;
}

/* Kartica*/

.card {
    display: grid;
    grid-template-rows: min-content auto min-content;
    background-color: var(--SecBackground);
    border-radius: var(--Radius);
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.card-header,
.card-body,
.card-footer {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 2rem;
    display: flex;
    flex-flow: column;
    gap: 1rem;
}

/* Razdeljevalnik */

hr {
    border: 0;
    border-top: 1px solid var(--SecBackground);
    margin: 0 1rem;
}

hr.dotted {
    border-top: 1px dotted var(--SecBackground);
}

/* Slider */

.slider-row {
    display: grid;
    grid-auto-flow: column;
    padding: 2rem 1rem;
    grid-auto-columns: min(80vw, 35rem);
    gap: 1rem;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slider-row::-webkit-scrollbar {
    display: none;
}

.full-slider .slider-row {
    grid-auto-columns: 100%;
}

.slider-element {
    height: 25rem;
    border-radius: var(--Radius);
    scroll-snap-align: center;
    background: var(--Focus);
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Piškotki */

#cookie {
    display: none;
    flex-flow: column;
    background-color: var(--MainBackground);
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 100;
    padding: 2rem;
    border-radius: var(--Radius);
    box-shadow: 0px 0px 34px 0px hsla(0, 0%, 0%, 0.1);
    gap: var(--gap-element);
}


/* Glava (header) */
header {
    position: sticky;
    top: 0;
    left: 0;
    display: grid;
    padding: 1rem 1rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "logo icon" "menu menu";
    background-color: var(--MainBackground);
    z-index: 5;
    border-bottom: 1px solid var(--SecBackground);
}

header .logo {
    grid-area: logo;
    font-size: 2rem;
    font-weight: 700;
}

header .menu-button {
    grid-area: icon;
    background: none;
    padding: 0;
    color: var(--MainForeground);
    justify-content: right;
}

/* Noga (footer) */
footer {
    display: flex;
    color: var(--MainBackground);
    background-color: var(--MainForeground);
    padding: 2rem 1rem;
}

/* Glavna Navigacija (nav) */

#header-menu {
    grid-area: menu;
}

#header-menu ul {
    max-height: 0;
    transition: max-height 0.35s ease-out;
    overflow: hidden;
    list-style: none;
    display: flex;
    flex-flow: column;
    gap: var(--gap-element);
}

#header-menu ul li {
    cursor: pointer;
    font-size: 1.5rem;
}

#header-menu ul li:first-child {
    margin-top: 1rem;
}

#header-menu ul li:last-child {
    margin-bottom: 1rem;
}

#header-menu ul li:hover {
    color: var(--Focus);
}

/* TABLICA */
@media (min-width: 800px) {

    #cookie {
        bottom: 1rem;
        left: auto;
        right: 1rem;
        max-width: 30rem;
        font-size: 0.8rem;
    }

    /* Grid */
    .tGrid--1 {
        grid-template-columns: 1fr;
    }

    .tGrid--11 {
        grid-template-columns: 1fr 1fr;
    }

    .tGrid--12 {
        grid-template-columns: 1fr 2fr;
    }

    .tGrid--21 {
        grid-template-columns: 2fr 1fr;
    }

    .tGrid--111 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .tGrid--112 {
        grid-template-columns: 1fr 1fr 2fr;
    }

    .tGrid--121 {
        grid-template-columns: 1fr 2fr 1fr;
    }

    .tGrid--211 {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .tGrid--1111 {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .tGrid--1122 {
        grid-template-columns: 1fr 1fr 2fr 2fr;
    }

    .tGrid--1212 {
        grid-template-columns: 1fr 2fr 1fr 2fr;
    }

    .tGrid--1221 {
        grid-template-columns: 1fr 2fr 2fr 1fr;
    }

    .tGrid--2111 {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .tGrid--2211 {
        grid-template-columns: 2fr 2fr 1fr 1fr;
    }
}

/* MANJŠI DESKTOP */
@media (min-width: 1200px) {

    header {
        grid-template-areas: "logo menu";
        align-items: center;
        position: relative;
    }

    header .menu-button {
        display: none;
    }

    .slider-row {
        padding: 0;
    }

    /* Navigacija (nav) */

    #header-menu {
        position: relative;
        width: auto;
        display: flex;
        justify-content: right;
        align-items: center;
        background-color: transparent;
    }

    #header-menu ul {
        max-height: max-content;
        flex-flow: row;
        font-size: 1rem;
        padding: 0;
        align-items: center;
    }

    #header-menu ul li {
        font-size: 1rem;
        width: max-content;
    }

    #header-menu ul li:first-child,
    #header-menu ul li:last-child {
        margin: 0;
    }

    /* Grid */
    .lGrid--1 {
        grid-template-columns: 1fr;
    }

    .lGrid--11 {
        grid-template-columns: 1fr 1fr;
    }

    .lGrid--12 {
        grid-template-columns: 1fr 2fr;
    }

    .lGrid--21 {
        grid-template-columns: 2fr 1fr;
    }

    .lGrid--111 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .lGrid--112 {
        grid-template-columns: 1fr 1fr 2fr;
    }

    .lGrid--121 {
        grid-template-columns: 1fr 2fr 1fr;
    }

    .lGrid--211 {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .lGrid--1111 {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .lGrid--1122 {
        grid-template-columns: 1fr 1fr 2fr 2fr;
    }

    .lGrid--1212 {
        grid-template-columns: 1fr 2fr 1fr 2fr;
    }

    .lGrid--1221 {
        grid-template-columns: 1fr 2fr 2fr 1fr;
    }

    .lGrid--2111 {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .lGrid--2211 {
        grid-template-columns: 2fr 2fr 1fr 1fr;
    }
}

/* VEČJI DESKTOP */
@media (min-width: 1500px) {

    /* Vsa vsebina */
    body {
        font-size: 18px;
    }

    /* Stranski odmik */
    section,
    header,
    footer,
    section.slider,
    section.full-slider {
        padding: 2rem;
    }

    hr {
        margin: 0 2rem;
    }

    /* Grid */
    .slider-row {
        grid-auto-columns: 40%;
    }

    .dGrid--1 {
        grid-template-columns: 1fr;
    }

    .dGrid--11 {
        grid-template-columns: 1fr 1fr;
    }

    .dGrid--12 {
        grid-template-columns: 1fr 2fr;
    }

    .dGrid--21 {
        grid-template-columns: 2fr 1fr;
    }

    .dGrid--111 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .dGrid--112 {
        grid-template-columns: 1fr 1fr 2fr;
    }

    .dGrid--121 {
        grid-template-columns: 1fr 2fr 1fr;
    }

    .dGrid--211 {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .dGrid--1111 {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .dGrid--1122 {
        grid-template-columns: 1fr 1fr 2fr 2fr;
    }

    .dGrid--1212 {
        grid-template-columns: 1fr 2fr 1fr 2fr;
    }

    .dGrid--1221 {
        grid-template-columns: 1fr 2fr 2fr 1fr;
    }

    .dGrid--2111 {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .dGrid--2211 {
        grid-template-columns: 2fr 2fr 1fr 1fr;
    }
}