*, *::after, *::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    user-select: none;
    cursor: default;
}

@font-face {
    font-family: agave;
    src: url('./../../public/fonts/Agave-Regular.ttf'); 
}

@font-face {
    font-family: agave-bold;
    src: url('./../../public/fonts/Agave-Bold.ttf'); 
    font-weight: bold;
}

.theme-landscape {
    --normal-text: #111;
    --title-text: #111;
    --normal-text-light: #ffffff;
    --bold-text: #0a0a0a;
    --gray-text: rgb(43, 42, 42);
   
    --taskbar-bg: #f99ea3;
    --taskbar-border: #743337; 

    --menuButton-bg: #fca7ac;
    --menuButton-border-top: #b76e73;
    --menuButton-border-bottom: #743337;
    --menu-hover: #fd787e;
    
    --window-body-color: #f5c9cb;
    --title-bar-color: #664fc6;
    --window-border-color: #060c1b;
    --window-shadow-color: #111111;

    --scrollbar-track-color: #f7a5a9;
    --scrollbar-thumb-color: #f4858a;

    --app-title-bg-transluscent: rgba(0, 0, 0, 0.2);

    --link-color: #fa8187;
    --input-bg-color: #f3babc;

    --card-bg-color: #f4b9bc;
    --card-tagline-color: #ed5b63;
    --card-desc-color: #ed9ca0;
}

.theme-factory {
    --normal-text: #111;
    --title-text: #111;
    --normal-text-light: #ffffff;
    --bold-text: #0a0a0a;
    --gray-text: rgb(43, 42, 42);

    --taskbar-bg: #7B95B5;
    --taskbar-border: #3D4F5F;

    --menuButton-bg: #8BA6C0;
    --menuButton-border-top: #5E6F7F;
    --menuButton-border-bottom: #3D4F5F;
    --menu-hover: #9BB4CC;

    --window-body-color: #A6B9D0;
    --title-bar-color: #664fc6;
    --window-border-color: #060c1b;
    --window-shadow-color: #111111;

    --scrollbar-track-color: #8BA6C0;
    --scrollbar-thumb-color: #7B95B5;

    --app-title-bg-transluscent: rgba(0, 0, 0, 0.2);

    --link-color: #fa8187;
    --input-bg-color: #9bb4cc;

    --card-bg-color: #8aaad0;
    --card-tagline-color: #1973e1;
    --card-desc-color: #b6ceef;
}

.theme-nightBridge {
    --normal-text: #111;
    --title-text: #eee;
    --normal-text-light: #ffffff;
    --bold-text: #0a0a0a;
    --gray-text: rgb(43, 42, 42);

    --taskbar-bg: #08739D;
    --taskbar-border: #0A3D4F;

    --menuButton-bg: #1494AC;
    --menuButton-border-top: #226983;
    --menuButton-border-bottom: #052834;
    --menu-hover: #1494AC;

    --window-body-color: #096c9e;
    --title-bar-color: #151345;
    --window-border-color: #060c1b;
    --window-shadow-color: #111111;

    --scrollbar-track-color: #16a0be;
    --scrollbar-thumb-color: #08739D;

    --app-title-bg-transluscent: rgba(0, 0, 0, 0.2);

    --link-color: #f6999d;
    --input-bg-color: #1289a3;
    
    --card-bg-color: #3189b5;
    --card-tagline-color: #00d5ff;
    --card-desc-color: #82b3f8;
}

.theme-retronator {
    --normal-text: #111;
    --title-text: #111;
    --normal-text-light: #ffffff;
    --bold-text: #0a0a0a;
    --gray-text: rgb(43, 42, 42);

    --taskbar-bg: #A15a49;
    --taskbar-border: #5f3b2c;

    --menuButton-bg: #b36f4f;
    --menuButton-border-top: #7a4f3a;
    --menuButton-border-bottom: #5f3b2c;
    --menu-hover: #c37a54;

    --window-body-color: #db9169;
    --title-bar-color: #994544;
    --window-border-color: #060c1b;
    --window-shadow-color: #111111;

    --scrollbar-track-color: #c37a54;
    --scrollbar-thumb-color: #a3624a;

    --app-title-bg-transluscent: rgba(0, 0, 0, 0.2);

    --link-color: #457138;
    --input-bg-color: #b36f4f;

    --card-bg-color: #b36f4f;
    --card-tagline-color: #ffeec9;
    --card-desc-color: #4d874e;
}

html {
    font-size: 62.5%;
    background-color: #000;
}

body {
    min-height: 100vh;
    width: 100%;
    background-image: url("./../../public/assets/wallpapers/landscape.gif");
    background-repeat: no-repeat;
    background-size: cover;
    font-family: agave, monospace;
    position: relative;
    overflow: hidden;
}

