body{
    margin: 0;
    padding: 0;
}

body::-webkit-scrollbar {
  width: 17px;        
}

body::-webkit-scrollbar-track {
  background: #313640;        /* color of the tracking area */
}

body::-webkit-scrollbar-thumb {
  background-color: #A1B0AB;    /* color of the scroll thumb */
  border-radius: 3px;       /* roundness of the scroll thumb */
}

h1 {
    margin: 0;
    padding: 20px;
    text-align: center;
    
    font-family: 'PT Mono', monospace;
    font-size: 70px;
    font-weight: bold;
    
    color: white;
}
 
a {
    text-decoration: none;
    color: #114eaf;
    transition: all 0.5s;
}

a:hover {
    text-decoration: underline;
}

/*BANNER*/

#card0 {
    /*background-color: #191f29;*/
    user-select: none;
    height: 100vh;
}

.type {
    font-family: 'PT Mono', monospace;
    font-size: 100px;
    font-weight: bold;    
    
    color: white;
}

#type1 {
    padding: 150px 0 50px 150px; 
}

#type2 {
    padding-left: 150px; 
}

#more {
    opacity: 0;
    position: absolute;
    
    margin: 50px 0 50px 150px;
    padding: 5px;
}

.button {
    border: 4px solid white;
    border-radius: 15px;
    padding: 25px;
    
    font-family: 'PT Mono', monospace;
    font-size: 25px;
    text-align: center;
    color: white;
    cursor: pointer;
    
    height: 80px;
    
    background-color: rgba(255, 255, 255, 0);
    
    transition: background-color 0.5s, opacity 1s;
}

.button:hover{
    background-color: #962511;
    border: 4px solid #962511;
}

.button img {
    width: 20px;
    transform: rotate(-90deg);
    transition: all 0.5s;
}

/*ABOUT*/

#card1 {
    background-color: #ACBDBA;
    min-height: 100vh;
}

red {
    color: #962511;
    font-weight: bold;
}

.about {
    display: flex;
}

.about div {
    margin-left: 40px;
}

.about .picture {
    margin: 40px;
    
    width: 70vh;
    height: 70vh;
    border-radius: 50%;
    border: 4px solid white;
}

@media only screen and (max-device-width: 480px) {
    .about {
        flex-direction: column;
        justify-content: center;
    }
    .about .picture {
        width: 300px;
        height: 300px;
    }
}

.about ul {
    list-style: none;
    display: flex;
}

.about ul li div{
    height: 100px;
    width: 100px;
    margin: 10px;
    padding: 0;
    
    border-radius: 50%; 
    border: 4px solid white;
    
    background-size: cover;
    background-position: center;
    
    transition: all 0.5s;
}

.about ul :first-child div{
    background-image: url(slike/email1.png);
}

.about ul :first-child div:hover {
    background-image: url(slike/email2.png);
}

.about ul :nth-child(2) div{
    background-image: url(slike/github1.png);
}

.about ul :nth-child(2) div:hover {
    background-image: url(slike/github2.png);
}

.about ul :nth-child(3) div{
    background-image: url(slike/linkedin1.png);
}

.about ul :nth-child(3) div:hover {
    background-image: url(slike/linkedin2.png);
}

.about p {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 30px;
    margin: 20px; 
    text-align: justify;
}

.about #more1 {
    margin: 40px;
}

/* CV */
#cv {
    background-color: #6da890;
    min-height: 100vh;
}

.cv-div {
    margin-left: 40px;
}

#more2 {
    margin: 40px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 33px;
    top: 40px;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #313640, #6da890);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 80px;
}

.timeline-dot {
    position: absolute;
    left: 18px;
    top: 8px;
    width: 24px;
    height: 24px;
    background: #ACBDBA;
    border: 4px solid #6da890;
    border-radius: 50%;
    box-shadow: 0 0 0 3px white;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: white;
    border-color: #313640;
    box-shadow: 0 0 0 3px #313640;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #962511;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
    border-color: white;
}

.timeline-year {
    color: #962511;
    font-family: 'PT Mono', monospace;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.timeline-job h3 {
    color: #313640;
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: bold;
    font-family: 'PT Mono', monospace;
}

.timeline-job .company {
    color: #76877D;
    font-weight: bold;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-family: 'Josefin Sans', sans-serif;
}

.timeline-job .description {
    color: #313640;
    line-height: 1.6;
    margin: 0;
    font-size: 16px;
    font-family: 'Josefin Sans', sans-serif;
}

.timeline-job .description a{
    color: #313640;
    line-height: 1.6;
    margin: 0;
    font-size: 16px;
    font-family: 'Josefin Sans', sans-serif;
    text-decoration: underline;
}

/*PROJEKTI*/

#card2 {
    background-color: #ACBDBA;
    padding-bottom: 40px;
}

#card3 {
    background-color: #313640;
    padding-bottom: 40px;
}

#card4 {
    background-color: #6da890;
    padding-bottom: 40px;
}

#card5 {
    background-color: #76877D;
    padding-bottom: 40px;
}

/*FPS PRESENTATION*/

#fps {
    min-height: 100vh;
    overflow: hidden;
    position: relative; 
    
    text-align: center;
}

#fps::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.5;
    z-index: -5;
}

#fps video {
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    min-height: 100%;
    min-width: 100%;

    z-index: -10;   
}

#fps p {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 35px;
    color: white;
    margin: 20px; 
}

#fps .button {
    margin: 100px 20px;
}

#fps span {
    color: white;
    
    font-family: 'PT Mono', monospace;
    font-size: 25px;
    
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    
    padding: 20px;
}

#fps img {
    width: 30px;
    margin: 0;
}

/*CARD STYLING*/

.container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-content: center;
    
    margin: 20px
}

.project  {
    width: 500px;
    height: 350px;
    margin: 10px;
    
    background: #f2f2f2;
    overflow: hidden;
    border-radius: 30px;
    border: 4px solid white;
    position: relative;
    transition: all 0.2s;
}

.project:hover {
/*    border: 4px solid #962511;*/
}

.project .content {
    text-align: center;
    color: black;
    padding: 40px;
}

.project .content h2 {
    font-family: 'PT Mono', monospace;
    font-size: 30px;
    margin-bottom: 40px;
    margin-top: 0;
    
    color: #962511;
}

.project .content p {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 22px;
}

.project .content .button {
    border: 3px solid #2a2a2a;
    color: #2a2a2a;
    font-size: 20px;
    cursor: pointer;
}

.project .content .button:hover {
    border: 4px solid #962511;
    color: white;
    background-color: #962511;
}

.project .content .flap {
    width: 100%;
    height: 100%;
}

.flap .flap1 {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    content: "";
    height: 350px;
    width: 250px;
    background-position: right;
    background-size: cover;
    background-repeat: no-repeat;
    transition: 1s;
}

.flap .flap2 {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    content: "";
    height: 350px;
    width: 250px;
    background-position: left;
    background-size: cover;
    background-repeat: no-repeat;
    transition: 1s;
}

.project:hover .flap .flap2 {
    transform: translatex(250px);
}

.project:hover .flap .flap1{
    transform: translatex(-250px);
}

/*FOOTER*/

footer {
    text-align: center;
    background-color: #313640;
}

footer p {
    padding: 25px;
    margin: 0;
    
    font-family: 'Josefin Sans', sans-serif;
    font-size: 20px;
    letter-spacing: 5px;
    
    color: white;
}
