
/* Default mode: Dark colors and stylised fonts */
:root {

    --background: hsl(219, 13%, 11%);
    --white: white;
    --black: black;
    --green: green;
    --darkgreen: darkgreen;
    --blue: cornflowerblue;
    --dsgray: darkslategray;
    --gray: gray;
    --highlight: lightgray;
    --HLtext: black;
    --menu: black;
    --menuCur: green;
    --footerBg: darkgreen;
    --inputHL: rgba(100, 148, 237, 0.1);
    --link: cornflowerblue;
    --visitedLink: darkslategray;
    --mark: darkgreen;
    --TSymbols: darkcyan;
    --TUser: cornflowerblue;
    --TUser2: aquamarine;
    --switch: cornflowerblue;
    --switchBg: darkslategray;
    --logo: invert(100%); /* This is filter value, not a color value*/
    --logoHover: invert(63%) sepia(31%) saturate(5034%) hue-rotate(195deg) contrast(88%); /* This is filter value, not a color value*/
    --galryArr: green;
    --galryArrHover: cornflowerblue;

    --main: 'IBM Plex Mono', monospace;
    --body: 'Source Code Pro', monospace;
    --code: 'Courier New', monospace;

}

/* Switched mode: Light colors and Arial */
/* :root {

    --background: #d0d0d0;
    --white: black;
    --black: white;
    --green: black;
    --darkgreen: black;
    --blue: black;
    --dsgray: #a0a0a0;
    --gray: gray;
    --highlight: white;
    --HLtext: black;
    --menu: darkgray;
    --menuCur: black;
    --footerBg: darkgray;
    --inputHL: darkgray;
    --link: darkgray;
    --visitedLink: #404040;
    --mark: white;
    --TSymbols: black;
    --TUser: black;
    --TUser2: black;
    --switch: white;
    --switchBg: gray;
    --logo: none;
    --logoHover: none;
    --galryArr: white;
    --galryArrHover: white;

    --main: 'IBM Plex Mono', monospace;
    --body: 'Arial';
    --code: 'Arial';

}     */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    -ms-overflow-style: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background-color 0.4s ease;
}

/* Vertical Scrollbar */
body::-webkit-scrollbar, textarea::-webkit-scrollbar {
    width: 0.75vw;
}

