:root {
        --text: #ecdef7;
        --background: #170722;
        --primary: #83679a;
        --secondary: #5e347d;
        --accent: #66c7ae;
        --red: #fa7777;
}



* {
    padding: 0;
    margin: 0;
}
p code{
    background-color: #1a1b26;
    padding:5px;
    border-radius: 8px;
    font-size: clamp(0.8rem, 0.88rem + 0.2229vw, 1.2rem);
}
pre {
    background-color: #1a1b26;
    padding: 5px;
    border-radius: 8px;
    overflow-x: auto;
    position: relative;
    counter-reset: line;
    font-size: clamp(0.75rem, 0.7488rem + 0.1229vw, 1rem);
    line-height: 1.3;    /* Tighter line spacing */
    margin-top: 10px;
}

/* Line Numbers */
pre.line-numbers code {
    display: inline-block;
    counter-reset: line;
    /*padding-left: 2rem; /* Space for line numbers */
}

/* Add line numbers before each line */
pre.line-numbers code span::before {
    counter-increment: line;
    content: counter(line);
    display: inline-block;
 /*   width: 2rem;*/
    text-align: right;
    margin-right: 1rem;
    color: #888;
}

/* Ensure each line is wrapped */
pre.line-numbers code span {
    display: block;
}

/*img{
    object-fit: scale-down;
}*/
body{
    background-color: var(--background);
    overflow: scroll;
    color: var(--text);
    font-family: "Balsamiq Sans", serif ;
    margin: 0;
    padding: 0;
    height:100vh;
    width: 100vw;
}
li{
    padding-left: 10px;
}
/*ul{
    margin: 0 auto;
    list-style: none;
}*/
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background:var(--accent);
    color: black;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease-in-out;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.copy-btn:active {
    background: #039be5;
}
.img{
    object-fit: fill;
}
.wrapper{
    margin: auto;
    max-width: 800px;
    height: 80% ;
    display: grid;
   grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr 1fr 0.2fr;
    gap: 10px;
    grid-column-gap: 100px;
    justify-content: center;
    align-items: center;
}
.welcome-div{
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    max-width: 430px;
    height: 295px;
    margin-top: 30%;
    text-wrap: wrap;
}
.welcome-head{
    font-family: "Erica One", serif;
    font-size: clamp(50px, 0.5vw, 60px);
    margin-bottom: 10px;
    padding-bottom: 0;
    font-weight: lighter;
}
.welcome-text{
    font-size: 22px;
    margin-top: 20px;
}
#intro{
    margin-top: 0px;
}
.info{
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    margin-bottom: 0;
    width: 360px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.linklist {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    max-width: 430px;
    height: 410px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.horizontal-card {
    margin-top: 25px;
    height: 130px;
    width: 360px;
    display: flex;
    flex-direction: row;
    cursor: pointer;
    background-color: var(--primary);
    border-radius: 12px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}
.horizontal-card:hover{
    transform: scale(1.1);
}

.horizontal-card .card-right {
    display: flex;
    background-color: var(--secondary);
    height: 100%;
    width: 80px;
    justify-content: center;
    align-items: center;
    justify-self: flex-end;
}

.card-text {
    color: black;
    display: flex;
    width: 192px;
    flex-direction: column;
    font-size: 17px;
    padding-left: 10px;
}

.card-text h5 {
    margin: 0;
    font-size: 18px;
}

.card-text p {
    margin: 0;
}
.notextdeco{
    color: var(--text);
    text-decoration: none;
}

.card-button {
    display: flex;
    justify-content: center;
    cursor: pointer;
    align-items: center;
    height: 40px;
    width: 40px;
    margin-left: 10px;
    box-shadow: none;
    border-style: none;
    border-radius: 50%;
    background-color: var(--secondary);
}
.contact{
    margin: -165px 0 0 0;
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    width:360px;
    height: 60px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}
.contact-button:hover{
    transform: scale(1.3);
}
.img-wrapper{
    width: 140px;
    height: 140px;
    overflow: hidden;
    border-radius: 50%;
}
.img{
    display: inline;
    margin: -25% auto;
    height: auto;
    width: 100%;
}
.pfp-wrapper{
    width: 140px;
    height: 140px;
    overflow: visible;
    text-align: left;
}
.online-checker{
    margin: -50% auto 0;
    border-radius: 50%;
    height:24px;
    width: 24px;
    display: inline-block;
    justify-self: flex-end;
    align-self: flex-start;
}
.info{
    height: 646px;
    font-size: 20px;
    justify-content: center;
    align-items: center;
}
.info li{
    overflow: clip;
    word-break: auto-phrase;
    margin: 5% auto;
    text-align: center;
    padding-left: 0;
}
.info-prompt{
    color: var(--accent);
}
.spotify{
    margin-top: 15px;
    height: 140px;
    width: 330px;
    background-color: var(--secondary);
    display: flex;
    flex-direction: row;
    border-radius: 13px;
    font-family: "Erica One";
    justify-content: space-between;
    align-items: center;
    align-content: center;
    font-weight: lighter;
    border: 2px solid black;
}
.spotify-img{
    height: 128px;
    width: 128px;
    align-self: center;
    justify-self: center;
    margin-right: 6px;
    border-radius: 13px;
    border: black 2px solid;
}
.spotify-name{
    font-size: clamp(0.75rem, 0.7463rem + 0.4688vw, 1.5rem);
    text-decoration: none;
    line-height:1;
    color: var(--text);
}
.spotify-artist {
    font-size: clamp(0.75rem, 0.7488rem + 0.1229vw, 1rem);
}
.spotify-text{
    margin: auto;
    display: flex;
    flex-direction: column;
}
.wrapper-div{
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    text-wrap: wrap;
}
.link{
    color: var(--accent);
    text-decoration: underline;
}
.toolslist{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.tool{
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background-color: var(--primary);
    min-width: 33vw;
    max-width: 90vw;
    min-height: 25vh;
    max-height: 50vh;
    border-radius: 25px;
}
.source-code{
    margin-bottom: 50px;
}
.tool h1{
    margin-bottom: 5%;
    font-size: clamp(1.625rem, 1.6228rem + 0.2172vw, 2.125rem);
}
.hidden {
    display: none;
}
.gen{
    cursor: pointer;
    margin-bottom: 10px;
    display: block;
    font-size: 20px;
    font-family: "Balsamiq Sans", serif;
    box-shadow: none;
    background: none;
    outline: none;
    border: none;
    text-decoration: none;
    color: var(--accent);
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    padding: 10px;
    letter-spacing: 2px;
    transition: all .25s;
}

.gen:hover{
    transform: scale(1.1);
}
.gen_clicked{
    transform: rotate(360deg);
}
#copy{
}
#burgir{
    margin: 10px 10px 10px 10px;
    cursor: pointer;
}
.wtb{
    -webkit-filter: invert(1);
    filter: invert(1);
}
.img-small{
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.button-symbol{
    background: none;
    box-shadow: none;
    border: none;
}
#text{
    text-align: center;
    resize: none;
    display: block;
    width: 90%;
    font-size: clamp(0.75rem, 0.7463rem + 0.3688vw, 1.5rem);
    margin-bottom: 1%;
    border: none;
    border-bottom: 5px solid black;
    background: white;
    min-width: 250px;
    padding-left: 5px;
    outline: none;
    color: black;
}
.burger{
    position: absolute;
    z-index: 4;
}
.toollink{
    color: var(--accent);
    margin-bottom: 20px;

    text-decoration: underline;
    font-size: 20px;
}
.burgir li{
}
#homelink{
    color: var(--text);
}
.burgir{
    position: absolute;
    z-index: 2;
    padding: 25px;
    border-radius:25px ;
    width: 25vw ;
    background-color: var(--secondary);
    text-align: center;
    list-style: none;
}
.burgir ul {
    list-style: none;
}
.blogcard {
    width: 325px;
    height: 360px;
    background-color: var(--secondary);
    border-radius: 25px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    margin-bottom: 30px;
    margin-left: 30px;
}

