body {

    background-color: #fff;
}

body * {
    box-sizing: border-box;
}

header {
    width: 100%;
    height: calc(100vh - 16px);
    background: rgb(0, 155, 255);
    background: linear-gradient(45deg, rgb(255, 0, 36) 0%, rgb(12, 141, 255) 100%);
    position: relative;
}

@keyframes backgroundAni {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

header h1 {
    font: normal 40px Karla,Helvetica,Arial,sans-serif;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}

header h2 {
    font: normal 18px/1 'Libre Franklin', sans-serif;
    color: #fff;
    max-width: 560px;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 16px;
}

header h2 span {
    background: #fff;
    padding: 4px 15px 4px 8px;
    color: rgb(194 71 113);
    border-radius: 3px;
}

header p {
    margin: 0 0 0 0;
    font: normal 17px/1.7 'Libre Franklin', sans-serif;
    color: #fff;
}

header h1 strong {
    font-weight: bold;
    font-size: 90px;
}

header .intro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1000px;
    width: 100%;
    display: flex;
}

header .selected_work {
    position: absolute;
    bottom: 40px;
    left: 50%;
    font: normal .8em/1 'Libre Franklin', sans-serif;
    text-transform: uppercase;
    color: #fff;
    transform: translateX(-50%);
}

header .selected_work:after {
    position: absolute;
    top: 12px;
    left: 50%;
    content:'';
    width: 20px;
    height: 20px;
    background: url(assets/down.svg) no-repeat center center / 14px auto;
    margin-left: -10px;
}

.column.title {
    width: 60%;
}

.column.description {
    width: 40%;
    align-self: flex-end;
    padding-left: 40px;
}

section {
    background: #fff;
    padding: 3rem 0;
}

section h2 {
    margin: 0 0 3rem 0;
    font: normal 50px 'Karla', sans-serif;
    text-align: center;
    color: #000;
}

.work {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 5rem;
    display: flex;
}


.work .year {
    font: normal 1rem/1.2 'Karla', sans-serif;
    margin-bottom: .2rem;
    color: #999;
}


.work h3 {
    max-width: 460px;
    margin: 0 auto .5rem auto;
    font: bold 1.5rem/1.2 'Karla', sans-serif;
}

.work a h3 span:after {
    width: 16px;
    display: inline-block;
    height: 18px;
    content:'';
    margin-left: 5px;
    background: url(assets/right.svg) no-repeat 0 5px / 14px auto;
}

.work a {
    text-decoration: none;
    color: #000;
}

.work p {
    max-width: 460px;
    font: normal 1rem/1.4 'Karla', sans-serif;
}

.work .row {
    width: 480px;
    text-align: right;
}

.work .media {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
    max-width: 310px;
    border: 1px dashed #ccc;
    overflow: hidden;
    display: inline-block;
}

.work.smaller .media{
    max-width: 230px;
}

.work.no_border .media {
    border: 0;
}

.work.horizontal .media {
    max-width: 500px;
}

.work .media video,
.work .media img {
    width: 100%;
    height: auto;
    display: block;
}

.work .description {
    margin-left: 1.5rem;
}

.work .labels {
    margin: 10px 0;
}

.work .labels span {
    font: normal 10px/1 'Libre Franklin', sans-serif;
    text-transform: uppercase;
    background: #333;
    color: #fff;
    padding: 5px 4px;
    border-radius:2px;
    display: inline-block;
}

.work .labels .design {
    background-color: #1572de;
}
.work .labels .code {
    background-color: #ff8100;
}
.work .labels .idea {
    background-color: #00b56a;
}
.work .labels .illustration {
    background-color: #ac4ee0;
}

