* {
    box-sizing: border-box; /* this means that when you define the width and height of a box, it will INCLUDE padding. */
    color: #e8e8e8;
}

body {
    margin: 0;
    font-family: Garamond, serif;
    background-color: #040529;
    background-image: url('pix_n_clipz/beautiful3.png');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    font-size: 2.25rem;
    font-weight: bold;
    margin: 0 0 10px 0;
}

p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.divider {
    background-color: #3f0d4d;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 40px;
}

a,
a:visited,
a:hover,
a:active {
    text-decoration: none; 
}



/* v project cards v */
.projectgrid {
    display: grid;
    grid-template-columns: 1fr; /* the unit "fr" is basically just a way to avoid doing math myself? it doesnt decide my design, but just calculates how the design I want would be made for me, so to speak. auto padding/gapping */
    gap: 40px;
    padding: 0 20px;
    max-width: 1200px;          /* without a defined max-width of hte grid, the grid would look insanely large and wonky on larger screens */
    margin: 0 auto 60px auto;
    width: 100%;
}

.project__card {
    background-color: #3f0d4d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;     /* stack image on top of text */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;               /* ensures cards in the same row equal out */
}

.project__card:hover {
    transform: scale(1.03);
    box-shadow:
        0 0px 50px rgba(232, 232, 232, 0.8);
}

.project__card--picture {
    width: 100%;
    height: 450px;
    background-color: #270631;
    overflow: hidden;
}

.project__card--picture img,
.project__card--picture video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* this stops the cropping/stretching, and scales the posters to fit inside the 450px box. not sure if i like how it looks tho */
}

.project__card--text {
    padding: 25px;
    background-color: #3f0d4d;
    flex-grow: 1;                  /* tells text containers to fill the remaining unused card space evenly */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project__card--title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e8e8e8;
    margin: 0 0 5px 0;
}

.project__card--text p {
    font-size: 1rem;
    line-height: 1.5;
    color: #e8e8e8;
    margin: 0;
}



/* v navigation buttons v */
.navigation_buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px 20px;
}

.navigation_buttons div {
    background-color: #3f0d4d;
    border-radius: 12px;
    font-size: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.navigation_buttons div a {
    display: block;
    padding: 12px;
    color: #e8e8e8;
    text-decoration: none;
}

.navigation_buttons div:hover {
    background-color: #9835b4;
    transform: scale(1.03);
}



/* v logo v */
.logo img {
    display: block;
    margin: 20px auto;
    max-width: 150px;
    height: auto;
}



/* v footer v */
.footer {
    position: relative;
    width: 100%;
    margin-top: auto; /* pushes footer to bottom if page content is short */
}

.footer img {
    display: block;
    width: 100%;
    height: auto;
}

.footer__text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    text-align: center;
    white-space: nowrap;
    text-shadow: 
        0 0 5px rgba(232, 232, 232, 0.8),
        0 0 10px rgba(232, 232, 232, 0.8),
        0 0 20px rgba(232, 232, 232, 0.8);
}



/* v this is the desktop version v */
@media (min-width: 768px) {
    .navigation_buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .navigation_buttons div {
        max-width: 250px;
        width: 100%;
    }

    .logo img {
        max-width: 200px;
        max-height: 200px;
        margin: 20px 0 0 40px; /* snaps logo back to top-left corner on pc */
    }


    
    .projectgrid {
        grid-template-columns: 1fr 1fr 1fr; /* ensures 3 columns per row, and more importantly that the project cards only occupy one "cell" each */
    }
    
    .project__card--picture {
        height: 500px; /* just slightly taller display box on pc */
    }
}