:root {
    --light: white;
    --dark: #282828;
    color-scheme: dark;
}

*{
    transition: all 0.2s;
}

a {
    text-decoration: none;
}

body {
    margin: 0;
    background-color: light-dark(var(--light),var(--dark));
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}


@font-face {
    font-family: Creato-Bold;
    src: url("fonts/CreatoDisplay-Bold.otf");
}

@font-face {
    font-family: Creato;
    src: url("fonts/CreatoDisplay-Regular.otf");
}

p {
    color: light-dark(var(--dark),var(--light));
    font-family: Creato;
    font-size: 1.25em;
    margin: 0px;
}

h1 {
    color: light-dark(var(--dark),var(--light));
    font-family: Creato-Bold;
    font-size: 3em;
    margin: 0px;
  font-weight:normal;
}

h2 {
    color: light-dark(var(--dark), var(--light));
    font-family: Creato-Bold;
    font-size: 2.25em;
    margin: 0px;
  font-weight:normal;
}

label {
    color: light-dark(var(--dark),var(--light));
    font-family: Creato-Bold;
    font-size: 1.75em;
}

input, textarea {
    padding: 5px;
    font-family: Creato;
    border: solid 2px light-dark(var(--dark),var(--light));
    border-radius: 5px;
    font-size: 1.5em;
    background-color: light-dark(var(--light),var(--dark));
}

input[type=submit] {
    font-size:1.75em;

}

div.contact-input {
    width:calc(50% - 7.5px);
    box-sizing: border-box;
    margin-top:10px;
}

div.contact-input > input {
    width:100%;
    box-sizing: border-box;
}

.logo {
    margin:10px;
    margin-left:0px;
    font-size:1em;
    text-decoration:none;
    font-weight:bold;
    color: light-dark(var(--light), var(--dark));
}

nav {
	width:100%;
    display: flex;
    align-content: center;
    justify-content: space-between;
    align-items:center;
    z-index:5;
    height:60px;
}

div.nav-links > a {
    font-size: 1.5em;
    font-family: Creato;
    text-decoration: none;
    color:black;
    margin:10px;
 
}

a.active-link > div.links-bar {
    background: linear-gradient(to left, light-dark(var(--dark),var(--light)) 50%, light-dark(var(--dark),var(--light)) 50% 100%);
}

div.nav-links {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    
}

span.link-to:hover {
    opacity: 1;
    cursor:pointer;
}



span.link-to {
    opacity: 0;
    position: absolute;
    margin-left:-43px;
    margin-top:7px;
    padding:5px;
}

#contact-h1:hover + span.link-to {
    opacity: 1;
}

#services:hover + span.link-to {
    opacity: 1;
}

#portfolio:hover + span.link-to {
    opacity: 1;
}

@keyframes hover-on {
    

    0% {
        background-position: 100% 0%
    }

    100% {
        background-position: 0% 0%
    }
}

@keyframes hover-off{


    0% {
        background-position: 200% 0%
    }

    100% {
        background-position: 100% 0%
    }
}

div.links-bar {
    background: linear-gradient(to left, light-dark(var(--light), var(--dark)) 50%, light-dark(var(--dark),var(--light)) 50% 100%);
    background-position: -50% 100%;
    background-size: 200% 100%;
    height: 2px;
    width: 100%;
}


div.nav-links > a:hover > div.links-bar {
    animation: hover-on 0.6s;
    animation-fill-mode: forwards;
}

div.mobile-links > a:active > div.links-bar {
    animation: hover-on 0.6s;
    animation-fill-mode: forwards;
}

div.mobile-links > a > div.links-bar {
    animation: hover-off 0.6s;
    animation-fill-mode: forwards;
}


div.nav-links > a > div.links-bar {
    animation: hover-off 0.6s;
    animation-fill-mode: forwards;
}

@keyframes colors {
    0% {
        background-position: 0% 0%
    }

    50% {
        background-position: 250% 250%
    }

    100% {
        background-position: 0% 0%
    }


}

.main-container {
	max-width:1250px;
  	display:flex;
  	flex-direction:column;
  	justify-content:center;
    margin-bottom: 50px;
}

