
:root {
  --background-color: rgb(227, 238, 227);
  --background-color-dark: rgb(211, 222, 211);
  --primary-text: rgb(64, 64, 64);
  --secondary-text: rgb(128, 128, 128);
  --primary-button: rgb(145, 224, 161);
}

* {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;

    /* Debugging */
    color: red; 
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    background-color: var(--background-color);
}

@media (width < 900px) {
    body {
        flex-direction: column;
    }
    section {
        margin-top: 4em;
    }
    .content {
        padding: 0 2em;
    }
}

@media (width >= 900px) {
    body {
        flex-direction: row;
    }
    section {
        margin-top: 10em;
    }
    .content {
        padding: 0 6em;
    }
}

h1 {
    font-size: 2rem;
    color: var(--primary-text);
}

p {
    color: var(--secondary-text);
}

section h2 {
    color: var(--primary-text);
    font-size: 1.5rem;
}

.social-icons a {
    margin: 0 0.75em;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
}

.social-icons svg {
    fill: var(--text-1);
    width:  2em;
    height: 2em;
}

/* Main Content */

.content {
    flex: 1;
    overflow-y: auto;
}

.content h1 span {
    color: rgb(62, 133, 204);
}

.project-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    margin-bottom: 1em;
}

.project {
    border-radius: 0.5em;
    padding: 1em 0.5em;
    box-shadow: #868686 -1px 1px 3px;
    background-color: rgb(239, 248, 239);
    margin-bottom: 1em;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.project-header h3 {
    margin: 0 0 0 0.5em;
    font-weight: 200;
    color: var(--primary-text);
}

.project-header svg {
    width: 1.5em;
    height: 1.5em;
}

.project-header svg * {
    color: var(--primary-text);
}

.project p {
    margin: 1.25em 0 0 0;
    padding: 0 1em;
    font-size: 0.9em;
}

.project-links {
    display: flex;
    gap: 1em;
    padding: 0 0.5em;
}

.project a {
    border-radius: 0.5em;
    background-color: var(--primary-button);
    padding: 0.5em 1em;
    text-decoration: none;
    color: var(--primary-text);
    box-shadow: #868686 -1px 1px 3px;
}
