@font-face {
    font-family: 'BNMagnique';
    src: url('fonts/BNMagnique.otf') format('opentype');
}

@font-face {
    font-family: 'BNDunk';
    src: url('fonts/BNDunk.otf') format('opentype');
}

body {
    font-family: 'BNMagnique', sans-serif;
    background-color: #EEEEEE;
    margin: 0;
    padding: 0;
    min-height: 300vh;
    display: block;
    position: relative;
    overflow-x: hidden;
}

body.portfolio-page {
    display: block;
    padding-top: 60px;
    padding-bottom: 80px;
}

.welcome {
    font-size: 8vw;
    color: #253900; /* dark green */
    text-align: center;
    position: sticky;
    top: 10px;
    left: 0;
    right: 0;
    margin-top: 30vh;
    width: 100%;
    white-space: nowrap;
    animation: none;
    font-weight: bold;
    line-height: 1.1;
    z-index: 10;
    background-color: transparent;
    padding: 10px;
}

.home-page .welcome {
    filter: blur(8px);
    transition: filter 2s ease;
}

.home-page .welcome.focused {
    filter: blur(0);
}

.portfolio-page .welcome {
    position: static;
    transform: none;
    font-size: 12vw;
    margin: 30px auto 20px;
    animation: none;
}

/* Floating Folders Styles */
.floating-folders {
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    width: 100%;
    height: 200vh;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.folder-icon {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.6s ease;
    opacity: 0;
    transform: translateY(50px) scale(0.5);
    position: absolute;
    animation: float 3s ease-in-out infinite;
}

/* Zigzag positioning */
.folder-icon:nth-child(1) { 
    left: 10%;
    top: 0;
    animation-delay: 0s; 
}
.folder-icon:nth-child(2) { 
    right: 10%;
    top: 20vh;
    animation-delay: 0.3s; 
}
.folder-icon:nth-child(3) { 
    left: 15%;
    top: 40vh;
    animation-delay: 0.6s; 
}
.folder-icon:nth-child(4) { 
    right: 15%;
    top: 60vh;
    animation-delay: 0.9s; 
}
.folder-icon:nth-child(5) { 
    left: 20%;
    top: 80vh;
    animation-delay: 1.2s; 
}
.folder-icon:nth-child(6) { 
    right: 20%;
    top: 100vh;
    animation-delay: 1.5s; 
}
.folder-icon:nth-child(7) { 
    left: 25%;
    top: 120vh;
    animation-delay: 1.8s; 
}
.folder-icon:nth-child(8) { 
    right: 25%;
    top: 140vh;
    animation-delay: 2.1s; 
}

.folder-icon svg {
    width: 50px;
    height: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.folder-icon:hover svg {
    transform: scale(1.2) translateY(-5px);
}

.folder-icon span {
    margin-top: 5px;
    font-family: 'BNMagnique', sans-serif;
    font-size: 11px;
    color: #253900;
    font-weight: bold;
    text-align: center;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -30%);
    }
}

.name {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12pt;
    color: #000000;
}

.portfolio {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12pt;
    color: #000000;
}

#viewPortfolio {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #00008b;
    color: #f5f5dc;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'BNMagnique', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#viewPortfolio:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Popup modal styles removed */

#folders {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 40px;
    max-width: 1200px;
    padding: 0 20px;
}

.portfolio-folder {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    margin: 10px;
}

.portfolio-folder svg {
    width: 50px;
    height: 40px;
}

.portfolio-folder span {
    font-size: 11px;
}

.folder-btn {
    background-color: #08CB00;
    color: #000000;
    border: none;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    font-family: 'BNMagnique', sans-serif;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.folder-btn:hover {
    transform: scale(1.05);
    background-color: #06A000;
}

#images img {
    max-width: 200px;
    height: auto;
    margin: 5px;
}

.image-gallery {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 10px;
}

.image-gallery img {
    width: 24%;
    height: auto;
    margin: 0.5%;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(20%);
}

.image-gallery img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.back-btn {
    background-color: #253900;
    color: #08CB00;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 16px;
    position: fixed;
    bottom: 80px;
    right: 20px;
    cursor: pointer;
    font-family: 'BNMagnique', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 200;
}

.back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    color: white;
    overflow: hidden;
    padding: 10px 0;
    font-family: 'BNMagnique', sans-serif;
    font-size: 18px;
    z-index: 100;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
}

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

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