#root {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    padding: 50px 10px;
}

::-webkit-scrollbar {
    width: 1.5rem;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track-color);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-color);
}



/* !------------------------- UNIVERSAL STYLES ------------------------- */

hr {
    background-color: var(--scrollbar-thumb-color);
    border-color: var(--scrollbar-thumb-color);
    height: 0px;
    outline: none;
    border-bottom: none;
}

a {
    color: var(--link-color);
    cursor: pointer;
}

ul {
    list-style-type: square;
}

li {
    line-height: 1.1;
    font-size: 1.6rem;
}

form {
    padding: 20px 0 0 0;
}

label {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 0 0 4px 0;
}

input, textarea {
    font-size: 1.4rem;
    padding: 0.5rem;
    width: 100%;
    border: 2px solid var(--menuButton-border-top);
    border-bottom: 2px solid var(--menuButton-border-bottom);
    border-right: 2px solid var(--menuButton-border-bottom);
    background-color: var(--input-bg-color);
    border: 1px sol;
    outline: transparent;
    font-family: agave, monospace;
}

input:focus, textarea:focus {
    border: 2px solid var(--menuButton-border-bottom);
    border-bottom: 2px solid var(--menuButton-border-top);
    border-right: 2px solid var(--menuButton-border-top);
}

p {
    font-size: 1.6rem;
    padding: 10px 0 0 0;
    text-align: justify;
    line-height: 1.1;
}

img {
    max-width: 200px;
    max-height: 200px;
}

/* !------------------------- UTILITY CLASSES -------------------------- */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-center-column {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.primary-button {
    outline: transparent;
    background-color: var(--menuButton-bg);
    border: 2px solid var(--menuButton-border-top);
    border-bottom: 2px solid var(--menuButton-border-bottom);
    border-right: 2px solid var(--menuButton-border-bottom);
    font-size: 1.7rem;
    font-family: agave-bold, monospace;
    padding: 5px 15px;
    cursor: pointer;
}

.primary-button:focus {
    border: 2px solid var(--menuButton-border-bottom);
    border-bottom: 2px solid var(--menuButton-border-top);
    border-right: 2px solid var(--menuButton-border-top);
}

.fw-bold {
    font-family: agave-bold, monospace;
}

.hr-block {
    display: block;
}

/* !-------------------------------------------------------------------- */

#taskbar {
    height: 35px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: var(--taskbar-bg);
    font-family: agave, monospace;
    border-bottom: 2px solid var(--taskbar-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
    box-shadow: 0 0 5px var(--window-shadow-color);
}

#buttonContainer, #batteryTimeContainer {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.breathe {
    animation: breathe 500ms linear infinite alternate;
}

@keyframes breathe {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#taskbarButtonsContainer {
    width: 100%;
    margin-left: 7px;
}

.taskbar-btn {
    min-width: 150px;
    width: fit-content;
    height: 100%;
    font-size: 1.5rem;
    text-align: left;
    margin-left: 3px;
    font-family: agave, monospace;
    padding-left: 5px;
    background-color: var(--menuButton-bg);
    border: 2px solid var(--menuButton-border-top);
    border-bottom: 2px solid var(--menuButton-border-bottom);
    border-right: 2px solid var(--menuButton-border-bottom);
}

#menuButton {
    height: 91%;
    padding: 0 15px;
    background-color: var(--menuButton-bg);
    border: 2px solid var(--menuButton-border-top);
    border-bottom: 2px solid var(--menuButton-border-bottom);
    border-right: 2px solid var(--menuButton-border-bottom);
    font-size: 1.7rem;
    font-family: agave-bold, monospace;
    cursor: pointer;
    pointer-events: all;
}

#menuButton.active, .taskbar-btn.active {
    border: 2px solid var(--menuButton-border-bottom);
    border-bottom: 2px solid var(--menuButton-border-top);
    border-right: 2px solid var(--menuButton-border-top);
    font-family: agave-bold, monospace;
}

#menu {
    position: absolute;
    top: 35px;
    left: 0;
    width: 280px;
    z-index: 100;
    height: fit-content;
    background-color: var(--taskbar-bg);
    display: none;
    border: 2px solid var(--menuButton-border-top);
    border-bottom: 2px solid var(--menuButton-border-bottom);
    border-right: 2px solid var(--menuButton-border-bottom);
}

#menu li, #context-menu li {
    padding: 10px;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--menuButton-border-bottom);
    list-style: none;
}

#menu li:last-child, #context-menu li:last-child {
    border-bottom: none;
}

#menu li:hover, #context-menu li:hover {
    background-color: var(--menu-hover);
}

#batteryElement {
    font-size: 2rem;
    font-weight: lighter;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-right: 15px;
}

