
/* Load fonts */
@font-face {
    font-family: 'tahoma';
    src: url('./ass/tahoma.ttf');
}
html {
    font-size: 70%;
}

/* Variables */
:root {
    --color-bg: #c0c0c0;
    --color-txt: #111011;
    --color-fg: #ececec;
    --color-bg-window: #00007f;
}

/* Root elements */
body {
    font-family: tahoma;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
}
/*cursor: url('./ass/cur.png') 10 10, auto;*/

h1, h2 {
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 2rem;
}
p {
    font-size: 1.7rem;
    margin: 0;
    margin-top: 0.1rem;
}
a {
    font-size: 1.5rem;
    margin: 0;
    margin-top: 0.1rem;
}
input {
    font-family: 'tahoma';
}
button {
    margin: 0;
    padding: 0.1rem;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    margin-left: auto;
    margin-right: 0.4rem;
    border: 2px outset var(--color-fg);
    font-family: 'tahoma';
    font-size: 0.6rem;
    text-align: center;
    aspect-ratio: 1/1;
    background-color: var(--color-bg);
    cursor: pointer;
    outline: none;
}

/* General elements */
.pages {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}
.window-action {
    width: 100%;
    height: 1.7rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 0px var(--color-fg) solid;
    border-bottom-width: 3px;
    background-color: var(--color-bg-window);
    color: var(--color-fg);
    overflow: hidden;
}
.window-action p {
    margin: 0;
    margin-left: 0.3rem;
    font-size: 1.2rem;
}
.page-ad {
    width: 80%;
    aspect-ratio: 9/2;
    border-top-width: 0px;
    margin-top: 1rem;
    overflow: hidden;
    user-select: none;
}
.page-banner {
    width: 80%;
    aspect-ratio: 9/3;
    border-top-width: 0px;
    overflow: hidden;
    user-select: none;
}
.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.page-container {
    width: 80%;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    padding: 1.5rem;
}
.smol-header {
    margin-top: 0.3rem;
    font-size: 1.2rem;
    text-align: center;
}
.part-1 {
    gap: 1rem;
}
.part-2 {
    width: auto;
    justify-content: center;
    padding-left: 3rem;
    padding-bottom: 3rem;
}
.square-image {
    display: flex;
    width: 20rem;
    aspect-ratio: 1 / 1;
    border: 5px outset var(--color-fg);
    background-color: transparent;
}
.square-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.separator-inset {
    width: 90%;
    height: 2px;
    border: 5px inset var(--color-bg);
    background-color: var(--color-fg);
}

.sentiment-1 {
    font-size: 1.4rem;
    border: 5px inset var(--color-fg);
    padding: 1rem;
}
.sentiment-0 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.window-page {
    width: 80%;
    border-top-width: 0px;
    overflow: hidden;
    user-select: none;
}

.footer-end {
    width: 100%;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
    color: var(--color-fg);
    background-color: var(--color-bg-window);
}

.navbar {
    position: fixed;
    width: 100%;
    display: flex;
    gap: 0.3rem;
    margin-top: 3.8rem;
    flex-direction: row;
    justify-content: right;
    justify-content: center;
    box-sizing: border-box; 
}
.navbar button {
    width: 8rem;
    height: 2rem;
    margin: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.2rem;
    padding-bottom: 1.8rem;
    font-size: 1.2rem;
}
.navbar button:hover {
    color: blue;
}

.in-text-action {
    display: inline-block;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}
.in-text-action .desc {
    display: none;
    position: absolute;
    background-color: grey;
    border: 5px outset var(--color-fg);
    padding: 0.5rem;
    color: var(--color-fg);
    background-color: var(--color-bg-window);
}
.in-text-action .desc .title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    text-decoration: yellow underline;
}
.in-text-action .desc .text {
    font-size: 1.2rem;
}
.in-text-action:hover .desc {
    display: inline-block;
}

.project-cards-contain {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    place-items: center;
    gap: 2rem;
}
.project-card {
    width: 20rem;
    height: 40rem;
    display: flex;
    flex-direction: column;
    background-color: var(--color-fg);
    border: 10px outset var(--color-fg);
    user-select: none;
    box-sizing: border-box;
    padding: 10px;
    cursor: help;
}
.project-card:hover {
    border-width: 0px;
}
.project-card .card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--color-bg-window);
}
.project-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.project-card .card-title {
    display: inline-block;
    font-size: 1.4rem;
}
.project-card .card-desc {
    margin-top: 0.5rem;
    font-size: 1.2rem;
}
.project-card .card-details {
    padding: 0.6rem;
}
.project-card .card-tags {
    display: block;
    margin-top: 0.5rem;
}
.project-card .card-tags p {
    display: inline-block;
    margin-top: 0.3rem;
    margin-left: 0.3rem;
    font-size: 1rem;
    padding: 0.2rem;
    background-color: yellow;
    border: 1px solid var(--color-txt);
}
.project-card .proj-link {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    margin-top: 2rem;
}
.project-card .proj-link a {
    font-size: 2rem;
    color: green;
}

.socials-contain {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.socials-contain .social {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    border: 0px solid var(--color-fg);
    border-top-width: 4px;
}
.socials-contain .social a {
    color: blue;
    font-size: 2.4rem;
    padding: 1rem;
}
.socials-contain .social .social-img {
    width: 3rem;
    aspect-ratio: 1 / 1;
    margin-left: 1rem;
    border: 2px solid blue;
    background-color: var(--color-bg-window);
    overflow: hidden;
}
.socials-contain .social .social-img img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}


/* ID's */
#errorLogEl {
    color: red;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    margin-left: 1rem;
}

#myProfile {
    cursor: pointer;
}

#pageView {
    justify-self: center;
    max-width: 1040px;
}

.nav-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nav-contain {
    width: 80%;
    margin-left: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-self: center;
}
.nav-contain p {
    margin-right: 0.2rem;
}
#pageUrlInput {
    width: 80%;
    flex: 1;
    font-size: 1.2rem;
    outline: none;
    border: 5px groove var(--color-bg);
    background-color: var(--color-fg);
    box-sizing: border-box;
}
.nav-contain button {
    font-size: 1.1rem;
}
#searchBtn {
    width: 4rem;
    height: 2.5rem;
    margin-right: auto;
    flex-shrink: 0;
} 

.page-view-contain {
    display: flex;
    flex-direction: column;
    align-items: center;
}
