* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'digital';
    /* Name you give it */
    src: url('fonts/DS-DIGIB.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {

    /* colours */
    --dialogue-box-grey: #98999a8e;
    --grey: #eeeeeecc;
    --dark-grey-transparent: #1c1c1c84;
    --dark-grey: #1C1C1C;
    --purple: #7e479b;
    --blue: #09accb;
    --light-pink: #FFF0F0;
    --pink: #ef3977;
    --light-orange: #e38338;
    --orange: #e46f2b;
    --navy-blue: #21193c;
    --blueprint: #2B418C;
    --off-blue: #5473C8;
    --cutting-board-green: #00635b;

    /* font */
    --heading-size: clamp(1rem, 18vw, 8rem);
    --sub-heading-size: clamp(1rem, 3vw, 1.6rem);
    --btn-font-size: clamp(1rem, 5vw, 2rem);

    --heading-font: "Brygada 1918", serif;
    --heading-font-italic: "Brygada 1918", italic;
    --body-font: "Noto Sans", sans-serif;
}

html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: var(--body-font);

}

a {
    text-decoration: none;
}

a:hover {
    color: var(--off-blue);
}

hr {
    color: white;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px 45px;
}

.center-vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.button {
    width: 100%;
    padding: 10px 5px;
    border-radius: 5px;
    color: white !important;
    font-family: var(--heading-font);
    font-size: var(--btn-font-size);
    font-weight: bold;
    letter-spacing: 1.1px;
    background-color: var(--off-blue);
    width: 100%;
    display: inline-block;
}

.button:hover {
    transform: scale(105%);
    transition: 0.3s ease;
}

.button:active {
    transform: scale(100%);
    transition: 0.1s ease;
}

/* stock font styling */

.font-light {
    font-weight: 100;
}

.font-reg {
    font-weight: 400;
}

.font-med {
    font-weight: 500;
}

.font-bold {
    font-weight: bold;
}

.font-italic {
    font-style: italic;
}

.font-family-heading {
    font-family: var(--heading-font);
}

.font-size-sub-heading {
    font-size: clamp(1.5rem, 6vw, 2rem);
}

.font-size-paragraph-size {
    font-size: clamp(1rem, 4vw, 1.25rem);
}

.border-white {
    border: 1px white solid;
}

.border-black {
    border: 1px black solid;
}

#oses-logo {
    font-family: var(--heading-font);
    font-style: italic;
    font-weight: medium;
    font-size: 1.8rem;
    margin: 0;
    text-decoration: none;
}

/* grid style */

#grid {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url(../img/grid.svg);
    background-position: center;
    background-size: contain;
}

/* nav styling */

header {
    width: 100%;
    position: fixed;
    z-index: 999;
    background-color: var(--grey);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav {
    margin: 0 auto;

    width: 100%;
    max-width: 800px;
    height: 50px;
    transition: height 0.5s ease;
    overflow: hidden;
    z-index: 1;

}

#hamburger-menu {
    width: 30px;
    height: 22px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

#hamburger-menu span {
    display: block;
    height: 4px;
    background: black;
    transition: 0.3s ease;
}

#nav-head {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;

    img {
        height: 35px;
    }
}

.header-ghost {
    width: 100%;
    height: 50px;
    background-color: var(--blueprint);
}

/* turn hamburger into an X */

#hamburger-menu.btn-open span:nth-child(1) {
    transform: rotate(45deg) translate(7.5px, 5px);
}

#hamburger-menu.btn-open span:nth-child(2) {
    transform: rotate(-45deg) translate(7.5px, -5px);
}

.menu-open {
    height: 100vh;
    /* take away the height of the padding */
    transition: height 0.5s ease;
}

/* hamburger list items */

#hamburger-links {
    padding: 0;
    list-style: none;
    text-align: center;
    margin-top: 5vh;

    li {
        margin: 2rem 0;
    }

    a {
        text-decoration: none;
        color: black;
        font-size: 2.5rem;
    }

    a:hover {
        color: var(--off-blue);
    }
}

/* hero section */

#hero {
    background-color: var(--blueprint);
    background-image: url(../img/grid.svg);
}

/* images */

#hero-img-container {
    position: relative;
    pointer-events: none;
    margin: 0 auto;
}

#raspi-logo {
    width: 15%;
    max-width: 110px;
    position: absolute;
    top: 100px;
    left: 10px;
    z-index: 1;
}

#hero-animation {
    margin-top: 200px;
    width: 100%;
    max-width: 800px;
}

/* clock styling */

#time span {
    display: inline-block;
}

#clock {
    display: inline-block;
    max-height: 60px;
    border: 3px white solid;
    border-radius: 5px;
    position: absolute;
    top: 85%;
    right: 5%;
}

#time {
    color: white;
    font-size: clamp(1rem, 8vw, 3rem);
    font-family: "digital", sans-serif;
    font-weight: 700;
    white-space: nowrap;
}

#clockHour {
    padding-left: 10px;
    margin-right: -5%;
}

#clockMin {
    margin-left: -5%;
    padding-right: 10px;
}

/* hero text styling */

#hero-text {
    margin: 0 25px 100px;

    h1 {
        margin: 0;
        color: white;
        font-family: var(--heading-font);
        font-size: var(--heading-size);
        font-style: italic;
        font-weight: 100;
    }

    h4 {
        margin: 0;
        color: white;
        font-weight: 400;
        font-size: var(--sub-heading-size);
    }

    span {
        font-weight: 600;
    }
}

/* diaglogue box styling */

