/*
    Minimal Reset
*/
html, body, h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
    line-height: 1.3;
    font-weight: 400;
}

/*
    Basic
*/
html {
    font-family: "Segoe UI Variable", "Segoe UI", "Inter var", -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    color: #263238;
}

h1 {
    font-size: 2em;
    font-weight: 700;
}

h2 {
    font-size: 1em;
    margin-bottom: 1em;
    font-weight: 700;
}

p {
    margin-bottom: 1em;
}

a {
    font-weight: 400;
    color: #263238;
    text-decoration: none;
}
a:active,
a:focus {
    outline: none;
}

code {
    font-size: 0.8em;
}


/*
    Grid
*/
.container {
	display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
    margin: 5vh 2em;
}

.card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
}

/*
    Line
*/
.line {
	width: 100px;
	height: 5px;
	background-color: #7b878d;
	display: inline-block;
	margin: 1em 0;
	z-index: -1;
	border: none;
}

/*
    Code Links
*/
.code-links {}

.code-link {
    font-weight: initial;
}

/*
    Cards
*/
.card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow:  20px 20px 60px #d9d9d9,
                -20px -20px 60px #ffffff;
}

.card-image {
    height: 5em;
    background-size: cover;
    border-radius: 10px;
    position: relative;
}

.card-image--xing {
}

.card-image--instagram {
}

.card-image--orcid {
}

.card-image--github {
}

.card-text {
    display: inline-block;
    padding: 1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 2em;
    color: #ffffff;
    z-index: 2000;
    font-weight: 600;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-text--github {
    background-image: linear-gradient(-70deg,#db469f,#2188ff);
}

.card-text--xing {
    background-image: linear-gradient(45deg, #009090, #c6f16d);
}

.card-text--orcid {
    background-image: linear-gradient(20deg, #a6a8ab, #a6ce39);
}

.card-text--instagram {
    background-image: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.card-text--publication {}

.card-line {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1000;
    margin: 1rem;
}


.imprint {
    background-color: initial;
    border-radius: initial;
    box-shadow: initial;
}

.spotify_badge {
    display: flex;
    gap: 10px;
    color: #263238;
    /*background-color: #1db954;*/
    width: fit-content;
    margin-bottom: 1em;
    font-size: smaller;
}

.spotify_title {
    /*font-weight: 600;*/
    font-size: 1.1em;
}

.spotify_artist {
    color: #888888;
}

.spotify_image {
    height: 3em;
    border-radius: 2px;
}

.spotify_text_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*
    Dark Mode
*/
.bg-dark {
    background-color: #222222;
    color: #dddddd;
}

.bg-dark a {
    color: #eeeeee;
}

.bg-dark .card {
    box-shadow:  none;
    background-color: #333;
}

.bg-dark .imprint {
    background-color: initial;
}

/*
    Error banner
*/
.banner-error {
    position: fixed ;
    padding: 5px 50px;
    top: 50px;
    left: 0px;
    background-color: #263238;
    color: white;
    margin: auto;
    transition: left 1s ease-in-out;
}
.hidden-on-top {
    left: -500px;
}
.button-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 10px;
    cursor: pointer;
    color: lightgrey;
}

/*
    Media Queries
*/
@media screen and (min-width: 600px) {
    .container {
        grid-template-columns: 1fr 300px 200px 1fr;
        align-items: start;
    }

    .card-container {
        grid-column: 3/4;
    }

    .imprint {
        grid-column: 2/3;
    }
}

@media screen and (min-width: 992px) {
    .container {
        grid-template-columns: 1fr 400px 200px 1fr;
        grid-template-rows: 90vh;
        align-items: center;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .imprint {
    }
}

@media(max-width: 800px) {
    .banner-error {
        position: initial;
        margin: initial;
    }
}

@media(max-width: 800px) {
    .hidden-on-top {
        display: none;
    }
}
