@font-face {
    font-family: nameFont;
    src: url(../fonts/BRLNSR.TTF) format("truetype");
}
@font-face {
    font-family: erasLight;
    src: url(../fonts/ITC\ Eras\ Light\ Regular.otf) format("truetype");
}
@font-face {
    font-family: erasMedium;
    src: url(../fonts/eras-itc-medium.ttf) format("truetype");
}

#projects h1 {
    margin-top: 140px;
    margin-bottom: 40px;
    text-align: center;
    color: black;
}

#gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 20px; /* Space between items */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    text-align: center;
    margin: 0 auto 20px; /* Center the grid itself */
    max-width: calc(2 * 350px + 20px); /* Adjust the grid width for 2 columns with gap */
}

/* changing gallery setting for the text assignment so that the js image that is displayed is in the correct spot */
#gallery2 {
    display: center;
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    text-align: center;
}

#gallery a {
    display: inline-block;
    margin: 0;
    padding: 0;
    width: 350px; /* Match the image dimensions */
    height: 350px;
    text-decoration: none;
    line-height: 0;
}

#gallery img {
    display: block; /* Remove extra inline spacing */
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}

#gallery img:hover {
    transition: transform 0.3s ease, color 0.3s ease;
    transform: scale(1.02);
}

#projectWindow {
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 200px;
}

#projectWindow2 {
    height: 20vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 200px;
}

.p5Container {
    height:fit-content;
    width:fit-content;
    margin:auto;
  }

#description {
    width: 60%;
    text-align: center;
    color: black;
}

/* I wanted to create a sticky footer https://www.youtube.com/watch?v=ffb34dCmMVQ so I watched this video */
footer {
    color: black;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

p {
    color: black;
}

h1 {
    color: black;
}

h2 {
    size: 100px;
    background-image:
        linear-gradient(90deg, #f7984c, #258f99);
    background-clip: text;
        color: transparent;
}

#genColorGradient {
    background-image:
        linear-gradient(80deg, #0e555c, #d3cab8, #f7984c);
    background-clip: text;
        color: transparent;
}


#dogInfoForm label {
    color: black;
}

#imageContainer {
    display: none;
}