/* figtree-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/Syne-Regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 824px) {
    body {
        font-size: 18px;
    }
    nav > .buttons {
        gap: 5px;
    }
    .button {
        padding: 4px;
        font-size: 20px;
        align-self: end;
    }
    .logo-a {
        align-self: center;
    }
    nav.normal > .buttons {
        flex-direction: column;
        margin-left: auto;/*
        margin-right: 20px;*/
        margin: 5px 10px 5px auto ;
        gap: 10px;
    }
    nav.small > .buttons {
        flex-direction: row;
        gap: 20px;
    }
    .logo.normal-size {
        width: 160px;
/*         height: 101.1px; */
    }
    .main-content {
        margin: 0px 15px 0px 15px;
    }
    .project-grid {
        grid-template-columns: 30px 125px auto;
        font-size: 15px;
    }
    footer {
        margin-left: 15px;
        margin-right: 15px;
    }
    .services {
        margin-left: none;
        align-self: start;
    }
    .copyright {
        flex-basis: 100%
    }
    .thanks {
        margin-left: 0;
        flex-basis: 100%
    }

}


/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 825px) {
    body {
        font-size: 18px;
    }
    nav.normal > .buttons {
        gap: 35px;
    }
    nav.small > .buttons {
        gap: 15px;
    }
    nav.normal > .logo-a {
        margin-right: 25px;
    }
    .button {
        padding: 10px;
    }
    nav > .buttons {
        flex-direction: row;
    }
    .button {
        font-size: 25px;
        align-self: center;
    }
    .logo.normal-size {
        width: 180px;
        height: 101.1px;
    }
    .main-content {
        margin: 0px 63px 0px 63px;
    }
    .project-grid {
        grid-template-columns: 30px 200px auto;
    }
    footer {
        margin-left: 63px;
        margin-right: 63px;
/*     } */
    }
    .services {
        margin-left: auto;
        align-self: center;
                justify-content: right;
    }
    .thanks {
        margin-left: auto;
    }
}

:root {
/*    --bold: #380022;
    --bold-select: #FFFFFF;
    --blush: #9FA4C4;
    --background-select: #aa0168;
    --background: #FFFFFF;
    --background-trans: rgba(255, 255, 255, 1);
    --nav-background: rgba(170, 1, 104, 0.3);
    */
    --bold: #0D1821;
    --bold-trans: rgba(37, 150, 190, 0.3);
    --bold-select: #FFFFFF;
    --blush: #9FA4C4;
    --background-select: #aa0168;
    --background: #FFFFFF;
    --background-trans: rgba(255, 255, 255, 1);
    --shadow: #344966;
    --nav-background: rgba(180, 205, 237, 0.4);
    --transition-duration: 0.2s;
    --nav-height: 120px;
    --grid-colour: rgba(255, 255, 255, 0.6);
    --grid-spacing: 20px;
}

html {
    height: 100%;
    padding: 0px;
    margin: 0px;

    background-image:
    linear-gradient(0deg, var(--grid-colour) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-colour) 1px, transparent 1px),
    linear-gradient(315deg, #fcb8e2 0.000%, #ffc8ed 20.000%, #fbe8f9 40.000%, #e8f9ff 60.000%, #d0ecff 80.000%, #b8cdfa 100.000%);
/*     background-image: linear-gradient(to right, rgba(148, 163, 184, 0.35) 1px, transparent 1px), linear-gradient(to bottom, rgba(148, 163, 184, 0.35) 1px, transparent 1px); */
    background-size: var(--grid-spacing) var(--grid-spacing), var(--grid-spacing) var(--grid-spacing), auto;
    background-repeat: repeat, repeat, no-repeat;
    background-attachment: fixed;
/*     transform: skew(-1deg); */

}

body {
    font-family: "syne";
/*     min-height: 98%; */
/*     height: 100%; */
/*     padding: 0px; */
    margin: 0px;
}

nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background: var(--nav-background);
    backdrop-filter: blur(3px);
    border-radius: 5px;
    transition: padding, margin, border, gap, border-radius;
    transition-duration: var(--transition-duration);
}

nav.normal {
    padding: 5px;
    margin: 15px;
    border: 1px solid var(--bold);
    gap: 10px;
}

nav.small {
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0px;
    padding: 10px;
    border: none;
    border-radius: 0px;
    border-bottom: 1px solid var(--bold);
    gap: 5px;
    box-shadow: 0px 0px var(--bold);
}


nav.small > .menuitem {
    box-shadow: none;
    font-size: 20px;
}

.buttons {
    display: flex;
}


.menuitem.button {
    background: var(--background-trans);
    color: var(--bold);
    box-shadow: 5px 5px var(--shadow);
    border: 1px solid var(--bold);
    border-radius: 5px;
}