#batteryIcon {
    height: 22px;
}

#batteryPerc {
    font-size: 1.6rem;
    padding-left: 5px;
}

#charging {
    height: 15px;
    padding-right: 2px;
}

#timeElement {
    font-size: 1.5rem;
    background-color: var(--menuButton-bg);
    padding: 0 10px;
    border: 2px solid var(--menuButton-border-top);
    border-bottom: 2px solid var(--menuButton-border-bottom);
    border-right: 2px solid var(--menuButton-border-bottom);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 91%;
}

#ampm {
    margin-left: 5px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    pointer-events: all;
}

.window {
    position: fixed;
    background-color: var(--window-body-color);
    color: var(--taskbar-bg);
    box-shadow: 5px 5px 0px var(--window-shadow-color);
    display: block;
    height: 100%;
}

.window-title {
    position: absolute;
    z-index: 4;
    background-color: var(--title-bar-color);
    border: 2px solid var(--window-border-color);
    top: 0px;
    left: 0px;
    width: 100%;
    height: 25px;
    font-size: 1.6rem;
    color: var(--title-text);
}

.window-body {
    height: 100%;
    width: 100%;
    border: 2px solid var(--window-border-color);
    border-top: 0;
    color: var(--normal-text);
    font-size: 1.8rem;
    padding: 40px 40px 20px 40px;
    overflow-y: scroll;
}

.alert-body {
    margin-top: 30px;
    width: 100%;
    border-top: 1px solid var(--scrollbar-thumb-color);
}

.alert-body > button {
    margin-top: 20px;
}

.close-btn {
    height: 18px;
    width: auto;
    position: inherit;
    right: 5px;
}

.theme-nightBridge .close-btn {
    filter: invert(100%);
}

.desktop-app {
    padding: 10px;
    display: flex;
    flex-direction: column;
    margin: 10px;
}

.desktop-app:hover {
    background-color: var(--app-title-bg-transluscent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.app-icon {
    object-fit: cover;
    height: 55%;
    width: 55%;
}

#iconDrawer {
    flex-wrap: wrap;
    width: fit-content;
}

.app-title {
    font-size: 1.4rem;
    color: var(--normal-text-light);
    background-color: var(--app-title-bg-transluscent);
    padding: 4px;
    margin-top: 20px;
    line-height: 1;
}

.contact-list {
    padding: 10px 0 0 10px;
    font-size: 1.7rem;
    color: var(--title-text);
}

.form-group {
    padding-bottom: 15px;
}

.form-error {
    display: none;
    font-size: 14px;
    padding: 8px;
    background-color: #EC7063;
    margin-bottom: 10px;
}

/* !------------------- ABOUT ---------------------- */

.about-container > hr {
    margin-top: 30px;
}

.about-img {
    margin-bottom: 10px;
}

.about-img > img {
    outline: 2px solid var(--normal-text);
}

.about-tech {
    margin-top: 20px;
}

.about-tech-list-1, .about-tech-list-2 {
    float: left;
    margin: 10px 20px 0 30px;
}

.about-focus > p {
    line-height: 1.1;
}

.about-tech-list-buffer {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 20px;
    flex-wrap: wrap;
}

footer {
    background-color: var(--title-bar-color);
    color: var(--normal-text-light);
    font-size: 1.4rem;
    margin-top: 20px;
    width: 100%;
    right: 0;
    left: 0;
    position: absolute;
    padding: 2px 0; 
}

.heart-img {
    height: 20px;
    width: auto;
    margin: 0 5px;
}
/* !------------------- PROJECTS ---------------------- */

.project-container {
    background-color: var(--card-bg-color);
    padding: 10px;
    /* position: relative; */
    margin-bottom: 20px;
}

.project-container:nth-of-type(even) {
    flex-direction: row-reverse;
}

.project-container:nth-last-of-type(even) > .project-content {
    margin-left: 0;
    margin-right: 20px;
    text-align: right;
}

.project-container:nth-last-of-type(even) > .project-content > .project-btn-container > .project-tags {
    justify-content: flex-end;
}

.project-img-buffer {
    flex: 1;
    max-height: 250px;
    max-width: 250px;
    height: 250px;
    width: 250px;
}

.project-img-buffer > img {
    max-height: 250px;
    max-width: 250px;
}

.project-content {
    margin-left: 20px;
    flex: 3;
    height: 250px;
}

.project-tagline {
    font-size: 1.5rem;
    color: var(--card-tagline-color);
}

.project-heading {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--normal-text);
}

.project-tags {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
}

.project-desc {
    min-height: 125px;
    max-height: 125px;
    height: fit-content;
    text-align: justify;
    font-size: 1.6rem;
    padding-top: 5px;
    color: var(--gray-text);
}