div.colors {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: 500% 500%;
    background-image: radial-gradient(circle, rgba(14, 171, 250, 1), rgba(154, 121, 250, 1));
    border: solid 5px rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    box-sizing: border-box;
    padding:20px;
}

.adjs-list {
    display:flex;
    flex-direction:row;
}
    .adjs-list h2 {
        margin-left: 5px;
        margin-right: 5px;
    }

    div.colors > h1 {
        color: white;
    }

.color-theme {
    display:block;
    height:100px;
    width:100px;
    background-color:black;

}

.contact-row {
    width:100%;
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.mobile-links {
    visibility: hidden;
    opacity: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    background-color: light-dark(var(--light), var(--dark));
}

div.mobile-links > a{
    font-size: 2.5em;
    margin-top: 10px;
    margin-bottom: 10px;
    text-decoration:none;
}

.mobile-nav {
    display:none;

}

a:hover{
    cursor:hover;
}

input[type=submit] {
    padding-left: 15px;
    padding-right: 15px;

    color: light-dark(var(--light), var(--dark));
    background-color: light-dark(var(--dark), var(--light));
}

input[type=submit]:hover {
    cursor: pointer;
    color: light-dark(var(--dark), var(--light));
    background-color: light-dark(var(--light), var(--dark));
}

input {
    cursor:text;
}

.contact-spiel {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.portfolio {
    width: 350px;
    height: 250px;
    border-radius: 10px;
    border: solid 2px light-dark(black, white);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background-size: 100%;
}

.bar {
    height: 2px;
    width: 25px;
    background-color: light-dark(black, white);
}

#bar1 {
    margin-bottom:9px;

}

div.x{
    height:auto;
    width:25x;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    z-index:5;
}

div.portfolio:hover > div.portfolio-info {
    height: 100%;
    
}

.port-button {
   opacity:0;
   
   height:0px;

}

div.portfolio:hover {
    align-items:flex-end;
}

div.portfolio-info {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.5);
    height:100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    
}

div.portfolio:hover > div.portfolio-info > a > .port-button {
    opacity: 1;
    height: 43px;
    margin-top: 10px;
}

div.portfolio > div.portfolio-info > a {
    height: 0px;
}

div.portfolio:hover > div.portfolio-info > a {
    height: 43px;
}

.port-preview {
    opacity: 1;
    visibility: 1;
    align-self: flex-end;
    text-align: center;
    padding-bottom: 5px;
    padding-top: 5px;
    background-color: rgba(0,0,0,0.5);
}

div.port-wrapper {
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:15px;
}

button {
    padding: 5px;
    font-family: Creato;
    border: solid 2px light-dark(black, white);
    border-radius: 5px;
    font-size: 1.5em;
    background-color: light-dark(white, black);
}

button:hover {
    background-color: light-dark(black, white);
    color:light-dark(white, black);
    cursor:pointer;
}

.main-about{
    height:400px;
    display:flex;
    flex-direction:column;

}

.services {
    display:flex;
    flex-direction: row;
    flex-wrap:wrap;
    justify-content: space-between;
    gap:15px;
}

.service {
    min-height: 300px;
    max-width:400px;
    border:solid 2px white;
    border-radius: 10px;
    box-sizing: border-box;
    display:flex;
    align-items: flex-end;
}

.service > img {
    width:100%;
    height:250px;
    object-fit: cover;
    border-radius: 10px;
}

.service-info{
    padding:15px;
    padding-top:10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    width:100%;
}

@media only screen and (min-width: 1500px) {
    div.port-wrapper {
        gap:0px;
    }
}


@media only screen and (max-width: 600px) {
        div.nav-links {
        display: none;
    }

    .mobile-nav {
        display:flex;
    }

    .main-container {
        margin-left: 15px;
        margin-right: 15px;
    }

    div.contact-input {
        width:100%;
    }

    div.contact-input > input, textarea{
        width:100%;
        box-sizing:border-box;
    }

    .service > img {
        height:150px;
    }
    .portfolio {
        width:100%;
    }
    .service{
        width:100%;
    }
   span.link-to{
        margin-top:5px;
        margin-left:0px;
        position: relative;
        padding:5px;
        opacity: 1;
    }
    div.contact-spiel {
        align-items: center;
    }
}