@font-face {
    font-family: 'Press Start 2P';
    src: url('../assets/font/PressStart2P-Regular.ttf') format('truetype');
}



@font-face {
    font-family: 'Cafe Sweet';
    src: url('../assets/font/cafesweet.ttf') format('truetype');
}

/* ======= LIGHT THEME (default) ======= */

body {
    font-family: 'Press Start 2P';
    font-size: 16px;
    color: #4a4a4a; /* Dark gray text */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
    background-color: #7db2d4;
    background-image: url('../assets/background/star-bg-blue.webp');
    background-repeat: repeat;
    background-attachment: fixed;
    height: 100vh;
}

u {
  text-decoration: underline dotted;
}

.container {
    max-width: 1200px;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 6px solid #b9d8e8;
    border-radius: 10px;
    overflow: auto; 
    height: 100%;
    z-index: 999;
}

.navigation-elements {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #b9d8e8;
    border: 4px solid #5f93b3; 
    padding: 20px;
    margin-bottom: 20px;
}

.microblog {
    flex: 0 0 270px;
    overflow: hidden;
    height: 100%;
}

.responsive-iframe {
    width: 100%;
    height: 100%;
    border: none;
    box-sizing: border-box;
}

.content-wrapper {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    margin: 0 20px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 640px;
}

.content {
    overflow: auto;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #4a4a4a;
    border: 4px solid #b9d8e8;
    border-radius: 10px;
    max-width: 100%;
    overflow-x: hidden;
}

