:root {
    --clr-primary: hsl(248, 66%, 10%);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: var(--clr-primary);
    display: flex;
    justify-content: center;
    padding: 6vw;
    color: white;
    font-family: 'Bruno Ace', sans-serif;
}

/* Styling the main */

main {
    border: 2px solid white;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-inline: 2rem;
    font-weight: 100;
    letter-spacing: 2px;
}

/* main p {
    This P element will later be changed to a div with a specific class
    font-size: 2rem;
    background-color: var(--clr-primary);
    width: max-content;
    padding-inline: .5rem;
} */

.main-title, .sub-title {
    background-color: var(--clr-primary);
    width: 50%;
    padding-inline: .5rem;
}

.main-title {
    translate: 0 -50%;
}

.sub-title {
    translate: 0 50%;
    margin-left: auto;
}

/* Styling the Projects */

.projects {
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project {
    border: 2px solid white;
    padding: 3rem;
    /* This element's width will be determined by its content */
}

.project a {
    color: white;
    font-weight: 100;
}

.project-name {
    font-size: 1rem;
    text-align: center;
}

@media (min-width: 500px) {
    .main-title, .sub-title {
        padding-inline: 1rem;
        width: 40%;
    }

    .project-name {
        font-size: 1.5rem;
    }
}

@media (min-width: 800px) {
    .main-title, .sub-title {
        padding-inline: 1rem;
        width: 30%;
    }

    .project-name {
        font-size: 2.5rem;
    }
}