/* -- importing fonts -- */
@font-face {
    font-family: Belgrano;
    src: url(fonts/Belgrano-Regular.ttf) format('truetype');
}
@font-face {
    font-family: AnticDidone;
    src: url(fonts/AnticDidone-Regular.ttf) format('truetype');
}
@font-face {
    font-family: steelfish;
    src: url(fonts/steelfish\ rounded\ bd.otf);
}
@font-face {
    font-family: Walbaum;
    src: url(fonts/Walbaum-FrakturUNZ1.ttf) format('truetype');
}
@font-face {
    font-family: Klaber;
    src: url(fonts/KlaberFraktur.ttf) format('truetype');
}

/* -- margin reset -- */
html,body,blockquote,code,h1,h2,h3,h4,h5,h6,p,pre{margin:0;padding:0}

/* -- general styling of the body and header -- */
html {
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden;
}
body {
    background-color: rgb(230, 230, 230);
    font-size: 16px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-left: 25px;
    margin-right: 25px;
    text-align: justify;
    color: black;
}
body header {
    top: 0;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    border-bottom: solid 1.8px rgb(214, 214, 214);
    background-color:  rgb(230, 230, 230);;
    margin-bottom: 15px;
    flex-shrink: 0;
    z-index: 100;
}
.home {
    font-weight:lighter;
    font-size: 20px;
    font-family: Walbaum;
    height: 100%;
    width: 100%;
    text-align: left;
    border: none;
    background-color: rgb(230, 230, 230);
    color: black;
}

/** -- drop-down button -- */
body nav {
    position: relative;
    display: inline-block;
    color: black;
}
.dropbtn {
    font-weight:lighter;
    font-size: 20px;
    font-family: Walbaum;
    width: 50px;
    height: 52px;
    background-color: rgb(214, 214, 214);
    border: none;
    color: black;
    text-align: center;
}
.menu {
    opacity: 0%;
    position: absolute;
    font-weight: bold;
    font-family: AnticDidone;
    font-size: 15px;
    color: black;
    padding: 0;
    list-style-type: none;
    margin-top: 0px;
    background-color: rgb(214, 214, 214);
    z-index: 1;
}
.menu a:hover {
    background-color: rgb(230, 230, 230);
    transition: 0.3s;
    border-radius: 0px 0px 5px 5px;
}
.menu a {
    color: black;
    text-decoration: none;
}
body nav:hover .menu {
    opacity: 100%;
    transition: 0.2s;
    list-style-type: none;
    width: 100%;
    border-radius: 0px 0px 5px 5px;
}
.menu-item a {
    display: block;
    left: 0;
}

/* -- anchor positioning -- */
.a-what {
    display:block;
    position: relative;
    top: -65px;
    visibility: hidden;
}
.a-who {
    display:block;
    position: relative;
    top: -65px;
    visibility: hidden;
}
.a-why {
    display:block;
    position: relative;
    top: -65px;
    visibility: hidden;
}
.a-would {
    display:block;
    position: relative;
    top: -65px;
    visibility: hidden;
}

/* -- specific styling of paragraphs, images and texts -- */
.what h2 {
    font-weight: bold;
    font-family: AnticDidone;
    font-size: 16px;
    padding-bottom: 10px;
}
.what h1 {
    font-weight: bold;
    font-family: AnticDidone;
    font-size: 16px;
    text-indent: 25px;
    padding-bottom: 20px;
}
.gallery  {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
    width:90%;
}
.gallery img {
    object-fit: cover;
    max-width: 100%;
    opacity: 90%;
    margin-bottom: 20px;
    border-radius: 3px;
    z-index: 0;
    box-shadow: 0 0 5px rgb(100, 100, 100);
}
.who {
    border-top: solid 1.8px rgb(214, 214, 214);
    padding-top: 15px;
}
.who h2 {
    font-weight: bold;
    font-family: AnticDidone;
    font-size: 16px;
    padding-bottom: 10px;
}
.who h1 {
    font-weight: bold;
    font-family: AnticDidone;
    font-size: 16px;
    text-indent: 25px;
    padding-bottom: 20px;
}
.would {
    border-top: solid 1.8px rgb(214, 214, 214);
    padding-top: 15px;
    margin-top: 10px;
}
.would h2 {
    font-weight: bold;
    font-family: AnticDidone;
    font-size: 16px;
    padding-bottom: 10px;
}
.would h1 {
    font-weight: bold;
    font-family: AnticDidone;
    font-size: 16px;
    text-indent: 25px;
    padding-bottom: 20px;
}
.projects {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 95%;
    box-sizing: border-box;
    margin-bottom: 25px;
}
.project img {
    margin-bottom: 15px;
    width: 100%;
    opacity: 90%;
    border-radius: 3px;
}
.project {
    width: 310px;
    background-color: rgb(214, 214, 214);
    padding: 15px;
    border-radius: 3px;
    box-shadow: 0 0 5px rgb(100, 100, 100);
}
.project h3 {
    font-weight: bold;
    font-family: AnticDidone;
    font-size: 18px;
}
.project a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-family: AnticDidone;
    border-radius: 5px 5px 5px 5px;
    background-color: rgb(230, 230, 230);
    padding: 5px;
    font-size: 15px;
}
.chat h2 {
    font-weight: bold;
    font-family: AnticDidone;
    font-size: 16px;
    padding-bottom: 10px;
}
.chat h1 {
    font-weight: bold;
    font-family: AnticDidone;
    font-size: 16px;
    text-indent: 25px;
    padding-bottom: 20px;
}
.representation {
    border-top: solid 1.8px rgb(214, 214, 214);
    margin-top: 15px;
    padding-top: 15px;
    padding-bottom: 10px;
}

/* -- Progress Bars -- */
.strenghts {
    display: grid;
    place-items: center;
}
svg {
    width: 114px;
    height: 114px;
    margin: 1em;
}
tspan {
    fill: rgb(100, 100, 100);
    font-weight: bold;
    font-family: AnticDidone;
    font-size: 15px;
}
.bg {
    fill: none;
    stroke-width: 9px;
    stroke: rgb(214, 214, 214);
}
[class^="meter-"] {
    fill: none;
    stroke-width: 9px;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}
.meter-1 {
    stroke-dasharray: 360;
    stroke-dashoffset: 90;
    stroke: rgb(155, 155, 155);
    animation: progress-1 1s ease-out;
}
.meter-2 {
    stroke: rgb(155, 155, 155);
    stroke-dasharray: 360;
    stroke-dashoffset: 60;
    animation: progress-2 .75s ease-out;
}
.meter-3 {
    stroke: rgb(155, 155, 155);
    stroke-dasharray: 360;
    stroke-dashoffset: 120;
    animation: progress-3 .5s ease-out;
}
    @keyframes progress-1 {
        from {
            stroke-dashoffset: 360;
        }
        to {
            stroke-dashoffset: 90;
        }
    }

    @keyframes progress-2 {
        from {
            stroke-dashoffset: 360;
        }
        to {
            stroke-dashoffset: 60;
        }
    }

    @keyframes progress-3 {
        from {
            stroke-dashoffset: 360;
        }
        to {
            stroke-dashoffset: 120;
        }
    }

/* -- chat style -- */
.chat {
    border-top: solid 1.8px rgb(214, 214, 214);
    margin-top: 15px;
    padding-top: 15px;
}
#chat-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}
label{
    margin-left: 1.875em;
    display:block;
    position: relative;
    width: 100%;
}
input, textarea {
    box-sizing: border-box;
    width: 90%;
    margin: 2px;
    padding: 5px;
    border: solid 1.8px rgb(214, 214, 214);
    border-radius: 3px;
}
input[type="submit"] {
    box-sizing: border-box;
    width: 60%;
    margin-top: 15px;
    background-color: rgb(214, 214, 214);
    border-radius: 5px 5px 5px 5px;
}
#chat-messages {
    margin-top: 1.25em;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 1em;
    height: 200px;
    overflow-y: auto;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-bottom: 25px;
}

/* -- footer styling -- */
footer {
    display: flex;
    background-color: rgb(214, 214, 214);
    margin-left: -25px;
    margin-right: -25px;
    margin-bottom: -10px;
    padding-bottom: 10px;
    gap: 20px;
    align-items: baseline;
}
.back-to-top {
    box-sizing: border-box;
    border: none;
    border-radius: 5px 5px 5px 5px;
    background-color: rgb(230, 230, 230);
    margin-left: 30px;
    margin-top: 10px;
    width: 50px;
    line-height: 50px;
    text-decoration: none;
    color: black;
    text-align: center;
    font-weight:lighter;
    font-size: 20px;
    font-family: Walbaum;
    z-index: 1;
}
.footer-col {
    font-weight: bold;
    font-family: AnticDidone;
    font-size: 15px;
}
.footer-col button {
	color: black;
}
footer button {
    border: none;
    font-weight: bold;
    font-family: AnticDidone;
    font-size: 15px;
    padding: 0px;
    background-color: rgb(214, 214, 214);
    z-index: 0;
}

/* -- impressum styling -- */
.impressum {
    border-top: solid 1.8px rgb(214, 214, 214);
    padding-top: 15px;
    display: none;
    font-size: 13.5px;
}

/* -- media queries -- */
/* website was initially developed for 400px and below, so no need to make changes so early.. */
@media (min-width: 450px) {
    .strenghts{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 650px) {
    .strenghts{
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-col {
        left: 0;
    }
}
@media (min-width: 750px) {
    .projects {
        justify-content: center;
    }
}
@media (min-width: 1200px) {
    header {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    main {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    .projects {
        justify-content: center;
    }
}