@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Fredericka+the+Great&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif&display=swap');
*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --black: #222;
    --white: #fff;
    --text: #736749;  
    --text_p:#695e5e; 
    --gold:#96865e;
    --cursor_focus:#cdbf9a;
    --naslov_font:'Fredericka the Great', cursive;
    --podnaslov_font:'Abril Fatface', cursive;
    --text_font:'Arial, Helvetica, sans-serif';
    --size: 15px;
  }
  .dark-mode {
    --white: #222;
    --black: #fff;
    --text: #DECFA7; 
    --text_p:#6c757d;
    --gold:#96865e;
    --cursor_focus:#9664c8;
}
h1, h2, h3, h4, h5{  
    font-family: var(--naslov_font);                                     
}
html {
    cursor: none;
    user-select: none;
  }
body {
    background-color: var(--white);
    color:var(--text);
    font-size:16px;
}
/************************
Kursor
************************/
.cursor {
    height: var(--size);
    width:  var(--size);
    border-radius: 50%;
    position: absolute;
    z-index: -1;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .cursor.cursor-follower {
    background:var(--cursor_focus);
    transition: top .25s, left .25s, width .5s, height .5s;
    transition-timing-function: ease-out;
  }
  .cursor.cursor-dot {
    background: var(--black);
    transition: width .25s, height .25s;
  }
  .cursor-follower.focus {
    --size: 100px;
  }
  .cursor-dot.focus {
    --size: 0;
  }
  footer,#intro{
    cursor:default;
  }
/************************
Naslov
************************/
#intro{
    background-image: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)), url(../img/maja.jpg);
    background-position:center;
    background-size: cover;
    height:60vh;
    display: flex;
    flex-direction: column;
    justify-content:center;
    margin-bottom:10px; 
    height:64vh;
}
#intro p{
    color: var(--naslov);
    font-size: 1.2rem;
    font-weight: bolder;
    text-transform: uppercase;
	transform-origin: center;
	letter-spacing: .5em;
	border: 4px double rgba(255, 255, 255, 0.25);
	border-width: 4px 0;
	padding: 1em 0em; 
	 position: absolute; 
	width: 15cm; 
	font-family: "arial";
	transform: translate(-50%, -50%);
	left: 50%;
	top: 50%; 
    background-image: linear-gradient(to right,#151414, #a60303,#3f3e3e,#5e5e5b,#6f5252);
    background-clip: text;
	-webkit-background-clip:text;
	-webkit-text-fill-color: transparent;
}
#intro  span{
    font-family: var(--podnaslov_font); 
    font-size: 4em;
    font-weight: bolder; 
    display: block;
	letter-spacing: 1px;
	padding: .25em 0 .325em;
	margin: 0 auto;
	text-shadow: 0 0 80px rgba(255, 255, 255, 0.5);
	background-size: 400% 400%;
	background-image: linear-gradient(to right, #373434,#96865e, #9e9f9c,#6c1122,#e7f178);
    background-clip: text;
	-webkit-background-clip:text;
	-webkit-text-fill-color: transparent;
	animation: rainbow 4s ease infinite;
}
@keyframes rainbow {
	0%, 100% {
	 background-position: 0% 50%;
	}
	50% {
	 background-position: 100% 50%;
	}
}

/************************
Projekti
************************/
#projekti h4,h6 {
    font-size: 19px; 
    font-family:'Times New Roman', Times, serif;
}
#projekti h4{ 
    font-size: 2em; 
}
#projekti p {
    font-size: 20px;  
    font-family:var(--text_font);  
    color:var(--text_p);
} 
.image.featured {
    display: block;
    width: 100%;
    margin: 0 0 0.8em 0;
    transition: 0.3s ease-in-out;
    border-radius: .38em;
}
.image.featured:hover {
    transform: scale(1.02);
} 
.btn:hover {
    background-color: var(--gold);  
} 
/************************
Zupcanici
************************/ 
.main{
    height: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.con{
    position: absolute;
    height: 300px;
    width: 300px;
    top: 53%;
    left: 62%;
}
.large{
    position: absolute;
    top: 13%;
    left: 25%;
    animation: rotate-right 6s linear infinite;
    opacity: .3;
}
.small{
    position: absolute;
    bottom: 57%;
    right:69%;
    animation: rotate-left 6s linear infinite;
    opacity: .3;
}
.medium{
    position: absolute;
    top: 30%;
    right: 74%;
    animation: rotate-right 6s linear infinite;
    opacity: .3;
}
    @keyframes rotate-right{
        from{
        transform: rotateZ(0);
        }
        to{
        transform: rotateZ(360deg);
        }
    }
    @keyframes rotate-left{
        from{
        transform: rotateZ(0);
        }to{
        transform: rotateZ(-360deg);
        }
    }
/************************
footer
************************/
footer {
    background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.1)), url(../img/background.jpg);
    background-position:center;
    background-size: cover;
    padding: 15px;
    color: var(--naslov);
}
footer a {
    color: rgb(142, 145, 167);
    font-size: 2.5em;
    margin: 10px;
}
footer a:hover {
    color: var(--gold);
    transition-duration: 0.7s;
}
footer i:hover {
    animation: rotacija 0.7s ease;
}
    @keyframes rotacija {
        100% {
            transform: rotate(360deg);
        }
    }

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    z-index: 9999;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 30px;
    background-color: var(--gold);
    color: var(--black);
    cursor: pointer;
    border: 0;
    border-radius: 5px;
    text-decoration: none;
    transition: opacity 0.2s ease-out;
    opacity: 0;
 
  }
  #back-to-top:hover {
    background-color: var(--black);
    color: var(--gold);
  }
  #back-to-top i:hover {
   animation: none;
  }
  #back-to-top.show {
    opacity: 1;
  }
  .copyright{
    padding: .1rem 0;
    text-align: center;
    position: relative;
  }


