@font-face {
    font-family: inter-light;
    src: url("./fonts/Inter/Inter-Light.ttf");
}

@font-face {
    font-family: inter-regular;
    src: url("./fonts/Inter/Inter-Regular.ttf");
}

/** COMMON */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

body {
    font-family: inter-light, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--colors-light-1);
    color: var(--colors-dark-1);
    position: relative;
}

input, textarea {
    font-family: inter-light, sans-serif;
}

h1 h2 {
    font-family: inter-regular, sans-serif;
}

h1 {
    color: var(--colors-light-1);
}

h2 {
    border-bottom: 1px solid var(--colors-dark-1);
    padding-bottom: 5px;
}

h3 {
    margin-top: 10px;
}

.section {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    align-items: center;
}

/** allow space for the static header when linking with a href=#xx */
.section::before {
    content: '';
    display: block;
    padding-top: 55px;
    margin-top: -40px;
    visibility: hidden;
  }

.section .section-content {
    max-width: 1050px;
    padding: 20px 50px 50px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section:nth-child(odd) {
    background-color: var(--colors-light-1);
}

.section:nth-child(even) {
    background-color: var(--colors-light-2);
}

.button-primary {
    cursor: pointer;
    padding: 10px 20px;
    background-color: var(--colors-dark-2);
    border-radius: 5px;
    color: var(--colors-light-1);
    border: none;
}

/** MODAL */

#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#modal .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.2;
}

#modal .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal .modal-elements {
    background-color: var(--colors-light-2);
    min-width: 250px;
    min-height: 150px;
    padding: 20px;
    border: 3px solid var(--colors-dark-2);
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#modal .ok-button {
    width: 100%;
    padding: 20px ;
    display: flex;
    justify-content: flex-end;
}


/** NAVIGATION */

.navigation-placeholder {
    height: 40px
}

#navigation .navigation-items {
    display: flex;
    border-bottom: 1px solid var(--colors-dark-1);
    position: fixed;
    z-index: 1;
    background-color: var(--colors-light-1);
    width: 100%;
}

#navigation .navigation-items>* {
    padding: 10px 20px;
}

#navigation .navigation-items>a {
    text-decoration: none;
    color: inherit;
}

#navigation .navigation-items>a:hover {
    text-decoration: underline;
}

#navigation a.contact {
    background-color: var(--colors-dark-2);
    color: var(--colors-light-1);
    height: 25px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    margin-right: 20px;
}

#navigation .contact-spacer {
    display: none;
    padding: 0;
}

#navigation .email {
    flex: 1;
    text-align: right;
}

/** HOME */

#home.section {
    align-items: initial;
    color: var(--colors-light-1);
    min-height: 500px;
    background-image: url("./images/landmark2.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#home h1 {
    margin-top: 180px;
    margin-right: 200px;
    flex: 1;
    text-align: right;
}

#home p {
    margin-bottom: 25px;
}

/** ABOUT */

#about p {
    line-height: 150%;
    max-width: 700px;
    margin-bottom: 0;
}

/** SERVICES */

.services {
    display: flex;
    max-width: 1050px;
    flex-wrap: wrap;
    justify-content: center;
}

.service {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    margin: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.service:hover {
    animation: fadein-shadow 0.2s;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.service-image {
    position: relative;
}

.service img {
    display: block;
    width: 400px;
    max-width: 100%;
}

.service .text-container {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: var(--colors-light-1);
    text-align: left;
}

.service .text-container p {
    padding: 20px 100px 20px 20px;
}

.service:hover .text-container {
    animation: fadein-text 0.2s;
    opacity: 0.9;
}

@keyframes fadein-text {
    from { opacity: 0; }
    to   { opacity: 0.9; }
}

@keyframes fadein-shadow {
    from { box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;; }
    to   { box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;; }
}

/** CONTACT */

#contact  {
    margin-bottom: 100px;
}

#contact .contact-form {
    display: flex;
    flex-direction: column;
}

#contact .contact-form>* {
    flex: 0.5;
}

#contact form>div {
    padding-top: 10px;
    position: relative;
    margin-top: 20px;
}

#contact form>div>* {
    display: block;
}

#contact label {
    padding: 18px 10px;
    text-align: left;
    position: absolute;
    left: 0;
    top: 0;
    cursor: text;
}

#contact input, #contact textarea {
    padding: 8px
}

#contact input[type="text"], #contact input[type="email"], #contact textarea {
    width: 100%;
    box-sizing: border-box;
}

#contact textarea {
    height: 200px;
}

#contact .contact-form {
    flex-direction: row;
}

#contact .description {
    text-align: left;
    padding-top: 12px;
    padding-right: 20px;
}

/*contact-form (.decription, form)*/

#contact input::placeholder, 
#contact textarea::placeholder {
    opacity: 0;
}

#contact form input:focus:placeholder-shown + label,
#contact form textarea:focus:placeholder-shown + label {
    top: -30px;
    animation: move-label-up 0.3s;
}

#contact form input:not(:focus):placeholder-shown + label,
#contact form textarea:not(:focus):placeholder-shown + label {
    top: 0px;
    animation: move-label-down 0.3s;
}

@keyframes move-label-up {
    from { top: 0 }
    to   { top: -30px; }
}

@keyframes move-label-down {
    from { top: -30px; }
    to   { top: 0 }
}

#contact form input:not(:placeholder-shown) + label,
#contact form textarea:not(:placeholder-shown) + label {
    top: -30px;
}

#contact form input[type="submit"]:not(:disabled) {
    display: block;
    width: 90px;
    height: 40px;
    color: white;
    font-weight: bold;
}

#contact form input[type="submit"]:hover:not(:disabled) {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

#contact .submit-area {
    display: flex;
}

#sending-message {
    flex: 1;
    align-items: center;
    justify-content: end;
}

#sending-message.shown {
    display: flex;
}

#sending-message.hidden {
    display: none;
}

#sending-message img {
    width: 60px;
    height: 60px;
}

/** MEDIA BREAKPOINT SMALL */

@media (max-width: 1037px) { 

    .section .section-content {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;

    }

    #navigation .email {
        display: none;
    }

    #navigation .contact-spacer {
        flex: 1;
        display: block;
    }

    #contact div.contact-form {
        align-items: center;
        flex-direction: column;
    }

    #contact .form-container {
        width: 100%;
    }

    #contact form, #contact .form-container {
        display: flex;
        flex-direction: column;
    }
}

/** MEDIA BREAKPOINT TINY */

@media (max-width: 300px) { 

    #navigation .navigation-items>a {
        padding: 10px
    }
}