.dialogue-box {
    background-color: var(--dialogue-box-grey);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 15px 0 0;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

.dialogue-content {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;

    img {
        height: 90px;
    }
}

.dialogue-box-header {
    margin-top: 10px;
    font-weight: 300;
    font-style: italic;
    font-family: var(--heading-font);
    font-size: clamp(1rem, 4.5vw, 1.6rem);
}

.dialogue-box-cat {
    font-weight: 400;
    font-size: 1.5rem;
    margin: 0;
}

/* explainer section */

#explainer-section {
    background-color: var(--light-pink);
    margin: 0;
    padding-top: 1px;
}

#contribute-btn {
    position: relative;
    text-align: left;

    p {
        margin: 0;
        padding-left: 10%;
    }

    img {
        width: 20%;
        max-width: 100px;
        position: absolute;
        right: -10px;
        top: -30%;
    }
}

/* parts animation */

@keyframes sway {
    0% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }

    100% {
        transform: rotate(-3deg);
    }
}


/* made from standard parts section */

#standard-parts-section {
    height: 95vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    color: white;
    overflow: hidden;

    div {
        margin: auto 0;
    }

    h1 {
        font-family: var(--heading-font);
        font-size: clamp(2rem, 12vw, 5rem);
        margin: 0;
    }
}

#standard-parts-container img {
    width: 40%;
    max-width: 200px;
    min-width: 150px;
    position: absolute;
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
}

.img-pos1 {
    top: 5%;
    left: 3%;
    animation: sway 4s ease-in-out infinite;
}

.img-pos2 {
    top: 10%;
    right: 5%;
    animation: sway 3.25s ease-in-out infinite;
}

.img-pos3 {
    top: 60%;
    left: 0;
    animation: sway 3.75s ease-in-out infinite;
}

.img-pos4 {
    top: 45%;
    right: 0;
    animation: sway 3.55s ease-in-out infinite;
}

.img-pos5 {
    top: 61%;
    right: 10%;
    animation: sway 3s ease-in-out infinite;
}


/* 3d print yourself section */

#print-yourself-section {
    background-color: var(--cutting-board-green);
    background-image: url(../img/cutting-board-grid.svg);
    height: 90vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
}

#oses-turntable {
    position: absolute;
    left: 50%;
    top: 13%;
    transform: translateX(-50%);
    height: 80%;
}

#print-yourself-titles {
    margin: 0 auto;
}

#print-yourself-titles h2 {
    color: white;
    margin: 25px 0 0;
}

#print-yourself-titles h1 {
    color: white;
    margin: 0;
    font-size: clamp(1rem, 25vw, 8rem);
    font-family: var(--heading-font);
    letter-spacing: 1rem;
}

#print-yourself-section .dialogue-box {
    background-color: var(--dark-grey-transparent);
    position: relative;
}

#print-yourself-section .background {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* customise section */

#customise-everything-section {
    min-height: 700px;
    background-color: var(--dark-grey);
}

#customise-everything-section .dialogue-box {
    background-color: #ffffff98;
    color: black;
    margin-top: -18%;
}

#customise-titles h2 {
    padding: 50px 0 0;
    color: white;
    margin: 0;
}

#customise-titles h1 {
    margin: 0;
    color: white;
    font-family: var(--heading-font);
    font-size: clamp(1rem, 12vw, 5.5rem);
    letter-spacing: 0.25rem;
}

.oses-colours {
    padding-top: 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.oses-img {
    margin: 50px 15px 0;
    position: relative;
}

/* instructions section */
#empty-object {
    height: 200px;
    width: 100%;
}

#instructions-section {
    background-color: var(--cutting-board-green);
    /* background-image: url(../img/grid.svg); */
}

#instructions-section-img {
    padding: 0 15px;
    width: 100%;
    margin: 0 auto;
}

#instructions-section .dialogue-box {
    border: 1px solid white;
}

#wiring-instructions-container {
    position: relative;
}

#instructions-icon {
    cursor: pointer;
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 10px;
    top: 30%;
    left: 52%;
    animation: pulseBlink 1.5s infinite ease-in-out;
}

#instructions-icon:hover {
    transform: scale(150%);
    animation: none;
}

#instructions-icon:active {
    transform: scale(250%);
    transition: transform 0.3s ease;
}

@keyframes pulseBlink {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#pop-up-bubble {
    position: absolute;
    width: 50%;
    left: 29%;
    bottom: 69%;
    transition: transform 0.3s ease;
    transform: scale(0);
    transform-origin: bottom center;
}

/* kit section */

.kit-explainer-titles {
    font-family: var(--heading-font);
    font-weight: 100;
    font-size: clamp(1rem, 6.5vw, 3.5rem);
}

.kit-explainer-titles span {
    font-weight: bold;
    font-style: italic;
}

#kit-section {
    background-color: var(--blueprint);
    color: white
}

.kit-btn {
    margin: 10px 0;
}

.kit-btn:hover {
    transform: scale(105%) !important;
    transition: 0.3s ease;
}

.kit-btn:active {
    transform: scale(100%) !important;
    transition: 0.1s ease;
}

.kit-btn h2 {
    letter-spacing: 0.15rem;
    font-size: clamp(1rem, 6vw, 2.5rem);
    margin: 0 15px;
}

.kit-btn h3 {
    font-family: var(--body-font);
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin: 10px 15px;
}

#kit-tier-2 {
    background-color: var(--orange);
}

#kit-tier-3 {
    background-color: rgb(205, 46, 46);
}

footer {
    height: 90vh;
    background-color: var(--dark-grey);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;

    p {
        color: white;
        position: absolute;
        bottom: 0;
    }

    li {
        list-style: none;
        color: white;
        font-size: 2.5rem;
        margin: 10% 0;
    }

    ul {
        margin: 0;
        padding: 0;
    }

    a {
        color: white;
    }
}