@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --primary-color: rgb(32, 115, 180);
    --primary-color-dark: rgb(25, 91, 142);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    color: rgb(34, 33, 40);

    /* Background */
    background: rgba(218, 208, 190, 0.059);
    background-image: radial-gradient(rgba(216, 188, 131, 0.445) 1px, transparent 0);
    background-size: 20px 20px;
    background-position: -19px -19px;

    /* Font Family */
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;

    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    body {
        padding-left: max(calc((100vw - 1200px) / 2), 24px);
        padding-right: max(calc((100vw - 1200px) / 2), 24px);
    }
}

#document-end {
    background-color: var(--primary-color-dark);
    margin-top: 10px;
    color: white;
    padding-top: 20px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    padding-bottom: 20px;
    border-top-left-radius: 1em;
    border-top-right-radius: 1em;
}

#front-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;

    /* display: none; */
}

.text-small {
    font-size: 1.6rem;
    font-weight: 200;
}

.text-large {
    font-size: 2.8rem;
    font-weight: 900;
}

.highlight {
    color: var(--primary-color-dark);
}

a,
a:visited,
a:hover,
a:active {
    color: rgb(34, 33, 40);
    transition: 0.1s;
    text-decoration: none;
}

#navbar {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#navbar-sitename {
    margin-left: 5px;
    font-size: 4rem;
    font-weight: 800;
    margin-left: 10px;
}

.primary {
    display: inline-block;
    color: var(--primary-color);
}

.center {
    width: 100%;
    text-align: center;
}

#projects-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    flex: 1;
    margin-top: 35px;
    padding-bottom: 50px;
}

.project-item {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: white;
    border-top: 2px dashed rgb(195, 195, 195);
    border-bottom: 2px dashed rgb(195, 195, 195);
}

.color-line {
    background-color: black;
    width: 40px;
    height: 100%;
    clip-path: polygon(0 0,
            100% 0,
            95% 10%,
            100% 20%,
            95% 30%,
            100% 40%,
            95% 50%,
            100% 60%,
            95% 70%,
            100% 80%,
            95% 90%,
            100% 100%,
            0 100%);
}

.project-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 0 30px;
}

.project-item-top-content {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
    gap: 15px;
}

@media (max-width: 768px) {
    .project-item-top-content {
        flex-direction: column-reverse;
    }
}

.project-item-bottom-content {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 10px;
}

.project-info-part {
    flex: 1;
}

.project-images-part {
    display: grid;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0.5;
}

.image-border {
    width: 100%;
    border-radius: 1.2em;
    grid-area: 1 / 1;
    position: relative;
    border: 4px solid white;
}

.project-image {
    width: 100%;
    border-radius: 1.2em;
    cursor: pointer;
    border: 1px solid rgb(209, 209, 209);
}

.action-button {
    all: unset;
    color: rgb(28, 28, 37);
    background-color: rgba(0, 0, 0, 0.078);
    border: none;
    border-radius: 0.7em;
    cursor: pointer;
    padding: 12px 20px 10px 20px;
    font-size: 17px;
    font-weight: bold;
}

.project-title {
    font-size: 30px;
    font-weight: 800;
}

.project-subtitle {
    font-size: 20px;
    font-weight: bold;
}

.project-description {
    font-size: 17px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.project-story {
    border: 1px solid rgb(214, 214, 214);
    padding: 10px 15px 10px 15px;
    border-radius: 0.8em;
    font-size: 17px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: rgba(0, 0, 0, 0.75);
    font-style: italic;
    border-left: 7px solid rgb(214, 214, 214);
}

#search-box {
    margin-top: 15px;
    background-color: white;
    border: none;
    border-top: 1px solid rgb(173, 173, 173);
    border-bottom: 1px solid rgb(173, 173, 173);
    padding: 15px 25px 15px 25px;
    font-size: 20px;
    outline: none;
}

#search-box::placeholder {
    color: rgb(188, 188, 188);
}

@media (max-width: 768px) {
    #search-box {
        margin-left: 20px;
        margin-right: 20px;
        border: 1px solid rgb(173, 173, 173);
        font-size: 17px;
        border-radius: 0.6em;
    }
}