@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --white-color: #FFFFFF;
    --golden-color: #d8b33c;
    --company-light-red: #B7463F;
    --black-color: #000000;
    --company-dark-blue: #05143d;
    --h1-size: 4rem;
    --h2-size: 2.5rem;
    --standard-line-height: 1.5rem;
    --website-background-color: rgba(0, 0, 0, 0.034);
    --hover-color: #f0f0f0;
    --reverse-hover-color: #3a456d; /*#2459ebaf; */

}

html {
    font-family: "Red Hat Display", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-size: 30px;
}

body {
    max-width: 1920px;
    margin: auto;
    background-color: var(--website-background-color);
    color: var(--company-dark-blue);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
    background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Michroma", sans-serif;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h1 {
    font-weight: 700;
    color: var(--white-color);
    text-transform: uppercase;
    font-size: var(--h1-size);
    margin: 0;
}

h2 {
    /* color: var(--black-color); */
    font-size: var(--h2-size);
}

p {
    text-align: justify;
    line-height: var(--standard-line-height);
    margin-bottom: 0;
}

header {
    background-color: var(--white-color);
    color: var(--company-dark-blue);
    text-align: right;
    padding-bottom: 0.25rem;
}

footer {
    background-color: var(--company-dark-blue);
    color: var(--white-color);
    text-align: center;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

footer a, footer a:visited {
    color: var(--white-color);
    text-decoration: none;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
}

nav ul li {

    position: relative;
    margin-right: 0.5rem;
}

nav ul li a, nav ul li a:visited {
    color: var(--company-dark-blue);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    display: block;
}

.work-item-nav {
    padding: 0;
    margin: 0;
    color: var(--company-dark-blue);
    background-color: var(--white-color);
    text-decoration: none;
    display: block;
}

nav ul li .dropdown {
    display: none;
    position: absolute;
    background-color: var(--white-color);
    list-style-type: none;
    right: 0;
    color: var(--company-dark-blue);
    z-index: 10;
    min-width: 10rem;
}

nav ul li:hover > .dropdown, nav ul li:active > .dropdown {
    display: block;
}

nav ul li:hover > a, nav ul li:active > a {
    background-color: var(--hover-color);
}

.invert-footer {
    background-color: var(--white-color);
    color: var(--company-dark-blue);
}

.invert-footer a, .invert-footer a:visited {
    color: var(--company-dark-blue);
    text-decoration: none;
}

.invert-header {
    background-color: var(--company-dark-blue);
}

.invert-header nav ul li a, .invert-header nav ul li a:visited {
    color: var(--white-color);
    background-color: var(--company-dark-blue);
}

.invert-header nav ul li a:hover, .invert-header nav ul li a:active, .invert-header nav ul li:hover > a, .invert-header nav ul li:active > a {
    background-color: var(--reverse-hover-color);
}

.invert-header .work-item-nav {
    color: var(--white-color);
    background-color: var(--company-dark-blue);
}

label {
    margin-top: 0.5rem;
}

.hero {
    position: relative;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    /* z-index: 10; */
}

.hero img, .hero video {
    display: block;
    margin: auto;
    width: 100%;
}

#about-me-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
    "welcome my-story";
    /* grid-template-rows: auto 1fr auto; */
    background-image: url("../img/about-me.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 20rem;
}

#about-me-section > div{
    grid-area: my-story;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 5rem;
    text-shadow: 0px 0px 5px rgba(0,0,0,0.5);
}

#about-me-section > h2 {
    display: flex;
    justify-content: right;
    padding-right: 4.8rem;
    padding-top: 1rem;
    grid-area: welcome;
}

#privacy-policy {
    text-align: justify;
    font-size: 0.65rem;
    line-height: normal;
    margin-top: 0;
}

#privacy-policy a, #privacy-policy a:visited {
    color: var(--company-dark-blue);
}

#portfolio-section {
    position: relative;
    background-color: var(--black-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        ". header"
        "portfolio-text cega-logo"
        "stroke-logo see-more";
    background-image: url("../img/blue-backgroud.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 25rem;
}

#portfolio-section > h2 {
    color: var(--white-color);
    margin: 0;
    grid-area: header;
    display: flex;
    justify-content: start;
    align-items: center;

}

