@import "xp.css";

:root {
    --text-xs: .75rem;
    --text-sm: .875rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --bold: 600;
    --white: white;
    --black: black;
    --grey: grey;
    --lightgrey: #dfdfdf;
    --darkgrey: darkgrey;
    --icon-color: #4c505d;
    --windows-xp-bg: url('../img/windows_xp_bg.jpg');
}

html {
    height: 100%;
    padding: 0;
    margin: 0;
}

/* Desktop appearance stuff */
body {
    font-size: var(--text-lg);
	position: absolute;
	padding: 0;
    margin: 0;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
    overflow: hidden;
    background-image: var(--windows-xp-bg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

p, h1, h2, h3, h4, h5, span, ul, ol, a {
    margin: 0.25rem 0;
}

li {
    margin: 0.40rem 0;
}

span:hover {
    cursor: default;
}

p, span, ul, li, ol, a {
    font-size: inherit;
    font-weight: 200;
}

a {
    color: var(--icon-color);
    font-weight: var(--bold);
}

ul, ol {
    padding-bottom: 0.2em;
}

blockquote {
    border-left: solid 4px var(--lightgrey);
    padding-top: 0.5em;
    padding-left: 1em;
    padding-bottom: 0.2em;
    margin-top: 0.3em;
    margin-left: 0;
}

.text-xs {
    font-size: var(--text-xs);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-md {
    font-size: var(--text-md);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

.text-2xl {
    font-size: var(--text-2xl);
}

.bold {
    font-weight: var(--bold);
}

.grey {
    color: var(--grey);
}

.nowrap {
    white-space: nowrap;
}

.icon-buttons {
    margin-top: 30px;
}

i {
	color: var(--icon-color);
	padding: 2px;
    font-size: 4em;
}

.icon-button {
    background-color: var(--white);
    border-radius: 15px;
    border-color: var(--black);
    box-shadow: 0px 3px 3px var(--grey);
    width: 80px;
    height: auto;
    padding: 10px;
    font-size: var(--text-md);
    color: var(--icon-color);
    margin: 15px;
    transition: 0.25s;
}

.project-button {
    width: fit-content;
}


.icon-button:hover {
    transform: scale(1.05);
}

.icon-button:active {
    transform: scale(0.90);
}

.icon-link, .icon-link:hover, .icon-link:active, .icon-line:visited {
    text-decoration: none;
    outline: none !important;
}

.icon-color {
	color: var(--icon-color);
}

.circle-img {
    height: 225px;
    border-radius: 50%;
    margin: 20px;
    box-shadow: 0px 0px 5px var(--darkgrey);
}

/* Project Cards */
.label {
    display: inline-block;
    text-align: center;
    line-height: 1;
    padding: 3px 8px;
    margin: 2px 0px;
    border-radius: 10px;
    color: var(--white);
    background-color: var(--grey);
    font-weight: 550;
    box-shadow: 0px 3px var(--darkgrey);
}

.label:hover {
	transform: translateY(1px);
	box-shadow: 0px 2px var(--darkgrey);
	transition: 0.04s;
    cursor: default;
}

.tag {
    display: inline-block;
    text-align: center;
    line-height: 1;
    padding: 8px 8px;
    margin: 4px 0px;
    border-radius: 4px;
    color: var(--black);
    background-color: var(--white);
    border-style: solid;
    border-color: var(--lightgrey);
    border-width: 0.01px;
    box-shadow: 0px 3px var(--lightgrey);
}

.tag:hover {
    transform: translateY(2px);
    transition: 0.15s;
    cursor: default;
}

.card {
    height: auto;
    border-radius: 20px;
    margin-bottom: 20px;
}

.card-title {
}

.card-body {
    padding-left: 14px;
    width: 100%;
}

.card-img {
    height: 200px;
    margin: 0px;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 1/1;
    box-shadow: 0px 0px 5px var(--darkgrey);
}
    
.card-text {
}

/* Windows */
.draggable {
    padding-left: 0;
    margin-left: 0;
    position: absolute;
    display: none;
}

.window {
    font-size: var(--text-lg);
    height: clamp(30vh, 590px, 90vh);
    width: clamp(40vw, 950px, 90vw);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.window-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1 1 100%
}

.title-bar {
	height: 40px;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.title-bar-text {
	padding-left: 7px;
	font-size: 22px;
}

#main-window {
    height: clamp(30vh, 600px, 90vh);
    width: clamp(40vw, 800px, 90vw);
}

#contact-window {
    height: clamp(200px, 300px, 90vh);
    width: clamp(40vw, 600px, 90vw);
}

#animations-window {
    height: clamp(30vh, 650px, 90vh);
    width: clamp(40vw, 1000px, 90vw);
}

.youtube {
	width: 425px;
    aspect-ratio: 1.777/1;
	margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0px 1px 6px var(--grey);
}

/* Formatting */
.row {
    display: flex;
    flex-direction: row;
}

.col {
    display: flex;
    flex-direction: column;
}

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

.start {
    justify-content: flex-start;
}

.center {
    justify-content: center;
}

.end {
    justify-content: flex-end;
}

.even {
    justify-content: space-evenly;
}

.between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.align-stretch {
    align-items: stretch;
}

.align-start {
    align-items: start;
}

.align-end {
    align-items: end;
}

.noselect {
    cursor: default;
}

/* Project Site */

#project-window {
    height: clamp(30vh, 700px, 90vh);
    width: clamp(40vw, 1100px, 90vw);
}

.project-img {
    border-radius: 15px;
    aspect-ratio: 3/2;
    object-fit: cover;
    box-shadow: 0px 2px 6px var(--grey);
    height: 250px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .row {
        flex-direction: column;
        align-items: center;
    }

    .card {
        text-align: center;
    }

    .icon-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .window {
        height: 80vh;
        width: 100vw;
    }

    #main-window {
        height: 90vh;
        width: 95vw;
    }

    #project-window {
        height: 80vh;
        width: 100vw
    }

    .project-img {
	width: 70vw;
    }

    #contact-window {
    	height: 50vh;
        width: 100vw;
    }

    #animations-window {
        height: 80vh;
        width: 100vw;
    }

    .youtube {
        width: 70vw;
    }

    i {
        font-size: 3em;
    }
}
