body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.board {
    box-sizing: border-box;
    border: 16px solid #351E10;
    background-size: cover;                  
    background-position: center;               
    background-repeat: no-repeat;              
    background-attachment: fixed;              
    background-color: #013220;                 
    position: absolute;                        
    width: 100vw;
    height: 100vh;       
    overflow: hidden;                    
}

.board-safe {
    position: absolute;
    top: 11%; 
    bottom: 11%;
    left: 14%;
    right: 15%;
    padding: 10px;
    overflow-y: auto; 
    overflow-x: hidden;
}


@font-face {
    font-family: chalk;
    src: url('/fonts/Chalkboard-Regular.ttf');
}

@font-face {
    font-family: handwriting;
    src: url('/fonts/IndieFlower-Regular.ttf');
}

p {
    font-family: chalk;
    color: white;
    text-align: center;
}


.title-text {
    font-size: clamp(35px, 5vw, 60px);
    opacity: 0.8;
    margin: 10px 0 30px 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.notes-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

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

.welcome-text {
    opacity: 0.8;
    font-size: clamp(18px, 2.5vw, 40px);
    margin: 0;
    padding: 0 15px;
}


.note {
    width: 100%;
    max-width: 220px;
    position: relative;
    transition: transform 0.2s; 
}

.note:hover {
    transform: scale(1.05);
}

.note a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.note-image-side {
    position: relative; 
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.note-image-side img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.note-image-side p {
    position: absolute;
    top: 50%;    
    left: 50%;  
    transform: translate(-50%, -50%); 
    width: 85%;
    margin: 0;  
    font-family: handwriting;
    color: black;
    font-size: clamp(14px, 2.2vw, 28px);
    line-height: 1.1;
    opacity: 0.8;
    word-wrap: break-word;
}


.board-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 40px;
}

.cat-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.cat-section img {
    opacity: 0.8;
    max-width: clamp(80px, 10vw, 150px);
}

.cat-section p {
    font-size: clamp(18px, 2vw, 24px);
    opacity: 0.9;
    max-width: 350px;
    text-align: right;
    margin: 0;
}

.cat-section a {
  font-family: chalk;
  color: #a8d5ff;
  text-decoration: underline;
}

.neocities-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    font-family: chalk;
    color: white;
    font-size: clamp(16px, 1.8vw, 22px);
    transition: transform 0.2s;
}

.neocities-badge img {
    opacity: 0.9;
}

.neocities-badge:hover {
    transform: scale(1.05);
}


.action-btn {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 25px;
    font-family: chalk;
    color: white;
    background: none;
    font-size: 24px;
    cursor: pointer;
    border-color: white;
    border-style: dashed;
}

.project-action-btn {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 25px;
    font-family: chalk;
    color: white;
    background: none;
    font-size: 24px;
}

.action-btn.secondary {
    border-color: white;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); 
    z-index: 1000;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%; 
    max-width: 600px;
}

#drawing-canvas {
    background-color: black;
    border: 1px inset #aaa;
    cursor: crosshair;
    margin-bottom: 15px;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3.5;
}

.input-group input {
    font-family: chalk;
    font-size: 20px;
    padding: 5px;
    text-align: center;
    width: 250px;
    max-width: 90%;
    margin-bottom: 15px;
}

.button-group {
    display: flex;
    gap: 15px;
}

.button-group .action-btn {
    position: relative; 
    bottom: auto;
    left: auto;
    transform: none;
}


.gallery-grid {
    width: 100%;
    height: 70%; 
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    overflow-y: auto; 
    padding: 10px;
}

.gallery-item {
    padding: 10px;
    display: flex;
    border-color: white;
    flex-direction: column;
    align-items: center;
}

.gallery-item canvas {
    background-color: white;
    border: 1px inset #392b2b;
    width: 100%; 
    height: auto;
    aspect-ratio: 5 / 3.5;
}

.gallery-item p {
    font-family: chalk;
    color: white;
    font-size: 18px;
    margin-top: 5px;
    margin-bottom: 0;
}