/***************************
dark mode 
**************************/  
nav{
    position: fixed;	
    top: 10px ;
    left: 10px; 
 }
/*navbar desapears due scrolling*/
.is-hidden {
    opacity: 0;
    transition: transform 0.4s, opacity 0.2s;
}  
nav div ion-icon {
font-size: 28px;
}

nav div.night-mode-wrap {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin-right: 70px;
}

nav div.night-mode-wrap ion-icon {
color: #DECFA7;
}
div.buttons-wrap div ion-icon {
font-size: 32px;
color: #DECFA7;
}

div.buttons-wrap div:hover ion-icon {
-webkit-animation: pulse 1s infinite;
    animation: pulse 1s infinite;
}
    @-webkit-keyframes pulse {
        50% {
        -webkit-transform: scale(1.3);
            transform: scale(1.3);
        }
    } 

    @keyframes pulse {
        50% {
        -webkit-transform: scale(1.3);
            transform: scale(1.3);
        }
    }

nav div.night-mode-wrap div.night-mode-button-wrap {
position: relative;
margin-left: 10px;
}

nav div.night-mode-wrap div.night-mode-button-wrap input {
position: absolute;
left: 2px;
}

nav div.night-mode-wrap div.night-mode-button-wrap label {
position: absolute;
width: 55px;/*40*/
height: 21px;
border-radius: 10px;
background-color: var(--white);
border: 2px solid #DECFA7;
cursor: pointer;
}

nav div.night-mode-wrap div.night-mode-button-wrap label div.dark-mode-toggle {
position: absolute;
top: 1px;
left: 1px;
width: 15px;
height: 15px;
border-radius: 50%;
background-color: #DECFA7;

-webkit-transition: all 0.5s ease-in-out;
transition: all 0.5s ease-in-out;
}

nav div.night-mode-wrap div.night-mode-button-wrap #switch:checked ~ label .dark-mode-toggle {
-webkit-transform: translateX(30px);
    transform: translateX(30px);
}


/************************
   ---  media---
************************/
 /* --max-width: 575.98px;
    --max-width: 767.98px;
    --min-width: 768px and  max-width: 991.98px; 
    --min-width: 992px and  max-width: 1199.98px;  */

/*max-width: 575.98px*/
@media only screen and (max-width: 575.98px) {
    .cursor{
        display: none;
    }
    #intro {
        background-position:right;
        height: 39vh;
        position: relative;
    } 
    #intro p{
        font-size:14px;
        text-align:center;
        letter-spacing: .1em;
        border:none;
        left: 140px;
        width: 90%;  
    } 
    #intro span {
        font-size:1.3rem;
    }
  
    #projekti p {
        font-size:15px;
    }
    #projekti h6 {
        font-size:14px;
    }

    .card-title{
        font-size:27px;
    }
   
    footer .copyright{
        font-size: 13px;
    }
    footer a {  
        font-size: 1.5em;
    }

    nav div ion-icon {
        font-size: 20px;
    }
    nav div.night-mode-wrap div.night-mode-button-wrap label {
        width: 40px;
        height: 18;
    }
    nav div.night-mode-wrap div.night-mode-button-wrap #switch:checked ~ label .dark-mode-toggle {
        -webkit-transform: translateX(20px);
        transform: translateX(20px);
    }
    /*dash hidden*/
    .hidden{
        display: none;
    }
    #back-to-top {
        display: none;
    }
}