.scrolling-header {
    background-color: #a9d2e6;
    color: #4a4a4a;
    padding: 10px 20px;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    font-size: 24px;
    border-radius: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.navbar {
    width: 250px;
    min-width: 250px;
    flex-shrink: 0;
    overflow: hidden;
}

h1, hr {
    margin-top: 0;
    font-size: 32px; 
}

h2 {
    margin-top: 0;
    font-size: 24px;
}

h3 {
    font-size: 16px;
}

p {
    margin-top: 0;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: #4a4a4a;
}
a:hover {
    color: #5f93b3;
}

.image-container-single {
    max-width: 100%; 
    height: auto; 
    display: block; 
    margin: 0 auto; 
}

.image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.code-container {
    background-color: #2e2e2e; 
    color: #f5f5f5;           
    border-radius: 8px;     
    padding: 16px;           
    overflow-x: auto;         
    font-family: 'Courier New', Courier, monospace; 
    font-size: 14px;          
    line-height: 1.5;         
    border: 1px solid #444;
}

.image-container img.active {
    opacity: 1;
}

@keyframes imageAnimation {
    0%, 100% { opacity: 0; }
    25% { opacity: 1; }
    50%, 75% { opacity: 0; }
}

.image-container img:nth-child(1) {
    animation: imageAnimation 18s infinite;
    animation-delay: 0s;
}
.image-container img:nth-child(2) {
    animation: imageAnimation 18s infinite;
    animation-delay: 6s;
}
.image-container img:nth-child(3) {
    animation: imageAnimation 18s infinite;
    animation-delay: 12s;
}

.image-with-text {
    display: flex;
    align-items: center;
}

.marquee, .marquee-nonpause {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
    line-height: 1;
    margin: 0;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    line-height: 0;
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.button-container {
    width: 100%;
    line-height: 0;
    margin: auto auto;
    text-align: center;
}

.button-container img {
    margin: 0;  
}

.button-background {
  background-image: url("../assets/background/water_day.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  animation: scrollBg 120s linear infinite;
}
@keyframes scrollBg {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -848px 0; 
  }
}
.button-background-color {
  background-color: #00197d;  
}
.bar-beach {
  background-image:url('../assets/dividers/bar3.png')
}

.pixel-container {
    width: 100%;
}

.project-card-div {
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

a:hover .project-card-div {
    background-color: #b9d8e8;
}

.cool-text {
    font-family: 'DotGothic16'; 
    font-size: 16px;
    line-height: 1.5;
    color: black;
    margin: 0;
}

.images-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.images-flex img {
    margin: 10px;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;  
}

.button-pattern {
    background-image: url('../assets/background/bg57.gif');
    border: 1px solid #5f93b3;
}

.button-pattern-2 {
    background-image: url('../assets/background/bg51.gif');
    border: 1px solid #5f93b3;
}


.category-description {
    font-family: 'DotGothic16';
    font-size: 16px;
}


.pixel-button {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    background-color: #b9d8e8;
    color: #4a4a4a;
    border: 4px solid #5f93b3;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0 #5f93b3;
    text-shadow: 1px 1px white;
    width: 95%;
}

.pixel-button::before {
  content: 'Light theme';
  text-align: center;
}

.pixel-button:hover {
    background-color: #a9d2e6;
    color: #333;
    box-shadow: 2px 2px 0 #5f93b3;
    transform: translate(2px, 2px);
}

.pixel-button:active {
    background-color: #93bdda;
    box-shadow: none;
    transform: translate(4px, 4px);
}

.invertable-border {
	border: 1px solid #5f93b3;
}

.bottom-pattern {
background-image:  url('../assets/background/shape_3_3.png');
box-sizing: border-box;
}

.bottom-pattern img {
outline: 1px solid #5f93b3;
background-color: white;
padding: 8px;
}


/* ======= DARK THEME ======= */

body.dark .bottom-pattern {
background-image:  url('../assets/background/shape_2_3.png');
}


body.dark {
    background-color: #121217;
    color: white;
    background-color: #355a73;
    background-image: url('../assets/background/star-bg-blue.webp');
    background-repeat: repeat;
    background-attachment: fixed;
}

body.dark .container {
    background-color: #1c1c26;
    border-color: #3ea0ff;
}

body.dark .navigation-elements {
    background-color: #23232f;
    border-color: #3ea0ff;
    box-shadow: 0 0 8px rgba(62, 160, 255, 0.7);
}

body.dark .content {
    background-color: #1c1c26;
    color: white;
    border-color: #3ea0ff;
    box-shadow: 0 0 12px rgba(62, 160, 255, 0.6);
}

body.dark a {
    color: #3ea0ff;
    transition: color 0.3s ease;
}

body.dark a:hover {
    color: #1a8cff;
}

body.dark a:hover .project-card-div {
    background-color: #2a2a38;
}

body.dark .cool-text {
    color: white;
}

body.dark .cool-pattern-2 {
    border-color: #3ea0ff;
}

body.dark .category-description {
    color: white;
}

body.dark .button-pattern {
	background-image: url('../assets/background/shape_2_4.png');
	border-color: white;
	background-position: center; 
}

body.dark .button-pattern-2 {
	background-color: #121217;
	opacity: 1;
	background-size: 20px 20px;
	background-image:  repeating-linear-gradient(to right, #3ea0ff, #3ea0ff 1px, #121217 1px, #121217);
        border-color: white;
}


body.dark .invert {
	filter: invert(100%);
}

body.dark .pixel-button {
    background-color: #23232f;
    color: #3ea0ff;
    border-color: #3ea0ff;
    box-shadow: 4px 4px 0 rgba(62, 160, 255, 0.6);
    text-shadow: 1px 1px #000;
}

body.dark .pixel-button::before {
  content: 'Dark theme';
  text-align: center;
}

body.dark .pixel-button:hover {
    background-color: #2a2a38;
    color: #ffffff;
    box-shadow: 2px 2px 0 rgba(62, 160, 255, 0.6);
    transform: translate(2px, 2px);
}

body.dark .pixel-button:active {
    background-color: #1c1c26;
    box-shadow: none;
    transform: translate(4px, 4px);
}

body.dark .invertable-border {
	border: 1px solid white;
}

body.dark .button-background {
  background-image: url("../assets/background/water_night.png");  
}

body.dark .button-background-color {
  background-color: #000020;
background-image:
radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 10px),
radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 5px),
radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 10px),
radial-gradient(rgba(255,255,255,.4), rgba(255,255,255,.1) 2px, transparent 5px);
background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px; 
background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;

  animation: scrollBg 400s linear infinite;
}

body.dark .bar-beach {
  background-image:url('../assets/dividers/bar_night.png')
}
/* ===== blob-blue scrollbars ===== */
* { scrollbar-color: #7db2d4 #dcecf7e0; scrollbar-width: auto; }
html { scrollbar-color: #7db2d4 #dceef7; }
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #dceef7; }
::-webkit-scrollbar-thumb { background: #7db2d4; border: 2px solid #5f93b3; }
::-webkit-scrollbar-thumb:hover { background: #5f93b3; }
::-webkit-scrollbar-corner { background: #dceef7; }
/* ===== aligned navigation: icons in a fixed column, labels tidy ===== */
.navigation-elements ul { text-align: left; padding: 0; }
.navigation-elements ul li a { display: flex !important; align-items: center; gap: 10px; }
.navigation-elements ul li a img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }