*{
    margin: 0;
    padding: 0;
}
body.light-mode {
    --color: rgb(19, 19, 19);
    --boxShadow: 0px 0px 70px rgb(255, 255, 255), 0px 0px 70px rgb(255, 255, 255), 0px 0px 70px rgb(255, 255, 255);
    --background-color: rgb(255, 255, 255);
    --border-color: rgb(0, 0, 0);
    --form-field-input-color: #0f0f0f;
    --filter:invert(0);
}

body.dark-mode {
    --color: rgb(255, 255, 255);
    --boxShadow: 0px 0px 70px rgb(0, 0, 0), 0px 0px 70px rgb(0, 0, 0), 0px 0px 70px rgb(0, 0, 0);
    --background-color: rgb(0, 0, 0);
    --border-color: rgb(255, 255, 255);
    --form-field-input-color: #eee;
    --filter:invert(1);
}

body {
    background-size: 80px 80px;
    background-image:
        linear-gradient(to right, rgb(54, 54, 54) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(54, 54, 54) 1px, transparent 1px);
        background-attachment: fixed;
}

main {
    width: 90vw;
    max-width: 1000px;
    margin: 20px;
    margin-top: 90px;
    margin-left: 50vw;
    transform: translate(-50%);
}
details {
    margin-bottom: 15px;
    border: 1px solid #454545;
    border-radius: 5px;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out, padding 0.6s ease-in-out;
    max-height: 40px; /* Matches the height of the summary */
}
details[open] {
    max-height: 500px; /* Expands to show content */
    padding-bottom: 10px; /* Adds padding to make expanded state look better */
}
#infinity {
    margin-top: 0;
    position: relative;
    overflow: hidden;
    background-color: var(--background-color); /* Fallback */
    color: var(--color); /* Adjust text color if needed */
    z-index: 0; /* Set lower z-index for the container itself */
}

#infinity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--background-color), var(--background-color), cyan);
    transition: opacity 0.3s ease-in-out;
    z-index: -1; /* Place the gradient behind the content */
}

#infinity:hover::before {
    opacity: 0; /* Fade out the gradient smoothly */
}

#infinity .content {
    position: relative; /* Make sure content is above the gradient */
    z-index: 1; /* Ensure it appears above the ::before pseudo-element */
}
#infinityBtn{
    background-color: #0f0f0f00;
    border: none;
    padding: 0;
    width: 100%;
    text-align: left;
}

.infinityImage {
    position: absolute; /* Position the image relative to the parent (#infinity) */
    bottom: -50px;
    right: 10px;
    width: 40%;
    opacity: 0;
    transition-duration: 0.6s;
}
#infinity:hover .infinityImage{
    opacity: 1;
}
.issueImage{
    float: right;
    margin-bottom: -40px;
    margin-top: 0px;
    right: 10px;
    width: 35%;
    -webkit-filter: drop-shadow(0px 0px 10px rgb(255, 187, 0));
    filter: drop-shadow(0px 0px 10px rgb(255, 187, 0));
}
#doubt{
    -webkit-filter: drop-shadow(0px 0px 10px rgb(255, 89, 0));
    filter: drop-shadow(0px 0px 10px rgb(255, 89, 0));
}
#infinityImg{
    -webkit-filter: drop-shadow(7px 7px 10px rgb(0, 255, 213));
    filter: drop-shadow(7px 7px 10px rgb(0, 255, 213));
}
summary {
    cursor: pointer;
    font-weight: bold;
    position: relative;
    padding-left: 35px;
    height: 40px; /* Fixed height for the summary */
    line-height: 40px; /* Vertically aligns text */
    list-style: none;
    appearance: none;
    min-height: max-content;
}
summary::marker {
    content: ""; /* Hides default marker */
}
summary::before {
    content: "+";
    position: absolute;
    top:10px;
    left: 10px;
    color: #ffd000;
    font-size: 22px;
    line-height: 1;
    transition: transform 0.3s ease-in-out;
}
details[open] summary::before {
    transform: rotate(45deg);
}
details p {
    margin: 10px 10px 0 20px;
}
ul{
    margin-bottom: 20px;
    margin-left: 20px;
}
.heading {
    margin-left: 0px;
    font-size: xx-large;
}