body::-webkit-scrollbar-track, textarea::-webkit-scrollbar-track {
    box-shadow: inset 0 0 0.25vw var(--gray); 
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb {
    background: var(--green); 
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover, textarea::-webkit-scrollbar-thumb:hover {
    background: var(--blue); 
}

textarea {
    cursor: auto;
}

/* Horizontal Scrollbar */
.code::-webkit-scrollbar {
    height: 1vh;
}

.code::-webkit-scrollbar-track {
    box-shadow: inset 0 0 0.5vh var(--gray); 
    border-radius: 10px;
}

.code::-webkit-scrollbar-thumb {
    background: var(--green); 
    border-radius: 10px;
}

.code::-webkit-scrollbar-thumb:hover {
    background: var(--blue); 
}

/* Highlight */
::-moz-selection {
    color: var(--HLtext);
    background: var(--highlight);
}
::selection {
    color: var(--HLtext);
    background: var(--highlight);
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hyperlink */
a {
    color:var(--link);
}

a:visited {
    color:var(--visitedLink);
}

.is-hidden {
    display: none;
}

.doubleDown {
    animation: pulse 4s infinite;
    fill: var(--darkgreen);
    opacity: 50%;
    position: absolute;
    left: calc(50% - 20px);
    width: 40px;
    z-index: 1;
}
.doubleDown:hover {
    animation: none;
    fill: var(--blue);
    opacity: 100%;
    cursor: pointer;
}
@media screen and (max-width: 1000px) {
    .doubleDown:hover {
        animation: pulse 4s infinite;
        fill: var(--darkgreen);
        opacity: 50%;
    }
}

@keyframes pulse {
    0% {
		transform: scale(1);
        opacity: 100%;
	}

    68% {
		transform: scale(1);
        opacity: 100%;
	}

	76% {
		transform: scale(0.8);
        opacity: 50%;
	}

	84% {
		transform: scale(1);
        opacity: 100%;
	}

	92% {
		transform: scale(0.8);
        opacity: 50%;
	}

    100% {
		transform: scale(1);
        opacity: 100%;
	}
}

header {
    position: relative;
    left: 3%;
    top: 55px;
    padding-bottom: 10px;
    width: 94%;
    color: var(--green);
    text-align: center;
    font-size: 50px;
    font-family: var(--main);
}
@media screen and (max-width: 1000px) {
    header {
        font-size: 35px;
    }
}

/* Write-ups */

.titleCard {
    width: 75%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
@media screen and (max-width: 800px) {
    .titleCard {
        width: 100%;
    }
}

.blogContainer {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    padding-bottom: 30vh;
    margin-top: 20px;
}
@media screen and (max-width: 800px) {
    .blogContainer {
        left: 3%;
        transform: none;
        width: 94%;
    }
}

.blogContainer > * {
    position: relative;
    top: 30px;
}
.blogContainer > p {
    color: var(--white);
    text-align: left;
    font-size: larger;
    font-family: var(--body);
    overflow-wrap: break-word;
}
.subtitle:before {
    content: "~$ ";
    color: var(--blue);
    word-spacing: -0.25em;
    font-family: var(--main); 
    font-weight: normal;
}
.subtitle {
    font-family: var(--main);
    font-size: 24px;
    font-weight: bold;
}
@media screen and (max-width: 800px) {
    .subtitle {
        font-size: 20px;
    }
}

.terminal {
    color: var(--white);
    width: calc(100%-24px);
    border: 2px solid var(--green);
    padding: 10px;
    font-size: larger;
    overflow-wrap: break-word;
    border-radius: 10px;
    text-align: left;
    font-family: var(--code);
}

img {
    width: 100%;
}

.code {
    width: calc(100%-20px);
    color: var(--white);
    background-color: var(--dsgray);
    font-size: larger;
    padding: 10px;
    text-align: left;
    overflow: auto;
    font-family: var(--code);
}

code {
    background-color: var(--dsgray);
    padding: 2px;
    font-weight: normal;
}

mark {
    background-color: var(--mark);
    color: var(--white);
}

.snip {
    display: flex;
    flex-basis: 100%;
    align-items: center;
    color: var(--gray);
    margin: 10px 0px;
}
.snip:before,
.snip:after {
    content: "";
    flex-grow: 1;
    background: var(--gray);
    height: 2px;
    font-size: 0px;
    line-height: 0px;
    margin: 0px 8px;
}

/* Projects Pages */

.projPageDesc {
    position: relative;
    margin-top: 75px;
    margin-bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: fit-content;
    color: var(--white);
    text-align: left;
    font-size: 22px;
    font-family: var(--body);
}
@media screen and (max-width: 1000px) {
    .projPageDesc {
        font-size: 20px;
    }
}
@media screen and (max-width: 700px) {
    .projPageDesc {
        width: 94%;
    }
}

.project {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    border-radius: 20px;
    font-family: var(--main);
    font-size: 20px;
    width: 1200px;
    margin-top: 40px;
}
@media screen and (max-width: 1200px) {
    .project {
        left: 3%;
        width: 94%;
        transform: none;
        font-size: 16px;
    }
}
.project::after {
    color: var(--green);
    content: "}";
    font-family: var(--body);
    font-size: 36px;
    font-weight: bold;
}

.title {
    color: var(--green);
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    word-break: break-all;
}
@media screen and (max-width: 1200px) {
    .title {
        font-size: 28px;
    }
    .project::after {
        font-size: 28px;
    }
}
.brace {
    content: "{";
    font-family: "Source Code Pro", monospace;
}
.title::after {
    content: "...";
    font-family: "Source Code Pro", monospace;
    color: var(--dsgray);
}
.hideEllipsis::after {
    content: "";
}

.tags::before {
    content: "Tags: ";
    font-weight: bold;
}

.contributors::before {
    content: "Contributors: ";
    font-weight: bold;
}

.tags, .contributors, .description {
    position: relative;
    left: 15%;
    width: 800px;
    padding: 15px 0;
}

.contributors {
    padding-top: 0;
}

.description {
    font-family: var(--body);
    padding-bottom: 20px;
}

.image {
    position: relative;
    left: 15%;
    width: 85%;
    height: 500px;
    object-fit: contain;
    background-color: black;
}
@media screen and (max-width: 1200px) {
    .image {
        height: 35vh;
    }
}

.indent1 {
    max-height: 0;
    overflow: hidden;
    margin-left: 3px;
    border-left: solid 3px var(--dsgray);
    transition: max-height 0.2s linear;
}

.indent1:hover {
    border-left: solid 3px var(--blue);
}
@media screen and (max-width: 1000px) {
    .indent1:hover {
        border-left: solid 3px var(--dsgray);
    }
}

.indent2 {
    height: fit-content;
    position: relative;
    left: 15%;
    width: 85%;
    margin-left: 3px;
    border-left: solid 3px var(--dsgray);
}

.indent2:hover {
    border-left: solid 3px var(--blue);
}

.indent1:has(.indent2:hover) {
    border-left: solid 3px var(--dsgray);
}
@media screen and (max-width: 1000px) {
    .tags, .contributors, .description, .image{
        left: 7%;
        width: 93%;
    }
}
@media screen and (max-width: 1200px) {
    .indent2 {
        height: fit-content;
        position: relative;
        left: 0%;
        width: 100%;
        margin-left: 3px;
        border-left: none;
    }
    .indent2:hover {
        border-left: none;
    }
}

.button {
    position: relative;
    left: 15%;
    padding: 4px;
    font-size: 20px;
    font-family: var(--main); 
    font-weight: bold;
    cursor: pointer;
    color: var(--darkgreen) !important;
    background-color: var(--background);
    border: solid;
    border-color: var(--darkgreen);
    text-decoration: none;
}
@media screen and (max-width: 1000px) {
    .button {
        left: 7%;
        font-size: 16px;
    }
}

.button:hover {
    color: var(--black) !important;
    background-color: var(--blue);
    border-color: var(--blue);
}
@media screen and (max-width: 1000px) {
    .button:hover {
        color: var(--darkgreen) !important;
        background-color: var(--background);
        border-color: var(--darkgreen);
    }
}

.prevButton, .nextButton {
    fill: var(--galryArr);
    opacity: 50%;
    position: absolute;
    width: 50px;
    z-index: 1;
}
.prevButton:hover, .nextButton:hover {
    animation: none;
    opacity: 100%;
    fill: var(--galryArrHover);
    cursor: pointer;
}
@media screen and (max-width: 1000px) {
    .prevButton:hover, .nextButton:hover {
        fill: var(--galryArr);
    }
}

.prevButton {
    top: 50%;
    left: 18%;
    transform: translate(-50%,-50%) rotate(90deg);
}
.nextButton {
    top: 50%;
    left: 97%;
    transform: translate(-50%,-75%) rotate(-90deg);
}
@media screen and (max-width: 1000px) {
    .prevButton {
        left: 10%;
        width: 6%;
    }
    .nextButton {
        left: 97%;
        width: 6%;
    }
}
@media screen and (max-width: 650px) {
    .prevButton {
        left: 11%;
        width: 8%;
    }
    .nextButton {
        left: 96%;
        width: 8%;
    }
}

/* Made with plain old HTML, PHP, CSS and JS. COPYRIGHT © 2023 Vincent Luu */