.blogimage {
    aspect-ratio: 4/2;
    width: 325px;
    justify-self: center;
    align-self: center;
    border-radius: 8px;
    object-fit: cover;
}
.postimage{
    margin-bottom: 30px;
    justify-self: center;
    align-self: center;
    width: 100%;
}
.post{
    width: 70vw;
    flex-direction: column;
    margin:auto;
    display:flex;
}
.posttitle{
    font-size: clamp(1.875rem, 1.8731rem + 0.1884vw, 2.25rem);
}
.blogtags {
    display: flex;
    flex-direction: row;
    gap: 8px; /* Space between tags */
    align-items: flex-start; /* Align tags to the left */
    justify-content: flex-start; /* Prevent unwanted centering or stretching */
    text-align: left; /* Ensure text inside tags aligns left */
    max-width:100px ;
    flex-wrap: wrap;
}
.topcard {
    display: grid;
    grid-template-columns: 1fr auto; /* Image on the left, tags on the right */
    gap: 16px;
    align-items: start; /* Align tags to the top */
}


.blogtag {
    background-color: var(--accent);
    color: black;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: bold;
    white-space: nowrap;
}
.blogpinned{
    background-color: var(--red);
}

.content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blogdate {
    font-size: 12px;
    color: #e0e0e0;
}
.blogprev{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 6em;
}
.bloglist{
    display:flex;
    margin: auto;
    flex-direction: row;
    flex-wrap: wrap;
}

.blogtitle {
    font-family: "Erica One", serif;
    font-weight: lighter;
}
.bloglist{
    width: 95vw;
    margin:auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.searchbar{
    text-align: center;
    display: block;
    padding: 0 0 0 15px;
    border-radius: 50px;
    width: 90vw;
    max-width: 360px;
    height: 35px;
    margin: 10px auto 50px auto;
    color: var(--text);
    font-size: 18px;
    font-family: "Balsamiq Sans", serif;
    background-color: var(--primary);
    border: 3px var(--secondary) solid;
    background-image:url("../look.png");
    background-repeat:no-repeat;
    background-position: 97%;
    background-size: 24px;
}
.searchbar::placeholder{
    color: var(--text);
}
.return-button {
    position: fixed;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--background);
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease-in-out;
}

.return-button {
    position: fixed;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.return-button svg {
    width: 32px;
    height: 32px;
    color: var(--text);
    transition: transform 0.2s ease-in-out;
}

.return-button:hover svg {
    transform: scale(1.1);
}
@media (max-width: 900px) {
    .wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        height: auto;
        align-items: center;
        justify-content: center;
    }
    .welcome-div{
        margin-top: 5%;
        margin-left: 10px;
        margin-right: 10px;
    }
    .contact{
        margin: 15px;
    }
    .tool{
        width: 90vw;
    }
    .bloglist{
      
    }

}
