*{
    /*this just below ensures that the margin and padding are included in the elements width and height totals*/
    box-sizing: border-box;
    /*explained further later but is the boarder - in this case is 0 as this is a black bar at the top*/
    margin: 0;
    padding: 100;
    /*obvious really xx its the font - needs a chrome import i think eventually*/
}

body {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #030303;
}

.addPost {
    font-size: 1rem; /* Adjust font size */
    color: #a8a984be; /* Text color */
    font-weight: bold;
    display: inline;
    align-items: center;
    position: relative;
}

.main {
    margin-bottom: -150px;
}

.bio {
    position: relative;
    top: -195px;
    margin-left: 20%;
    margin-right: auto;
    margin-bottom: 50px;
    max-height: 115px;
}

.bio h1 {
    font-family: "EB Garamond", system-ui;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 4rem;
    background-color: hsl(310, 72%, 42%);
    background-image: linear-gradient(to right, #dcdfac 0%, #c1c49e 100%);
    background-size: 100%;
    margin-top: 0;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: none;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-colour: transparent;
}

.bio h2 {
    font-size: 2rem;
    background-color: #9a9c7e;
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: none;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-colour: transparent;
}

.social-links {
    position: absolute;
    top: 190px; /* Adjust the spacing from the top as needed */
    right: 10px; /* Adjust the spacing from the right as needed */
    z-index: 10; /* Keeps it on top of other content */
    display: flex;
    align-items: center;
    gap: 0px; /* Space between text and icon */
}

.social-text {
    font-size: 1rem; /* Adjust font size */
    color: #a8a984be; /* Text color */
    font-weight: bold;
    transform: translateY(-4px); /* Adjust this value to raise/lower the text */
}

.instagram-link {
    display: inline-block;
}

.instagram-icon {
    width: 48px; /* Adjust icon size */
    height: 48px;
    transition: transform 0.3s ease; /* For a hover effect */
}

.instagram-link:hover .instagram-icon {
    transform: scale(1.1); /* Slight zoom on hover */
}


.tags {
    position: relative;
    display: flex; 
    margin-left: 20px;
    width: 400px;
    gap: 5px;  
    top: -150px;
    padding: 2px 5px 0px 5px;
    border-radius: 10px 10px 0px 0px;
    background-color: #a8a98425;
}

.tags h1 {
    font-size: 1.6rem;
    color: #a8a984;
}

.tags button:hover {
    font-size: 1.6rem;
}

.tags button {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.tags {
    #all {
        color: #6e2b5e;
    }

    #project {
        color: #721302;
    }

    #book {
        color: #a05b00;
    }

    #general {
        color: #118c6e;
    }
}

.backgroundPic {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    position: relative;
}


.topline {
    width: 100%;
    height: 1px; 
    background-color: #333328; 
}

.articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    padding-top:20px;
    width: 100%;
    background-color: #030303;
}
  
.card {
    background-color: #030303;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    max-height: 400px;
    min-height: 400px;
    flex-direction: column;
}
  
.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.color-stripe {
    height: 8px;
}
  
.stripe-red .color-stripe {
    background-color: #721302;
}
  
.stripe-orange .color-stripe {
    background-color: #a05b00;
}
  
.stripe-cyan .color-stripe {
    background-color: #118c6e;
}
  

.stripe-red {
    box-shadow: 0 4px 8px rgba(199, 33, 4, 0.2); 
}
  
.stripe-red:hover {
    box-shadow: 0 8px 16px rgb(199, 33, 4, 0.2);
}
  
.stripe-orange {
    box-shadow: 0 4px 8px rgba(160, 91, 0, 0.2);
}
  
.stripe-orange:hover {
    box-shadow: 0 8px 16px rgba(160, 91, 0, 0.2);
}
  
.stripe-cyan {
    box-shadow: 0 4px 8px rgb(17, 140, 110,0.2);
}
  
.stripe-cyan:hover {
    box-shadow: 0 8px 16px rgb(17, 140, 110,0.2);
}
  