.category {
    height: min-content;
    overflow: hidden;
    margin-top: 40px;
    border: 1px solid rgb(40, 40, 40);
    border-radius: 10px;
    padding: 20px;
    background-color: var(--background-color);
    box-shadow: var(--boxShadow);
}
.design_btn {
    padding: 10px 20px 10px 20px;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--color);
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: medium;
    transition-duration: 0.3s;
}

.design_btn:hover {
    filter: invert(1);
}
.in-line{
    display: flex;
    justify-content: space-between;
}
.in-line div{
    width: 47%;
}
.funds{
    display: block;
    margin-top: -20px;
    position: absolute;
    right: 20px;
}
.fundInfo{
    max-width: 75%;
    word-wrap: break-word;
}
.funds button img{
    height: 15px;
    filter: var(--filter);
    margin-right: 10px;
}
.fund_links{
    display: flex;
    flex-direction: column;
}
.fund_links div{
    display: flex;
    padding: 15px;
}
#bug-report-form {
    width: 90vw;
    max-width: 600px;
    z-index: -999;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-40%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.4vh;
    opacity: 0%;
    transition: all 0.35s ease;
}

#bug-report-form.active {
    z-index: 9999;
    top: 45%;
    opacity: 100%;
}

#bug-report-form p {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

#bug-report-form label {
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

#bug-report-form label input,
#issue-select,
#issue-description-field {
    background-color: #76767639;
    color: var(--form-field-input-color);
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
    height: 40px;
    box-shadow: none;
    border: 2px solid rgba(255, 255, 255, 0.19)
}

#issue-select {
    border-radius: 5px;
}

#issue-select option {
    color: black;
    background-color: rgba(255, 255, 255, 0.3);
}

#issue-description-field {
    padding: 3px 4px;
    height: 80px;
    border-radius: 5px;
}

#bug-report-form .button-div {
    width: 100%;
    display: flex;
    justify-content: center;
}

#bug-report-form button[type="submit"] {
    background-color: rgba(0, 123, 121, 0.364);
    color: rgb(224, 224, 224);
    border: none;
    border-radius: 3px;
    width: 70px;
    height: 37px;
    transition: all 0.2s ease-out;
}

#bug-report-form button[type="submit"]:hover {
    color: black;
    background-color: rgba(0, 240, 236, 0.867);
    box-shadow: 0px 0px 15px rgba(0, 240, 236, 0.867);
}

#close-report-popup {
    position: absolute;
    background-color: rgba(0, 0, 0, 0);
    color: rgb(148, 51, 51);
    border: none;
    transform: scale(1.3);
    right: 1%;
    top: 1%;
    will-change: transform;
    transition: transform 0.2s ease;
}

#close-report-popup:hover {
    transform: scale(1.4);
}

body.popup-active {
    overflow: hidden;
}

#container.popup-active {
    user-select: none;
    pointer-events: none;
    filter: blur(8px);
    overflow: hidden;
}

/*==============================RESPONSIVE===================================*/
@media screen and (max-width: 1150px) {
    .category-row {
        display: flex;
        flex-direction: column;
        gap: 8vw
    }

    section#help-categories {
        gap: 8vw;
    }
}

@media screen and (max-width: 500px) {
    #bug-report-form {
        transform: translate(-50%, -50%);
    }
}

@media screen and (max-width: 453px) {
    #heading {
        font-size: 1.4rem;
    }

    #popup-header p {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 438px) {
    #heading {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 408px) {
    #heading {
        font-size: 1.2rem;
    }

    #popup-header p {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 377px) {
    #heading {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 340px) {
    #popup-header p {
        font-size: 1.3rem;
    }
}
@media  screen and (max-width:600px) {
    .in-line{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .in-line div{
        width: 100%;
    } 
}
@media screen and (max-width: 900px){
    .fund_links div{
        display: flex;
        flex-direction: column;

    }
    .funds{
        position: relative;
        margin-top: 10px;
        margin-left: 20px;
    }
    .fund_links div{
        padding: 0;
    }
    .infinityImage{
        bottom: 0px;
    }
    .fundInfo{
        max-width: 100%;
    }
}