#portfolio-section a, #portfolio-section a:visited {
    position: absolute;
    margin: 0;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--company-dark-blue);
    padding-left: 3.2rem;
    padding-right: 3.2rem;
    padding-top: 0.20rem;
    padding-bottom: 0.20rem;
    background-color: var(--white-color);
}

#portfolio-section a {
    grid-area: see-more;
    bottom: 3rem;
    left: 0.4rem;
}

#portfolio-section > p {
    display: flex;
    justify-content: center;
    margin: auto 2rem;
    color: var(--white-color);
    grid-area: portfolio-text;
}

#main-page-stroke-logo {
    grid-area: stroke-logo;
    margin: auto;
}

#main-page-stroke-logo img {
    max-width: 100%;
}

#main-page-cega-logo {
    grid-area: cega-logo;
    margin: auto;
    margin-left: 0;
}

#main-page-cega-logo img {
    max-width: 100%;
}

#portfolio-main {
    margin-top: 0.05rem;
    margin-bottom: 0.05rem;
}

#contact-me {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
        "contact-me-header contact-me-header"
        "contact-me-form company-contact-info"
        "api-response-message api-response-message";
    background-image: url("../img/gray-backgound.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#contact-me h2 {
    /* text-transform: uppercase; */
    text-align: center;
    margin-top: 2.5rem;
    grid-area: contact-me-header;
}

#contact-form {
    display: flex;
    flex-direction: column;
    justify-content: right;
    align-items: stretch;
    grid-area: contact-me-form;
}

#contact-details {
    text-align: center;
    margin-top: 2.5rem;
    grid-area: company-contact-info;
}

#contact-form button {
    height: 2rem;
    min-width: 4rem;
    border: solid 0.05rem var(--company-dark-blue);
}

#contact-form #submit-button {
    background-color: var(--company-dark-blue);
    color: var(--white-color);
    border: solid 0.07rem var(--black-color);
}

form {
    padding-right: 0;
    padding-left: 50%;
    /* width: 50%; */
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: auto;
}

form > div {
    margin-top: 0.5rem;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

#contact-me > div > img{
    max-width: 75%;
    margin-bottom: 2rem;
}

input, textarea {
    font-size: 1rem;
}

input:focus, textarea:focus {
    border: solid 0.07rem var(--company-dark-blue);
}

button {
    font-size: 0.75rem;
    padding: 0.25rem 5%;
    margin: 0.25rem;
}

#my-email-address, #my-phone-number {
    display: flex;
    justify-content: center;
    align-items: center;
}

#my-phone-number {
    font-size: 1.5rem;
}

#my-phone-number div {
    padding-left: 0.5rem;
}

#my-email-address div {
    margin-left: 1rem;
}

#api-response-message {
    grid-area: api-response-message;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.5rem;
    transition: opacity 1s ease-in-out;
}

.highlight {
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: row-reverse;
    justify-content: center;
    background-image: url("../img/gray-backgound.jpg");
    background-size: cover;
    min-height: 20rem;
    background-position: center;
    background-repeat: no-repeat;
}

.highlight > img {
    max-width: 50%;
    background-color: transparent;
    margin: auto;
    display: block;
}

.company-description {
    max-width: 50%;
    background-color: transparent;
    margin: auto 2rem;
    display: block;
}