.menuitem.button.searchbox {
    font-size: 12px;
}

.button {
    transition-duration: var(--transition-duration);
    transition-property: box-shadow, font-size, transform;
}

.button:hover {
    transform: scale(1.1);

}

.menuitem.button:active {
/*     border: 3px solid black; */
    transform: translate(2px, 2px) scale(1.1);
    box-shadow: 3px 3px;
}

.menuitem.logo:active {
    transform: scale(0.9);
    box-shadow: none;
}

@keyframes menuHoverAnimation {
    from {border-radius: 15px;}
    to {border-radius: 0px}
}

footer {
    color: var(--bold);
/*     border-top: 1px solid lightgrey; */
/*     padding-top: 23px; */
    margin-top: 20px;
    padding-bottom: 25px;
/*     display: grid; */
/*     flex-wrap: wrap; */

}
.copyright {
    margin-right: 30px;
/*     padding-right: 30px; */
    font-weight: bold;
/*     flex-basis: 50% 50%; */
/*     border-right: 1px solid black; */
}
.copyright:hover {
    cursor: pointer;
}
.services {
    display: flex;
    align-items: center;
/*     wrap:hard; */
/*     white-space: wrap; */
    flex-wrap: wrap;
/*     gap: 25px; */
}
.thanks {
    margin-right: 15px
}
.external-logo {
    height: 35px;
    margin: 10px;
}

.project-grid {
    display: grid;
    padding: 3px;
/*     margin-top: 16px; */
}


.project-grid.item:hover {
    background: var(--bold);
    color: var(--background);
/*     height: 100px; */
    font-style: italic;
}

.project-grid.title {
    text-decoration-line: underline;
    padding-top: 16px;
}


a.unstyled {
    color: inherit; /* blue colors for links too */
    text-decoration: inherit; /* no underline */
}

.main-content {
    display: flex;
    flex-direction: column;
    /*     margin-top: 160px; */
    /*     border: 1px solid black; */

}

#main-logo {
    align-self: center;
    background-size: contain;
    padding: 0px;
    margin: 0px;
    display: block;
    filter: hue-rotate(0deg);
    transition: width, height;
    transition-duration: var(--transition-duration);
}

.logo.normal-size {
    animation: cycleImages 0.3s infinite;
    margin-right: 25px;
}

.logo.small-size {
    animation: none;
    width: 50px;
    height: 50px;
}

@keyframes cycleImages {
    0% {
        content:url("/images/logo1-r.png");
    }
    33% {
        content:url("/images/logo2-r.png");
    }
    66% {
        content:url("/images/logo3-r.png");
    }
}

.backarrow {
/*     top: px; */
    color: var(--bold);
    text-decoration-line: none;
    font-size: 20px;
/*     border: 1px solid black; */
    margin-bottom: 10px;
}

.backarrow:hover {
    background: var(--bold);
    color: var(--background);
    /*     height: 100px; */
    font-style: italic;
}

.site-head {
    position: sticky;
/*     padding-top: 25px; */
    top: 0px;
    left: 0px;
/*     background: var(--blush); */
/*     border-bottom: 2px solid black; */
/*     box-shadow: 0px 10px 30px; */
    z-index: 1;
    height: var(--nav-height);
    width: 100%;
}

.main-content *:not(.backarrow) {
    max-width: 100%;
    overflow-wrap: break-word;
/*     margin-bottom: 0px; */
    margin-bottom: 0;
}

iframe {
    padding: 20px 0px 20px 0px;
}

.works {
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
}

.portfolio-card {
    flex: auto;
    flex-basis: 350px;
    max-width: 700px;
    transition-duration: var(--transition-duration);
    transition-property: width height;
    transform: scale(1);
}

.portfolio-card > .holder {
    position: absolute;
    white-space: wrap;
    margin: 5px;
    padding: 5px;
    color: white;
    border-radius: 3px;
    backdrop-filter: blur(0px);
}

.portfolio-card * {
    transition-duration: var(--transition-duration);
    transition-property: opacity backdrop-filter;
}

.portfolio-card > .holder > *:not(.title):not(img) {
/*     display:none; */
    opacity: 0;
}

.portfolio-card.selected > .holder > *:not(.title):not(img) {
    opacity: 1;
/*     display: block; */
}

.portfolio-card a {
    display: none;
}

.portfolio-card.selected a {
    display: block;
}

.portfolio-card.selected > .holder {
    background: var(--nav-background);
    backdrop-filter: blur(3px);
}

.portfolio-card.selected {
    transform: scale(1.05);
}

.portfolio-card.selected:hover {
    transform: scale(1.05);
}

.portfolio-card:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.portfolio-card img {
    object-fit: contain;
}

.roles {
margin-left: 15px;
}
