:root {
    --bg-color: #F9FAFB;
    --text-color: #1E1E1E;
    --purple-color: #7C3AED;
    --blue-color: #1D4ED8;
    --blue-light-color: #225bf7;
}

body.dark {
    --bg-color: #202020;
    --text-color: #f9fafb;
}

.allTrans{
    transition: background-color .2s ease-in-out;
  }
  

/* *{
    transition: background-color .2s ease-in-out;
} */

header,
section,
footer,
body {
    background-color: var(--bg-color);
}

/* header */

header>a>img {
    width: 40px;
    height: 40px;
}

@media screen and (max-width: 993px) {
    header>a>img {
        width: 30px;
        height: 30px;
    }

    header nav li {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

header>a>p {
    font-size: 14px;
    color: var(--text-color);
}


nav a {
    text-decoration: none;
    color: var(--text-color);
    transition: color .2s;
}

nav a:not(.active) {
    position: relative;
}

nav a:not(.active)::before {
    content: "";
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0px;
    height: 2.5px;
    border-radius: 10000px;
    background-color: var(--blue-color);
    transition: width .2s
}

nav a:not(.active):hover::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2.5px;
    border-radius: 10000px;
    background-color: var(--blue-color);
}

nav a.active {
    color: var(--purple-color);
    font-weight: bold;
    position: relative;
}

nav a.active::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2.5px;
    border-radius: 10000px;
    background-color: var(--purple-color);
}

@media screen and (max-width: 768px) {
    nav a.active::before {
        display: none !important;
    }
}

.themeSwitch {
    background-color: var(--text-color);
    border-radius: 100000000px;
    width: 45px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.switch {
    width: 15px;
    height: 15px;
    border-radius: 10000000px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10%;
    background-color: rgb(255, 196, 0);
    transition: left .2s;
}

.switch.dark {
    left: 60%;
    background-color: var(--blue-light-color);
}

.sidebarBtn {
    background-color: transparent;
    border: 0px;
    outline: 0px;
}

.sidebarBtn svg {
    color: var(--text-color);
}

/* aside */
aside {
    height: 100svh;
    position: fixed;
    right: -100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    width: 70svw;
    top: 0px;
    transition: right .2s ease-in-out;
    z-index: 10000000000;
}

body.dark aside {
    background-color: rgb(37, 37, 37);
}

aside.active {
    right: 0px;
}

div.antiAside {
    position: fixed;
    height: 100svh;
    width: 100svw;
    background-color: rgba(0, 0, 0, .5);
    z-index: 1000000000;
    display: none;
    top: 0px;
}

div.antiAside.active {
    display: block;
}

aside a {
    max-width: fit-content
}

input:nth-child(1) {
    /* border: 2px solid var(--purple-color); */
    color: var(--text-color);
    border: 0px !important;
    background-color: #eeeeee;
}

input:nth-child(1):focus-visible {
    border: 1px solid var(--blue-color) !important;
    outline: 0px !important;
}

input:nth-child(1)::placeholder {
    text-align: end;
    color: gray;
}

textarea {
    /* border: 2px solid var(--blue-color); */
    color: var(--text-color);
    border: 0px !important;
    background-color: #eeeeee;
}

textarea::placeholder {
    color: gray;
    /* color: var(--text-color); */
}

textarea:focus-visible {
    border: 1px solid var(--blue-color) !important;
    outline: 0px !important;
}

body.dark input:nth-child(1),
body.dark textarea {
    background-color: rgb(37, 37, 37)
}

form button {
    background-color: var(--purple-color) !important;
    border: 0px !important;
    outline: 0px !important;
}

form button:hover {
    background-color: #6e34d3 !important;
}

section>p{
    color: var(--text-color)
}

/* footer */

footer {
    border-top: 2px solid var(--blue-color);
    position: relative;
}

footer div:nth-child(1) p {
    color: var(--purple-color);
}

footer div:nth-child(1) img {
    width: 67px;
    height: 67px;
}

footer div:nth-child(2) p {
    color: var(--text-color);
}

footer div:nth-child(3) a img {
    width: 24px;
    height: 24px;
    padding: 0px !important;
}

body.dark footer div:nth-child(3) img {
    filter: invert(1);
}

.footerText {
    position: absolute;
    bottom: 0px;
    font-size: 10px;
    color: var(--text-color);
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 50px;
}