/* ======================================================================= */
/* Root Variables for Light & Dark Modes */
:root {
    --font-bold: 'UbuntuBold', sans-serif;
    --font-regular: 'UbuntuRegular', sans-serif;
    --primary-color-light: #333;
    --background-color-light: #ffffff;
    --accent-color-light: #e42f7a;
    --primary-color-dark: #e0e0e0;
    --background-color-dark: #121212;
    --accent-color-dark: #e42f7a;
	--accent-color-alt: #4444ff;
	--accent-color-dark-grey: #444;
	--accent-color-light-grey: #ccc;
	
	--highlight-color-warning-dark: #800020;
	--highlight-color-warning-light: #FFC0CB;
	
	/* New Scerno themed colors: */
	--theme-palette-color-1: rgb(128, 128, 128);
    --theme-palette-color-2: #efb9d1;
    --theme-palette-color-3: #e42f7a;
    --theme-palette-color-4: #e42f7a;
    --theme-palette-color-5: #840037;
    --theme-palette-color-6: #282828;
    --theme-palette-color-7: #030303;
    --theme-palette-color-8: #282828;
}

/* Font Definitions */
@font-face {
    font-family: 'BRLNSB';
    src: url('/assets/BRLNSB.TTF') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'BRLNSR';
    src: url('/assets/BRLNSR.TTF') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'UbuntuLight';
    src: url('/assets/ubuntu/ubuntu--v20-normal-400.woff2') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'UbuntuRegular';
    src: url('/assets/ubuntu/ubuntu--v20-normal-500.woff2') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'UbuntuBold';
    src: url('/assets/ubuntu/ubuntu--v20-normal-700.woff2') format('truetype');
    font-weight: normal;
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ======================================================================= */
/* Body Styling */
body {
    font-family: var(--font-regular);
    background-color: var(--background-color-dark);
    color: var(--primary-color-dark);
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Light/Dark Mode Toggle */
.light-mode {
    --primary-color-dark: var(--primary-color-light);
    --background-color-dark: var(--background-color-light);
    --accent-color-dark: var(--accent-color-light);
	--accent-color-dark-grey: var(--accent-color-light-grey);
	--highlight-color-warning-dark: var(--highlight-color-warning-light);
}

/* ======================================================================= */
/* Header Styling */
.header-bar {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--background-color-dark);
}

.header-title {
    font-family: var(--font-bold);
    font-size: 1.5rem;
}

.help-icon,
.day-night-toggle,
.burger-menu {
    cursor: pointer;
    margin-right: 1rem;
    font-size: 1.2rem; /* Adjust size as needed */
    color: var(--primary-color-dark);
    text-decoration: none;
}

.help-icon:hover {
    color: var(--accent-color-dark); /* Optional hover color for emphasis */
}

.header-border {
    border-bottom: 2px solid var(--accent-color-dark);
    width: 100%;
    margin-bottom: 1rem;
}

.menu-controls {
    display: flex;
    align-items: center;
}

/* ======================================================================= */
/* Menu Styling */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color-dark);
    color: var(--primary-color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    flex-direction: column;
}

/* Menu hidden by default */
.hidden {
    display: none !important;
}

.menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-color-dark);
}

.menu-content {
    text-align: center;
}

.menu-title {
    font-weight: bold;
    font-family: var(--font-bold);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color-dark);
}

.menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-links li {
    margin: 1rem 0;
}

.menu-links li a {
    color: var(--accent-color-dark);
    font-size: 1.2rem;
    text-decoration: none;
}

.menu-links li a:hover {
    text-decoration: underline;
}

.separator {
    border-top: 1px solid var(--accent-color-dark);
    margin: 1rem 0;
    width: 80%;
}

/* ======================================================================= */
/* Layout for Main Content */
main {
    display: flex;
    flex-grow: 1; /* Ensures main content fills available space */
    flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
}

/* Row Widths */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    padding: 1rem 0;
	max-width: 960px;
    width: 100%;
	flex-direction: row;
}

.full-width {
    width: 100%;
}

.wide-width {
    max-width: 1200px;
    width: 100%;
}

.standard-width {
    max-width: 960px;
    width: 100%;
}

.narrow-width {
    max-width: 760px;
    width: 100%;
}

/* ======================================================================= */
/* Basic Block Styling */
.block {
    flex: 1 1 auto;
    padding: 1rem;
	display: flex;
	flex-direction: row;
	gap: 1em;
	max-width: 100%;
}

.full-size {
    flex: 1 1 100%;
}

/* Row and Column Blocks */
.row-block {
    display: flex;
    flex-wrap: wrap;
	flex-direction: row;
    gap: 1rem;
}

.column-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Utility Blocks */
.centered-block {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.spacer {
    height: 2rem;
}

.image-block img {
    max-width: 100%;
    height: auto;
    display: block;
}

.overlay-block {
    position: relative;
    overflow: hidden;
}

.overlay-block::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.highlight-block {
    background-color: var(--accent-color-light);
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.button-block {
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color-dark);
    color: #ffffff;
    text-align: center;
    display: inline-block;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.button-block:hover {
    background-color: var(--accent-color-light);
}


/* ======================================================================= */
/* Miscellaneous elements styling */

.helptip {
	height: 1em;
	width: 1em;
	display: inline-block;
	background-color: var(--accent-color-alt);
	color:  var(--background-color-light);
	border-radius:50%;
	text-align: center;
	cursor: pointer;
	line-height: 1em;
}

ul {
	padding-left: 25px;
}

/* ======================================================================= */
/* Footer Styling */
footer {
    background-color: var(--background-color-dark);
    color: var(--primary-color-dark);
    padding: 1rem;
    text-align: center;
}

.footer-border {
    border-top: 2px solid var(--accent-color-dark);
    width: 100%;
    margin: 1rem 0;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0.5rem 0;
    font-family: var(--font-regular);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--accent-color-dark);
    text-decoration: none;
    font-family: var(--font-regular);
    font-size: 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ======================================================================= */
/* All global styles above this point. */
/* Any project specific styles should be listed below this point */
/* ======================================================================= */

/* ======================================================================= */
/* Project Card Styling for main Project Page */

.project-content > a {
	text-decoration:none;
}
.project-card {
    background-size: cover;
    background-position: center;
    height: 200px;
    width: 380px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    color: var(--background-color-dark);
}

.project-card h3 {
    margin: 0;
    font-family: var(--font-bold);
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 5px;
	text-decoration: none;
}

.project-card p {
    margin: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #cccccc;
    padding: 5px;
	text-decoration: none;
}

/* Project Link Styling */
a.project-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* Hover effect */
.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}