.ticker-container-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    color: white;
    overflow: hidden;
    padding: 10px 0;
    font-family: 'BNMagnique', sans-serif;
    font-size: 18px;
    z-index: 100;
}

.ticker-container-top .ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-right 30s linear infinite;
}

.flip-container {
    perspective: 1000px;
    width: 95%;
    margin: 0 auto;
    cursor: pointer;
}

.flipper {
    position: relative;
    width: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-container.flipped .flipper {
    transform: rotateY(180deg);
}

.front, .back {
    width: 100%;
    backface-visibility: hidden;
}

.front {
    z-index: 2;
    transform: rotateY(0deg);
}

.front img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.front::after {
    content: 'click to learn more';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'BNMagnique', sans-serif;
    font-size: 3vw;
    color: #EEEEEE;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.flip-container:hover .front::after {
    opacity: 1;
}

.back {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    transform: rotateY(180deg);
    background-color: #253900;
    color: #EEEEEE;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.back p {
    font-family: 'BNMagnique', sans-serif;
    font-size: 24px;
    line-height: 1.6;
    text-align: left;
    margin: 0;
    max-height: 100%;
    overflow-y: auto;
}

/* Mobile-first: Default styles above are for mobile */
/* Desktop styles: Make flip container smaller on larger screens */
@media (min-width: 768px) {
    .flip-container {
        width: 60%;
        max-width: 800px;
    }
    
    .back {
        height: auto;
        min-height: auto;
    }
    
    .flipper {
        display: inline-block;
    }
}

/* Tablet adjustments if needed */
@media (min-width: 768px) and (max-width: 1024px) {
    .flip-container {
        width: 70%;
    }
}

/* Magnifying glass styles */
.magnifier {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid #000;
    border-radius: 50%;
    cursor: none;
    pointer-events: none;
    display: none;
    background-repeat: no-repeat;
    background-size: 900%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.magnify-enabled {
    cursor: crosshair;
}

/* Would You Rather Game Styles */
.would-you-rather-game {
    position: relative;
    margin: 300vh auto 20px;
    width: 500px;
    padding: 0;
}

.game-window {
    background: linear-gradient(to bottom, #E8E8E8 0%, #D1D1D1 100%);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid #B8B8B8;
}

.game-header {
    background: linear-gradient(to bottom, #ECECEC 0%, #D4D4D4 100%);
    padding: 4px 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #A0A0A0;
}

.window-buttons {
    display: flex;
    gap: 5px;
    margin-right: 10px;
}

.window-buttons span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close {
    background: #FF5F56;
    border: 1px solid #E0443E;
}

.btn-minimize {
    background: #FFBD2E;
    border: 1px solid #DEA123;
}

.btn-maximize {
    background: #27C93F;
    border: 1px solid #1AAB29;
}

.game-title {
    font-family: 'BNMagnique', sans-serif;
    font-size: 10px;
    color: #4A4A4A;
    font-weight: bold;
}

.game-content {
    padding: 12px 16px;
    text-align: center;
}

.game-content h2 {
    font-family: 'BNMagnique', sans-serif;
    font-size: 12px;
    color: #253900;
    margin: 0 0 8px 0;
}

.options {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.vs {
    font-family: 'BNMagnique', sans-serif;
    font-size: 10px;
    color: #666;
    font-weight: bold;
    margin: 0 5px;
}

.option-btn {
    background: linear-gradient(to bottom, #FFFFFF 0%, #E5E5E5 100%);
    border: 1px solid #B8B8B8;
    border-radius: 3px;
    padding: 8px 16px;
    font-family: 'BNMagnique', sans-serif;
    font-size: 11px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.option-btn:hover {
    background: linear-gradient(to bottom, #F5F5F5 0%, #D8D8D8 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.option-btn:active {
    background: linear-gradient(to bottom, #D8D8D8 0%, #C8C8C8 100%);
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.option-a {
    border-left: 2px solid #08CB00;
}

.option-b {
    border-left: 2px solid #253900;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .would-you-rather-game {
        width: 90%;
        max-width: 400px;
        margin: 200vh auto 0;
        padding: 0 0 20px 0;
    }
    
    .option-btn {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .game-content h2 {
        font-size: 10px;
    }
}