@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

:root {
    --dark-greenish-navy: #001a25;
    --green: #64ffda;
    --light-paste: #5c9fa7;
    --text: #343434;
    --line: #d9d4d4;
    --navy-blue: #0a192f;
    --light-navy: #003147;
    --light-green: #49757a;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --solus-night: #01242e;
    --filter-white: invert(92%) sepia(100%) saturate(0%) hue-rotate(33deg)
        brightness(105%) contrast(103%);
    --header_font: 'Roboto';
    --text_font: 'Merriweather';
    --bg-color-body: #ffffff;
    --bg-color-aside: #001a25;
    --header-color: #0a192f;
    --old-new-hover: rgb(245, 245, 245);
    --old-new: #0a192f;
    --bg-color: #ffffff;
    --info-color: #49757a;
    --bg-color-pro: #003147;
    --header-color-pro: #a8b2d1;
    --filter: invert(43%) sepia(11%) saturate(1214%) hue-rotate(138deg)
        brightness(94%) contrast(87%);
    --bg-quote: rgb(245, 245, 245);
    --bg-quote: #e7f3fe;
    --quote-color: #343434;
    --quote-border: black;
}

:root.dark-mode {
    --bg-color-body: #353b43;
    --bg-color-aside: #242930;
    --bg-color: #353b43;
    --header-color: #57cc8a;
    --text: #ccd6f6;
    --old-new-hover: #242930;
    --old-new: #57cc8a;
    --text: #ccd6f6;
    --info-color: #5c9fa7;
    --bg-color-pro: #242930;
    --header-color-pro: #57cc8a;
    --line: #49757a;
    --filter: invert(58%) sepia(60%) saturate(281%) hue-rotate(138deg)
        brightness(89%) contrast(84%);
    --bg-quote: #292c35;
    --quote-color: #ccd6f6;
    --quote-border: #49757a;
}

/*? -------------------------------------- MAIN ----------------------------------------- */

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    box-sizing: border-box;
    background-color: var(--bg-color-body);
}

aside {
    min-height: 100%;
    width: 360px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: var(--bg-color-aside);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

aside #mode {
    position: absolute;
    top: 3%;
    left: 80%;
}

aside #mode img {
    width: 20px;
    height: 20px;
    filter: var(--filter-white);
}

aside .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

aside .name {
    color: aqua;
    font-size: 24px;
    margin-bottom: 10px;
    /* color: #449667; */
}

aside a {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 20px;
    color: white;
    display: block;
    margin-top: 10px;
    cursor: pointer;
}

aside .social {
    display: flex;
    margin-top: 10px;
}

aside .social .fa {
    font-size: 24px;
}

aside a:hover,
aside .active {
    color: var(--green);
}

aside .pic {
    border-radius: 50%;
    border: 2px solid aqua;
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
}

main {
    margin-left: 360px; /* Same as the width of the sidenav */
    min-height: 80vh;
    padding: 10px 5% 20px 5%;
    background-color: white;
}

main .container {
    padding-top: 50px;
}

footer {
    margin-top: 50px;
    margin-left: 360px;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--text);
}

.active {
    display: 'block';
}

.deactive {
    display: none;
}

@media only screen and (max-width: 750px) {
    aside {
        width: 100%;
        position: absolute;
        min-height: auto;
    }

    aside .content {
        height: 500px;
    }

    /* aside .name {
        font-size: 20px;
    } */

    aside a {
        font-size: 18px;
        padding: 3px 8px 3px 16px;
    }

    aside .pic {
        width: 120px;
        height: 120px;
    }

    main {
        margin-top: 500px;
        margin-left: 0;
    }

    footer {
        margin-left: 0;
    }
}

/*? -------------------------------------- HOME ------------------------------------- */

.home {
    background-color: var(--bg-color);
}

.home .article {
    padding-bottom: 50px;
}

.home .header {
    font-family: var(--header_font), sans-serif;
    color: var(--header-color);
}

.home .header:hover {
    text-decoration: underline;
    cursor: pointer;
}

.home .info {
    color: var(--info-color);
    padding-top: 5px;
    font-size: 14px;
}

.home .info .filter {
    width: 12px;
    filter: var(--filter);
}

.home .read {
    color: var(--text);
    font-size: 20px;
    line-height: 30px;
    padding-top: 20px;
}

.home .more {
    text-decoration: none;
    color: var(--light-green);
    color: #5c9fa7;
    font-size: 16px;
}

.home .more:hover {
    text-decoration: underline;
}

.home hr {
    margin-top: 20px;
    height: 1px;
    background-color: var(--line);
    border: none;
}

.home .oldnew {
    /* border: 1px solid red; */
    display: flex;
    justify-content: space-around;
}

.home .old,
.home .new {
    border: 1px solid var(--line);
    width: 50%;
    display: flex;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    padding-top: 20px;
    padding-bottom: 20px;
    color: var(--old-new);
}

.home .old:hover,
.home .new:hover {
    text-decoration: underline;
    background-color: var(--old-new-hover);
}

.home .disable {
    pointer-events: none;
    color: var(--line);
}

/*? ------------------------------------ ABOUT ------------------------------------- */

#about {
    background-color: var(--bg-color);
}

#about .about {
    font-size: 18px;
    line-height: 36px;
    user-select: none;
    color: var(--text);
}

#about h1,
#about h2,
#about h3,
#about h4 {
    font-family: var(--header_font);
    color: var(--header-color);
    padding-bottom: 20px;
}

#about span {
    color: var(--light-green);
    font-weight: bold;
}

#about .green {
    color: var(--info-color);
}

#about a.green {
    font-style: italic;
}

#about blockquote {
    background-color: var(--bg-quote);
    color: var(--quote-color);
    /* border-radius: 5px; */
    font-style: italic;
    padding: 10px;
    font-weight: 300;
    border-left: 8px solid var(--quote-border);
}

/*? --------------------------------- BLOG ------------------------------------- */

#blog {
    background-color: var(--bg-color);
}

#blog .header {
    font-size: 25px;
    font-family: sans-serif;
    color: var(--header-color);
    border-bottom: 1px solid var(--line);
}

#blog .single-year-blogs {
    padding-top: 30px;
}

#blog .year {
    margin-top: 20px;
    font-size: 30px;
    font-weight: 600;
    color: var(--navy-blue);
    color: var(--header-color);
}

#blog .bloglist {
    padding-bottom: 20px;
    padding-left: 10px;
    border-left: 1px solid var(--light-green);
    margin-left: 20px;
}

#blog .bname {
    padding-top: 40px;
    font-size: 25px;
    color: var(--navy-blue);
    color: var(--header-color);
    cursor: pointer;
    width: fit-content;
    display: block;
    text-decoration: none;
}

#blog .bname:hover {
    text-decoration: underline;
}

#blog .info {
    padding-top: 5px;
    font-size: 14px;
    color: var(--info-color);
}

#blog .info .filter {
    width: 12px;
    filter: var(--filter);
}

/*? -------------------------------------  PROJECT --------------------------------------- */

#project {
    background-color: var(--bg-color);
}

#project .title {
    font-size: 25px;
    font-family: sans-serif;
    color: var(--navy-blue);
    color: var(--header-color);

    border-bottom: 1px solid var(--line);
}

#project .pro-wrap {
    padding-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

#project .apro {
    border-radius: 5px;
    background-color: var(--light-navy);
    background-color: var(--bg-color-pro);
    color: black;
    padding: 10px;
    margin: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

#project .apro .header {
    font-size: 20px;
    padding: 5px;
    color: var(--header-color-pro);
    font-weight: 600;
}

#project .apro .des {
    padding: 5px;
    color: var(--lightest-slate);
}

#project .apro .icon {
    padding: 5px;
}
#project .icon a {
    font-size: 25px;
    text-decoration: none;
    color: var(--lightest-slate);
}

#project .icon a:hover {
    color: var(--green);
}

#project .filter-green {
    padding-left: 10px;
    width: 20px;
    filter: invert(96%) sepia(96%) saturate(7081%) hue-rotate(178deg)
        brightness(96%) contrast(101%);
}

#project .filter-green:hover {
    width: 20px;
    filter: invert(77%) sepia(53%) saturate(394%) hue-rotate(107deg)
        brightness(102%) contrast(103%);
}

/*? --------------------------------- CONTACT -------------------------------- */

#contact {
    background-color: var(--bg-color);
}

#contact .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contact .header {
    font-size: 48px;
    font-weight: bold;
    font-family: var(--header_font);
    color: var(--header-color);
}

#contact .des {
    font-size: 20px;
    line-height: 30px;
    color: var(--text);
    padding-top: 30px;
    width: fit-content;
}

#contact input {
    width: 150px;
    height: 60px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background-color: var(--navy-blue);
    background-color: var(--bg-color-aside);
    color: white;
    font-size: 24px;
    margin-top: 50px;
}

#contact input:hover {
    color: var(--green);
}