@media (max-width: 850px) {
    .board-safe {
        top: 5%;
        bottom: 5%;
        left: 5%;
        right: 5%;
    }

    .layout-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
    }
    
    .center-column {
        order: -1; 
    }

    .notes-column {
        flex-direction: row; 
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .note {
        width: 45%; 
        min-width: 130px;
    }
    
    .board-footer {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .cat-section {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .cat-section p {
        text-align: center;
    }
    
    .neocities-badge {
        justify-content: center;
    }
}

.text-content {
    display: flex;
    flex-direction: column;
    max-width: 950px; 
    margin: 0 auto;
    padding: 20px;
    gap: 50px; 
}

.text-content h1 {
    font-family: chalk;
    font-size: clamp(32px, 4vw, 46px);
    margin-bottom: 5px;
}

.text-content h2 {
    font-family: chalk; 
    color: #ff9999; 
    font-size: clamp(32px, 4.5vw, 48px); 
    font-weight: normal;
    margin: 0 0 15px 0;
    text-decoration: underline; 
    text-decoration-thickness: 2px; 
    text-underline-offset: 6px; 
}

.text-content p {
    font-size: clamp(22px, 3.5vw, 32px); 
    line-height: 1.6;
    margin: 0;
}

.text-content a {
    color: #a8d5ff;
    text-decoration: underline;
}

.board-safe.layout-fixed {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    top: 5%;
    bottom: 5%;
}

.header-fixed {
    flex-shrink: 0; 
}

.scroll-zone {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%; 
}

.contact-form input, 
.contact-form textarea {
    background-color: transparent;
    border: 2px dashed white;
    color: white;
    font-family: chalk;
    font-size: 20px;
    padding: 12px 15px; 
    width: 100%;         
    box-sizing: border-box; 
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-style: solid;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon {
    width: 28px;
    height: 28px;
    fill: white; 
    vertical-align: middle;
    margin-right: 10px;
    margin-bottom: 4px; 
    transition: transform 0.2s;
}

a:hover .social-icon {
    transform: scale(1.1);
}

.project-category {
    margin-top: 30px;
    margin-bottom: 20px;
}

.project-category h2 {
    font-family: chalk;
    color: white;
    font-size: clamp(28px, 3.5vw, 40px);
    margin: 0 0 15px 0;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.project-list-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-list-li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.project-list-li span {
    font-size: clamp(20px, 2.5vw, 26px);
    font-family: chalk;
    color: white;
}

.lupa-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lupa-btn:hover {
    transform: scale(1.2);
}

.lupa-icon {
    width: 28px;
    height: 28px;
    fill: white;
}

.project-modal-content {
    background-color: #013220;
    border: 4px dashed white;
    padding: 30px;
    width: 90%;
    max-width: 650px;
    position: relative;
    display: flex;
    flex-direction: column;

    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.modal-overlay.active .project-modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-modal-x {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-family: chalk;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}

.close-modal-x:hover {
    color: #ff9999;
}

.modal-tech {
    color: #a8d5ff;
    font-size: 20px;
    font-style: italic;
    margin-bottom: 15px !important;
}

.modal-desc {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 20px !important;
}

/* Blog */

.blog-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.blog-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-date {
    color: #ff9999; 
    font-family: chalk;
    font-size: clamp(18px, 2vw, 22px);
    margin: 0 0 5px 0;
}

.blog-title {
    font-size: clamp(26px, 3vw, 34px);
    margin: 0 0 10px 0;
    font-family: chalk;
}

.blog-title a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: #a8d5ff; 
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.blog-excerpt {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.5;
    margin: 0 0 15px 0;
    color: #e0e0e0;
}

.read-more-btn {
    display: inline-block;
    color: white;
    font-family: chalk;
    font-size: 20px;
    text-decoration: none;
    border: 1px solid white;
    padding: 5px 15px;
    transition: all 0.2s;
}

.read-more-btn:hover {
    background-color: white;
    color: #013220;
}

.post-content h1 {
    font-family: chalk;
    color: white;
    font-size: clamp(32px, 4vw, 46px);
    margin-bottom: 5px;
}

.post-content h2 {
    font-family: chalk;
    color: #a8d5ff; 
    font-size: clamp(26px, 3vw, 34px);
    margin-top: 40px;
    margin-bottom: 15px;
}

.post-content p {
    font-size: clamp(20px, 2.5vw, 24px);
    line-height: 1.6;
    margin-bottom: 25px;
}

.post-content pre {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.5);
    padding: 20px;
    overflow-x: auto; 
    margin-bottom: 25px;
}

.post-content code {
    font-family: monospace;
    color: #e0f8ce; 
    font-size: 18px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border: 2px dashed white;
    padding: 5px;
    margin: 10px 0 25px 0;
}

/* --- PHOTOS --- */

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    margin-top: 30px;
    padding-bottom: 40px;
}

.photo-item {
    width: 280px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-item:hover {
    transform: scale(1.05) rotate(2deg); 
}

.photo-item img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;   
    border: 3px dashed white;
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.05);
}

.photo-caption {
    font-family: chalk;
    color: #a8d5ff; 
    font-size: clamp(20px, 2.5vw, 24px);
    margin-top: 15px;
    text-align: center;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox-content img {
    max-width: 800px;
    width: 100%;
    max-height: 80vh; 
    border: 4px dashed white;
    padding: 10px;
    background-color: #013220;
    object-fit: contain;
}

.lightbox-caption {
    font-family: chalk;
    color: white;
    font-size: 30px;
    margin-top: 15px;
    text-align: center;
}


.steam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 22px;
    position: relative !important; 
    transform: none !important; 
    left: auto !important;
    bottom: auto !important;
}

.game-dev-highlight {
    border: 3px dashed #ff9999; 
    padding: 25px;
    background-color: rgba(255, 153, 153, 0.05);
    margin-bottom: 40px;
    position: relative;
}

.game-dev-highlight h3 {
    font-family: chalk;
    color: white;
    font-size: clamp(26px, 3vw, 32px);
    margin: 0 0 10px 0;
}

.game-dev-tag {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: #013220;
    color: #ff9999;
    padding: 0 10px;
    font-family: chalk;
    font-size: 20px;
    border-left: 2px solid #ff9999;
    border-right: 2px solid #ff9999;
}

.playlog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.playlog-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.playlog-item span.game-title {
    font-family: chalk;
    font-size: clamp(20px, 2.5vw, 24px);
    color: white;
}

.playlog-item span.game-status {
    font-family: chalk;
    color: #a8d5ff;
    font-size: 20px;
}