@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');

body {
    background-color: rgb(248, 231, 210);
    margin: 0;
    font-family: "Google Sans Flex", sans-serif;

    /* I thought about a gradient... but I am unsure if it looks good? I think solid colors is probably the best */
    /* background: linear-gradient(
    to bottom,    
    rgb(248,231,210) 0%,   
    rgb(47, 47, 47) 100% 
  ); */
}

a:link, a:visited, a:hover, a:active {
    color: inherit; /* or specify a color like #000000 */
    text-decoration: none;
}

.title {
    text-align: center;

    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;

    font-size: 100px;
}

.subposttitle {
    text-align: center;

    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;

    font-size: 40px;
    margin-top: -90px;
    margin-bottom: 40px;
    margin-left: -107px;
    color: rgb(100, 100, 100);

    font-style: italic;
}

.bio {
    width: 60%;
    margin: 0 auto;

    padding: 20px;
    background-color: rgb(255, 227, 161);

    border-radius: 10px;

    border: black;
    border-width: 2px;
    border-style: solid;

    font-size: 20px;
}

.nav {
    background-color: rgb(47, 47, 47);
    padding: 10px 60px;
    color: rgb(255, 227, 161);
    /* margin-top: 20px; */

   
    position: sticky;
    top: 0;
}

.posttit {
    text-align: left;

    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;

    font-style: italic;

    font-size: 60px;
    margin-left: 60px;
}

.posttit-btn {
    text-align: left;

    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;

    font-style: italic;

    font-size: 30px;
    margin-left: 60px;
    margin-top: -50px;
    margin-bottom: 40px;
    color: rgb(100, 100, 100);
}

.card-cont {

    background-color: rgb(255, 236, 192);
    border: 2px solid black;

    display: flex; /* Enables Flexbox layout */
    flex-wrap: wrap; /* Allows cards to drop to the next line when space runs out */
    justify-content: flex-start; /* Aligns cards to the left of the container */
    gap: 20px; /* Optional: Adds consistent space (gap) between the cards */
    padding: 20px;

    margin-left: auto;
    margin-right: auto;

    justify-content: center;

    text-decoration: none;
}

.projecthome {

    width: 20%;
    height: 450px;

    margin-left: 20px;

    padding: 0px;
    background-color: rgb(255, 227, 161);

    border-radius: 10px;

    border: black;
    border-width: 2px;
    border-style: solid;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.projecthome:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.projecthome-img {
    max-width: 100%;
    border-radius: 9px;
    border: black;
    border-width: 0 0 2px 0;
    border-style: solid;
}

.projecthome-text {
    margin: 10px;
}

.bottominfo {
    background-color: rgb(47, 47, 47);

    padding: 30px 0 70px 20px;

    color: rgb(255, 227, 161);
}


ul {
  list-style-type: none; 
  margin: 0; 
  padding: 0; 
  text-align: left; 
}


ul li {
  display: inline-block;
  margin-right: 20px;
}


ul li a {
  text-decoration: none; /* Removes the underline */
}


ul li a:hover {
  color: rgb(255, 81, 0); 
}

/* Clickable project card styles */
.clickable-card {
        cursor: pointer;
}

.post-content {
    width: 60%;
    margin: 20px auto;

    padding: 20px;
    background-color: rgb(255, 227, 161);

    border-radius: 10px;

    border: black;
    border-width: 2px;
    border-style: solid;

    font-size: 20px;
}

/* Posts list page styles */
.posts-list {
    width: 80%;
    margin: 20px auto 60px auto;
    background: transparent;
    border-radius: 6px;
}

.post-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 12px;
    text-decoration: none;
    color: inherit;
}

.post-row:hover {
    background-color: rgba(0,0,0,0.04);
}

.post-title {
    font-weight: 600;
}

.post-desc {
    color: rgba(0,0,0,0.7);
    font-size: 14px;
    max-width: 55%;
    text-align: right;
}

hr {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    margin: 0;
}

@media (max-width: 700px) {
    .posts-list { width: 92%; }
    .post-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .post-desc { text-align: left; max-width: 100%; }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .bio,
    .post-content {
        width: 90%;
        padding: 16px;
        margin: 12px auto;
        font-size: 18px;
    }

    .posttit {
        font-size: 40px;
        margin-left: 20px;
        text-align: center;
    }

    .card-cont {
        padding: 12px;
        gap: 12px;
    }

    .projecthome {
        width: 45%;
        height: auto;
        margin-left: 0;
        padding-bottom: 12px;
    }

    .projecthome-img {
        height: auto;
        display: block;
    }

    ul li {
        display: inline-block;
        margin-right: 12px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 22px;
    }

    .bio,
    .post-content {
        width: 95%;
        padding: 12px;
        font-size: 16px;
    }

    .posttit {
        font-size: 32px;
        margin-left: 8px;
        text-align: left;
    }

    .card-cont {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .projecthome {
        width: 100%;
        margin-left: 0;
        height: auto;
    }

    .projecthome-text {
        margin: 8px;
    }

    ul li {
        display: block;
        margin: 8px 0;
    }

    .nav {
        padding: 8px 0;
        text-align: center;
    }

    .bottominfo {
        padding: 20px 10px;
        text-align: center;
    }
}

/* Color swatches used in posts */
.color-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0 18px 0;
    align-items: center;
    justify-content: center;
}

.swatch {
    width: 500px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
    padding: 4px;
    text-align: center;
    line-height: 1;
}

@media (max-width: 420px) {
    .swatch { width: 36px; height: 36px; font-size: 9px; }
}