.highlight > div {
    min-height: 16rem;
    max-width: 50%;
    flex-grow: 1;
    /* background-color: var(--company-dark-blue); */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight h2 {
    color: var(--company-dark-blue);
    text-shadow: 0.1rem -0.1rem 0.85rem var(--company-dark-blue);
}

.highlight a, .highlight a:visited {
    /* position: absolute; */
    margin: 1rem auto;
    text-decoration: none;
    text-transform: uppercase;
    padding-left: 3.2rem;
    padding-right: 3.2rem;
    padding-top: 0.20rem;
    padding-bottom: 0.20rem;
    color: var(--white-color);
    background-color: var(--company-dark-blue);
}

.invert {
    flex-direction: row;
    justify-content: center;
    background-image: url("../img/blue-backgroud.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white-color);
}

.invert h2 {
    color: var(--white-color);
    text-shadow: 0.1rem -0.1rem 0.85rem var(--white-color);
}

.invert a, .invert a:visited {
    color: var(--company-dark-blue);
    background-color: var(--white-color);
}

#work-item-header {
    text-align: center;
    padding: 0.5rem;
    text-shadow: 0.1rem -0.1rem 0.85rem var(--white-color);
}

.blue-section {
    background-image: url("../img/blue-backgroud.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white-color);
}

.gray-section {
    background-image: url("../img/gray-backgound.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--company-dark-blue);
}

.work-item-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#website-image {
    display: block;
    margin: auto;
    max-width: 100%;
}

.work-item-text {
    padding: 0.3rem 10%;
    text-align: justify;
    hyphens: auto;
}

.work-item-text h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.work-item-text p,
.work-item-text ul {
    margin-top: 0;
}

.confirm-email {
    display: none;
}

.ninja {
    opacity: 0;
    pointer-events: none;
}

.better-ninja {
    display: none;
}

@media screen and (max-width: 399px) {
    html {
        font-size: 10px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    #portfolio-section a, #portfolio-section a:visited, .highlight a, .highlight a:visited {
        font-size: 1.5rem;
    }

    form {
        padding: 1rem;
        width: 100%;
    }

    #about-me-section > div {
        padding-right: 2.5rem;
    }

    #my-email-address {
        margin-bottom: 0.5rem;
    }

    #my-email-address > img {
        max-width: 20%;
    }

    #my-phone-number > img {
        max-width: 20%;
    }
    
}

@media screen and (min-width: 400px) and (max-width: 600px) {
    html {
        font-size: 12px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    #portfolio-section a, #portfolio-section a:visited, .highlight a, .highlight a:visited {
        font-size: 1.5rem;
    }

    form {
        padding: 1rem;
        width: 100%;
    }

    #about-me-section > div {
        padding-right: 2.5rem;
    }

    #my-email-address {
        margin-bottom: 0.5rem;
    }
}

@media screen and (min-width: 601px) and (max-width: 767px) {
    html {
        font-size: 22px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    #about-me-section > div {
        padding-right: 2.5rem;
    }

    #portfolio-section a, #portfolio-section a:visited, .highlight a, .highlight a:visited {
        font-size: 1.5rem;
    }

    #portfolio-section h3 {
        font-size: 1rem;
        padding-left: 0.6rem;
        margin-top: 0.5rem;
    }

    form {
        padding: 1rem;
        width: 100%;
    }

    #my-email-address {
        margin-bottom: 0.5rem;
    }

    #my-email-address > div {
        font-size: 0.7rem;
    }

    #my-phone-number > div {
        font-size: 1.15rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    html {
        font-size: 24px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    #portfolio-section a, #portfolio-section a:visited, .highlight a, .highlight a:visited {
        font-size: 1.5rem;
    }

    form {
        padding: 1rem;
        width: 100%;
    }

    #about-me-section > div {
        padding-right: 2.5rem;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    html {
        font-size: 24px;
    }

    form {
        padding: 1rem;
        margin-left: 25%;
    }
}

@media print {
    *,
    *::before,
    *::after {
        background: var(--white-color) !important;
        color: var(--black-color) !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    @page {
        margin: 1cm;
        size: A4 portrait;
    }

    html {
        font-size: 16px;
        margin: 0;
    }

    a {
        text-decoration: none;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }
    
    header, footer {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    p {
        margin: 0;
        padding: 0;
        line-height: normal;
    }

    #education-span {
        font-style: italic;
    }

    /* #work-item-header {
    text-align: center;
    padding: 0.1rem;
}

    #website-image {
        width: 100%;
    }

    .work-item-text {
        padding: 0.1rem 10%;
    }

    .work-item-text h3 {
        margin-top: 0.1rem;
        margin-bottom: 0.1rem;
    }

    .work-item-text p,
    .work-item-text ul {
        margin-top: 0;
    } */
}

/* 2888812731 */