.tag {
    font-size: 1.4rem;
    padding: 5px 10px;
    margin-right: 10px;
    border: 1px solid var(--normal-text);
    background-color: var(--card-desc-color);
}

.hyperlink, .hyperlink > img{
    height: 25px;
    width: 25px;
    margin-right: 5px;
}

/* !-------------------------- SETTINGS ------------------------- */

.notice {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 1px; */
    background-color: var(--card-desc-color);
}

.notice-img {
    height: 80px;
    width: auto;
    /* animation: upDown 3s step-end infinite; */
}

@keyframes upDown {
    0% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-4px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(4px);
    }
    100% {
        transform: translateY(0);
    }
}

.wallpaper-container {
    margin: 40px 0;
}

.settings-container label, .settings-container input {
    padding: 0;
    margin: 0;
    display: inline-block;
}

.wallpaper-container input[type="radio"] {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    padding: 0;
}

.wallpaper-container input[type="radio"]:focus + label{
    outline: 2px solid var(--title-text);
    padding: 0;
    height: 100%;
}

.wallpaper-container input[type="radio"]:checked + label {
    outline: 2px solid var(--title-text);
    padding: 0;
    height: 100%;
}

.wallpaper-img-buffer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr) );
    gap: 10px;
}

.wallpaper-img {
    aspect-ratio: 16 / 9;
    height: 100%;
}

.settings-container h4 {
    margin-bottom: 20px;
    font-weight: normal;
    font-family: agave-bold, monospace;
}

.input-buffer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.audio-buffer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.audio-buffer h4 {
    margin: 0 20px 0 0;
}

.audio-buffer .input-buffer input {
    display: inline;
    position: fixed;
    opacity: 0;
    pointer-events: none;
}

.audio-buffer .input-buffer label {
    font-size: 1.5rem;
    font-weight: normal;
    padding: 5px 15px;
    border: 2px solid var(--normal-text);
    margin-right: 10px;
}

.audio-buffer .input-buffer input:checked + label {
    background-color: var(--card-desc-color);
}


.settings-container hr {
    margin: 40px 0 10px 0;
}

/* !-------------------------- CREDITS ------------------------- */

.credits-container {
    height: fit-content;
    width: 100%;
    padding: 20px 30px;
}

.list-item {
    line-height: 1.5;
}

#Credits > .window-body {
    padding: 0px;
}

.banner-buffer {
    width: 100%;
    height: 100px;
}

.banner-img {
    height: 100%;
    width: 100%;
    background-image: url('./../../public/assets/art-credits-2.webp');
    background-size: contain;
}

/* !------------------------- IFRAME ---------------------------------- */

.frame-body {
    background: url("./../../public/assets/loader.gif") center center no-repeat;
    background-size: 60px;
    height: 100%;
    width: 100%;
}

.download-resume-container {
    position: absolute;
    top: 3rem;
    left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-resume-link {
    padding: 5px 15px;
    background-color: var(--menuButton-bg);
    border: 2px solid var(--menuButton-border-top);
    border-bottom: 2px solid var(--menuButton-border-bottom);
    border-right: 2px solid var(--menuButton-border-bottom);
    font-size: 1.25rem;
    font-family: agave-bold, monospace;
    cursor: pointer;
    pointer-events: all;
    color: var(--normal-text-dark);
    text-decoration: none;
}



/* !------------------------- CONTEXT MENU -----------------------------*/

#context-menu {
    position: absolute;
    background-color: var(--taskbar-bg);
    border: 2px solid var(--menuButton-border-top);
    border-bottom: 2px solid var(--menuButton-border-bottom);
    border-right: 2px solid var(--menuButton-border-bottom);
}

/* !------------------------- MEDIA QUERIES --------------------------- */

@media screen and (max-width: 550px), screen and (orientation: portrait) {
    .audio-buffer {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 1000px), screen and (orientation: portrait) {
    .project-container {
        flex-direction: column !important;
        height: fit-content !important;
    }

    .project-img-buffer {
        margin-bottom: 20px !important;
        max-width: 150px;
        max-height: 150px;
    }

    .project-img-buffer > img {
        height: 150px;
        width: 150px;
    }

    .project-desc {
        min-height: 125px !important;
        max-height: fit-content !important;
        height: fit-content !important;
    }

    .project-tags {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 1200px), screen and (orientation: portrait) {
    .window {
        min-width: 92vw !important;
        max-width: 97vw !important;
        max-height: 75vh !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    #menu {
        min-width: 70vw !important;
        max-width: 80vw !important;
    }

    .taskbar-btn {
        display: none !important;
    }
}

@media screen and (max-height: 750px) {
    #root {
        flex-wrap: wrap;
    }
}