/* max-width: 767.98px */
@media (min-width: 576px) and (max-width: 767.98px) {
    .cursor{
        display: none;
    }
    #intro {
        background-position:right;
        height: 49vh;
        position: relative;
    } 
    #intro p{
        font-size:18px;
        text-align:center;
        letter-spacing: .1em;
        border:none;
        left: 140px;
        width: 90%;  
    } 
    #intro span {
        font-size:2rem;
    }

    footer .copyright{
        font-size: 13px;
    } 
    footer a {  
        font-size: 1.5em;
    }
 
    nav div ion-icon {
        font-size: 20px;
    }
    nav div.night-mode-wrap div.night-mode-button-wrap label {
        width: 40px;/*40*/
        height: 18;
    }
    nav div.night-mode-wrap div.night-mode-button-wrap #switch:checked ~ label .dark-mode-toggle {
        -webkit-transform: translateX(20px);
            transform: translateX(20px);
    }

    #back-to-top {
        right: 1rem;
    }   
    .hidden{
        display: none;
    } 
}
/* min-width: 768px and  max-width: 991.98px- Tablet portriet*/
@media (min-width: 768px) and (max-width: 991.98px) {
    .cursor{
        display: none;
    }
    #intro {
        background-position:right;
        height: 49vh;
        position: relative;
        } 
    #intro p{
        font-size:18px;
        text-align:center;
        letter-spacing: .1em;
        border:none;
        left: 230px;
        width: 90%;  
    } 
    #intro span {
        font-size:2.8rem;
    }

    #projekti p {
        font-size:15px;
    }
    #projekti h6 {
        font-size:14px;
    }
    .card-title{
        font-size:27px;
    }
    #projekti h4{
    font-size:22px;
    text-align:left;
    }
  
    footer .copyright{
        font-size: 13px;
    }
       
    footer a {  
        font-size: 1.5em;
    }
    nav div ion-icon {
        font-size: 20px;
    }
      nav div.night-mode-wrap div.night-mode-button-wrap label {
        width: 40px;
        height: 18;
    }
    nav div.night-mode-wrap div.night-mode-button-wrap #switch:checked ~ label .dark-mode-toggle {
        -webkit-transform: translateX(20px);
            transform: translateX(20px);
    }
    #back-to-top {
        right:-.3rem;
         width: 30px;
        height: 30px; 
    }  
    .hidden{
        display: none;
    } 
}
/* min-width: 992px and  max-width: 1199.98px  */
@media (min-width: 992px) and (max-width: 1199.98px) { 
    .cursor{
        display: none;
    }
    #intro p{
        font-size:18px;
        text-align:center;
        letter-spacing: .1em;
        border:none;
        left: 260px;
        width: 90%;  
    } 
    #intro span {
        font-size:4rem;
    }

    #projekti p {
        font-size:18px;
    }
    #projekti h6 {
        font-size:14px;
    }
    .card-title{
        font-size:27px;
    }
    #projekti h4{
    font-size:28px;
    text-align:left;
    }
    #back-to-top {
        right:-.39rem;
         width: 35px;
        height: 35px; 
    }  
    .hidden{
        display: none;
    } 
  
}

/*media gears*/
@media only screen and (max-width: 575.98px) {
.con{
  height: 90px;
  width: 90px;
  top: 35%;
  left: 10%;
}  
svg{                     
    width:50px;
    height:50px;
}  
.large{
    top: 84%;
    left: 75%;
}
.small{
    width:35px;
    height:60px;
    top: 45%;
    left: 50%;
}
.medium{
    width:45px;
    height:60px;
    top: 85%;
    left: 28%;
}                     
}
@media (min-width: 576px) and (max-width: 767.98px) {
.con{
  height: 90px;
  width: 90px;  
  top: 35%;
  left: 10%;
}   
svg{                     
    width:80px;
    height:80px;
}  
.large{
    top: 84%;
    left: 78%;
}
.small{
    width:35px;
    height:60px;
    top: 49%;
    left: 60%;
}
.medium{
    width:45px;
    height:60px;
    top: 85%;
    left: 28%;
}           
}
@media (min-width: 768px) and (max-width: 991.98px) {
.con{
  height: 90px;
  width: 90px; 
  top: 22%;
  left: 45%;
}  
svg{                     
    width:90px;
    height:90px;
}   
.large{
    top: 84%;
    left: 78%;
}
.small{
    width:35px;
    height:60px;
    top: 49%;
    left: 60%;
}
.medium{
    width:45px;
    height:60px;
    top: 85%;
    left: 28%;
}           
}
@media (min-width: 992px) and (max-width: 1199.98px) { 
.con{
  height: 200px;
  width: 200px;   
  top: 23%;
  left: 55%;
}
svg{                     
    width:150px;
    height:150px;
}   
.large{
    top: 24%;
    left: 5%;
}
.small{
    width:65px;
    height:90px;
    top: 8%;
    right: 84%;
}
.medium{
    width:95px;
    height:100px;
    top: 40%;
    right: 94%;
}           
}



