* {
    background-color: linear-gradient(135deg, #1e1e2f, #3a3a5f);
}
body, html{
    margin: 0;
    font-family: "Source Code Pro", monospace;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    background: linear-gradient(135deg, #1e1e2f, #3a3a5f);
    background-size:cover;
    color: white;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #1e1e2f;
}

::-webkit-scrollbar-thumb {
    background: #6262a0;
    border: none;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a5a7f;
}

.txt {
    position: absolute;
    top: 30%;
    left: 30%;
    font-size: 5vw;
}

#particles-js {
    /* width: 100%; */
    height: 5% !important;
    max-height: 5% !important;
}

.sidebar {
    height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #2e2e3e;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    z-index: 3;
}

.sidebar img {
    width: 90%;
    margin-bottom: 20px;
    border-radius: 10%;
    filter: brightness(1.2);
    transition: filter 0.3s ease;
}

.sidebar img:hover {
    filter: brightness(2);
}

.sidebar h2 {
    color: #a29bfe;
}
.content {
    margin-left: 310px; 
    padding: 20px;
    min-height:100vh;
}

.tool {
    min-height:100vh;
}

.toolcontent {
    width:90%;
    margin:5%;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: space-evenly;
    text-align: center;
}

.palette {
    display: flex;
    flex-direction: row;
    width:100%;
    justify-content: space-evenly;
    align-items: center;
    background-color: #3e3e5e;
    opacity:0.75;
    margin-bottom:1vw;
}

.palette:hover {
    opacity:1;
}

.color { 
    width:6vw;
    height:6vw;
    display: flex;
    justify-content: center;
    align-items: center;
    margin:2vw;
}

.black{
    color:black;
}

.white{
    color:white;
}

.project {
    background-color: #3e3e5e;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 3;
}

.project h3 {
    color: #81ecec;
}

.footer {
    width: 100vw;
    max-width:100vw;
    background-color: #2e2e3e;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    /* position: fixed;
    bottom: 0;
    left: 0; */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
    z-index: 3;
}

.footer a {
    color: #a29bfe;
    /* transition: color 0.3s ease; */
}
/* 
.footer a:hover {
    color: #81ecec;
} */

.bold {
    font-weight: 700;
    color: #a29bfe;
}

a {
    color: #a29bfe;
}

.toolheader {
    width: calc(100% - 40px);
    margin: 20px;
    padding: 10px;
    background-color: #2e2e3e;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    text-align: center;
    font-size: 1.2em;
}

/* Responsive Styles for .toolheader */
@media (max-width: 768px) {
    .toolheader {
        width: calc(100% - 30px);
        margin: 15px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .toolheader {
        width: calc(100% - 20px);
        margin: 10px;
        font-size: 0.9em;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .content {
        margin-left: 260px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
    }
    .content {
        margin-left: 0;
        padding-top: 20px;
    }
}

.shapemakerbody {
    display: flex;
    height: 100vh;
    margin: 0;
    font-family: 'Source Code Pro', monospace;
    max-height: 100vh;
    overflow-y:hidden;
}

.colorsbody {
    display: flex;
    height: 100vh;
    margin: 0;
    font-family: 'Source Code Pro', monospace;
}

.shape-generator {
    width: 20%;
    padding: 20px;
    background-color: #2e2e3e;
    color: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    overflow-y: auto;
}

.rendering-area {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3e3e5e;
}

.shape-generator label {
    display: block;
    font-size:1.4em;
    margin-bottom: 0.5vh;
}

.shape-generator input, .shape-generator select, .shape-generator button {
    margin-bottom:3vh;
    width:80%;
    height: 40px;
    background-color: #3e3e5e;
    border: 2px solid #a29bfe;
    border-radius: 7px;
    color:white;
}

#shape-output {
    max-width: 80%;
    max-height: 80%;
}

code {
    background-color: rgb(40, 40, 40);
    border-radius: 7px;
    display:block;
    padding:3%;
    margin-bottom:2vh;
}

.blog {
    display: flex;
    width:80%;
    flex-direction: column;
    margin: 5%;
    margin-left:10%;
}

code:empty {
    display: inline;
    padding: 0;
    background: none;
    border: none;
  }

input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #a29bfe;
    border-radius: 50%;
    background-color: #3e3e5e;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: background-color 0.3s ease;
}

input[type="radio"]:checked {
    background-color: #a29bfe;
}

input[type="radio"]::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #2e2e3e;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease;
}

input[type="radio"]:checked::after {
    background-color: #1e1e2f;
}

.about-tool {
    width: 60%;
    height:100%;
    display:flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin:10%;
    margin-bottom: 0;
}

.about-tool p, h1, h2 {
    color: white;
    margin:1%;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .shape-generator {
        width: 30%;
    }
    .rendering-area {
        width: 70%;
    }
}

@media (max-width: 480px) {
    .shape-generator {
        width: 100%;
        height: auto;
        box-shadow: none;
    }
    .rendering-area {
        width: 100%;
        padding-top: 20px;
    }
}

.shapemakerbody ul {
    text-align: left;
}

.query-generator {
    max-width: 100vw;
    width:100vw;
    margin: 0 auto;
    padding: 20px;
    background-color: #2e2e3e;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.query-generator h2 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 700;
    color: #a29bfe;
    text-align: center;
}

.query-generator form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.query-generator label {
    font-family: 'Source Code Pro', monospace;
    font-weight: 500;
    color: #ffffff;
}

.query-generator select,
.query-generator textarea {
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    padding: 10px;
    background-color: #3e3e5e;
    border: 1px solid #a29bfe;
    border-radius: 4px;
    color: #ffffff;
}

.query-generator button {
    font-family: 'Source Code Pro', monospace;
    font-size: 16px;
    padding: 10px 20px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.query-generator button:hover {
    background-color: #0056b3;
}

.query-generator code {
    display: block;
    white-space: pre-wrap;
    background-color: rgb(40, 40, 40);
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    color: #ffffff;
}

.query-generator a {
    display: inline-block;
    margin-top: 20px;
    font-family: 'Source Code Pro', monospace;
    color: #a29bfe;
    text-decoration: none;
    transition: color 0.3s;
}

.query-generator a:hover {
    color: #81ecec;
}

.judgezero {
    max-height: 100000000000000000vh !important;
    overflow-y: scroll;
}