.card-content {
    padding: 15px;
}
  
.card-content h1 {
    font-family: "EB Garamond", system-ui;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5em;
    color: #a8a984;
}

.card-content h2 {
    font-size: 0.75rem;
    color: #a8a98496;
    margin-bottom: 10px;
}
  
.card-content p {
    font-size: 1em;
    color: #a8a98493;
    overflow-y: hidden;
    max-height: 100px;
}

#userPassword {
    background-color: #030303;
    color: #a8a984;

}

#enterPassword {
    background-color: #030303;
    color: #a8a984b9;
}

#adminPasswordMenu {
    display: none; 
    position: center;
    bottom: 20px;
    font-family: "EB Garamond", system-ui;
    justify-content: center; 
}

#adminPasswordMenu h1 {
    color: #a8a984!important; 
    font-size: 2rem;

}

textarea {
    background-color: #030303;
    color: #a8a984;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px
}

#content-editor {
    height: 200px; /* Adjust the height to match the desired number of lines */
    /* Optionally set overflow */
    overflow-y: auto; /* Allows scrolling when the content exceeds the height */
}

#title, #description {
    width: 100%; /* Or set a specific width, like 600px, to match Quill */
    box-sizing: border-box; /* Ensures padding does not affect width */
    font-size: 16px; /* Set font size to match the Quill editor */
    height: 40px; /* Adjust this value based on the line-height of the text */
    line-height: 20px; /* Set the line height to control the number of lines */
    padding: 5px; /* Optional, for spacing inside inputs */
    margin-bottom: 10px; /* Optional, for spacing between inputs */
}

.addPost {
    font-family: "EB Garamond", system-ui;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    color:#a8a984;
    display: block;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    text-align: center;
}

.addPost h1 {
    font-weight: 600;
}

.back-to-top {
    display: flex;
    justify-content: center; 
    font-size: 1rem;
    position: center;
    bottom: 20px;
    color: #9a9c7e9d;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
}

.back-to-top:hover {
    color: #9a9c7e;
}

.back-to-index {
    position: absolute;
    top:0px; /* Adjust the spacing from the top as needed */
    left: 20px; /* Adjust the spacing from the right as needed */
    z-index: 10; /* Keeps it on top of other content */
    font-size: 3rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #9a9c7e;
    font-family: "EB Garamond", system-ui;
}

.back-to-index:hover {
    color: #fcffd5;
    transform:scale(1.1)
}
 
@media (max-width:700px) {
    .bio {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .articles {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .tags {
        position: center;
        display: flex; 
        margin-left: 25px;
        width: 300px;
        gap: 0px;  
        top: -150px;
        padding: 2px 5px 0px 5px;
        border-radius: 10px 10px 0px 0px;
    }

    .tags h1 {
        font-size: 1.2rem;
    }

    .tags button {
        font-size: 1.1rem;
        margin: 0;
        padding: 2px 9px;
    }

    .tags button:hover {
        font-size: 1.2rem;
    }
}


@media (max-width: 412px) {
    .articles {
      grid-template-columns: 1fr;
    }

    .bio {
        top: -210px;
    }

    .bio h2 {
        font-size: 0rem;
    }

    
}

.footer {
    font-size: 0.5rem;
    color: #a8a98436;
    background-color: #030303;
    display: flex;
    padding: 10px;
    justify-content: space-between;
}

.tags {
    position: relative;
    display: flex; 
    margin-left: 20px;
    width: 434px;
    gap: 5px;  
    top: -150px;
    padding: 2px 5px 0px 5px;
    border-radius: 10px 10px 0px 0px;
    background-color: #a8a98425;
}

.footer button:hover {
    color: pink;
}

.footer button {
    font-size: 0.9rem;
    font-weight: bold;
    color: #a8a98436;    
    cursor: pointer;
    background: none;
    border: none;
}

#adminPasswordMenu {
    justify-self: right;
    background-color: #030303;
    margin: 5px;

}

#adminPasswordMenu h1{
    color: #a8a98436;    
}