.work .awards {
    margin-top: 20px;
}
.work .awards .award,
.work .awards .almost_award {
    display: inline-block;
    width: 60px;
    height: 70px;
    font: normal 10px/1 'Libre Franklin', sans-serif;
    text-transform: uppercase;
    text-align: center;
    padding-top: 46px;
    position: relative;
}
.work .awards .award:after {
    content: 'Award';
    width: 42px;
    height: 28px;
    border-radius: 42px;
    background: #f9d399;
    position: absolute;
    top:0;
    left: 10px;
    color: #000;
    font: normal .6rem/1.4 'Karla', sans-serif;
    padding-top: 14px;
}
section.dark_background h2 {
    color: #fff;
}

.timeline {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.timeline:after {
    content: '';
    height: 100%;
    width: 1px;
    border-right: 4px dashed #fff;
    position: absolute;
    left: 105px;
    top: 33px;
}

.timeline .place {
    margin: 1rem 0 2rem 0;
    font: normal 1rem 'Poppins', sans-serif;
    color: #fff;
    position: relative;
    padding-left: 140px;
}

.timeline .place h3 {
    font-weight: bold;
    font-size: 2rem;
}

.timeline .year {
    font-size: 1.5rem;
    position: absolute;
    width: 80px;
    text-align: right;
    padding-right: 20px;
    left: 0;
    top: 1px;
    font-size: 30px;
}

.timeline .year:after {
    position: absolute;
    content: '';
    width: 12px;
    height: 12px;
    background: #0d6a7e;
    display: block;
    right: -18px;
    top: 12px;
    border: 4px solid #fff;
    z-index: 100;
    transform: rotate(45deg);
}

section.more_info {
    width: 100%;
    height: 100vh;
    background: rgb(0, 155, 255);
    background: linear-gradient(45deg, rgba(240, 240, 250) 0%, rgb(220, 220, 240, 1) 100%);
    position: relative;
}
.c_ways {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    min-width: 640px;
}
.ways {
    display: flex;
    /* flex-grow: 2; */
}
.ways div {
    /* padding: 3rem; */
    font: normal 20px/1 'Libre Franklin', sans-serif;
    width: 33%;
    text-align: center;
}
.ways div a {
    color: #000;
    text-decoration: none;
    padding: 1rem;
    padding-left: 3.4rem;
}
.ways .twitter a {
    background: url(img/xblack.png) no-repeat 16px center / 28px auto;
}
.ways .linkedin a {
    background: url(assets/linkedin.png) no-repeat 5px center / 38px auto;
}
@media screen and (max-width: 1024px) {
    header .intro { 
        display: block;
    }
    .column.title,
    .column.description {

        width: 100%;
    }
    .column.description {

        padding-left: 0px;
    }    
    header h1,
    header h2,
    header p {
         padding-left: 20px;
        padding-right: 20px;
    }
    header h1 {

        font-size: 1.8rem;
        margin-bottom: 30px;
        margin-top: 30px;        
    }
    header h2 {
        font-size: 1rem;
        margin-bottom: 15px;
    }    
    header p {
        font-size: 1rem;
        line-height: 1.4;
        margin-top: .6rem;
    }
    section {
        padding:0;
    }
    .work {
        display: block;

    }
    .work .row  {
        background: #eee;
        padding-top: 1rem;
        margin-bottom: 1rem;
    }
    .work .description {
        margin-right: 1.5rem;
    }
    .work .row {
        width: auto;
        text-align: center;
    }
    .work .row .media {
        width: 70%;
    }
       .work.horizontal .row .media {
        width: 90%;
    }
    .c_ways {
      min-width: unset;
    }
    .ways {
        display: block;
    }    
    .ways div {
        width: auto;
        padding: 20px 0;
        text-align: left;
    }
    .ways div.mail a {
        padding-left:10px;
    }
    header {
        height: 90vh;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        color: #fff;
        background-color: #333;
    }
    .work a {
        color: #ffffff;
    }
    section {
        background-color: #333;
    }   
    section h2 {
        color: #fff;
    }   
    .work .year {

        color: #ccc;
    }
    .work a h3 span:after {
        filter: invert(1);
    }
    section.more_info {
        background: #000;
        
    }
    .ways div a {

        color: #fff;
    }
    .ways .twitter a {
        background-image: url(img/xwhite.png);
    }    
}