
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body
{
    font-family: "Minecraft", sans-serif;
    background: linear-gradient(135deg, #000000 0%, #0a0e27 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

button,
input,
textarea,
select
{
    font-family: "Minecraft", sans-serif;
}

@keyframes fadeOut
{
    0% 
    {
        opacity: 1;
        transform: scale(1);
    }
    100% 
    {
        opacity: 0;
        transform: scale(0.3);
    }
}

@font-face {
    font-family: "Minecraft";
    src: url("fonts/MinecraftRegular-Bmg3.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Minecraft";
    src: url("fonts/MinecraftBold-nMK1.otf") format("opentype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Pixel Digivolve";
    src: url("fonts/PixelDigivolve-mOm9.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.stars-bg 
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star 
{
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle 
{
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}


.journey-container 
{
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    z-index: 10;
}

.journey-path 
{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    gap: 2rem;
}

/* Connecting path line */
.journey-path::before 
{
    content: '';
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 4px;
    background: linear-gradient(90deg, 
        #3b82f6 0%, 
        #ffa500 20%, 
        #10b981 40%, 
        #ec4899 60%, 
        #8b5cf6 80%, 
        #f59e0b 100%);
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.portal-station 
{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    flex: 0 0 auto ;
    
}

.portal 
{
    /* width: 200px; */
    width: clamp(80px, 12vw, 200px);
    /* height: 300px; */
    height: clamp(120px,18vw, 300px);
    flex-shrink: 1;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    margin-bottom: 1rem;
    perspective: 600px;
}

.portal-inner
{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(5px);
    border: 4px outset;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    
}

.portal-inner::before 
{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: portalPulse 3s ease-in-out infinite;
    
}

.portal-inner::after 
{
    content: '';
    position: absolute;
    top: 5%;
    /* width: 180px; */
    width:clamp(115px,8vw,100px);
    /* height: 180px; */
    height:clamp(115px,8vw,100px);
    border-radius: 50%;
    border: 2px dashed;
    border-color: inherit;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
    
}

@keyframes rotate 
{
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes portalPulse 
{
    0%, 100% { transform: scale(0.9); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.9; }
}

 .portal:hover 
{
    transform: scale(1.15);
} 


  .portal:hover .portal-inner, .card-front 
{
   box-shadow: 0 0 40px currentColor, inset 0 0 20px currentColor;
       
}  

/* Lore has real card flip - skip old animation */
.portal-lore:hover .portal-inner {
    animation: none;
}

/* All other portals use old flip until card faces are built */
 /* .portal-team:hover .portal-inner, 
 .portal-contact:hover .portal-inner, 
.portal-home:hover .portal-inner,
.portal-games:hover .portal-inner,
.portal-news:hover .portal-inner, */
/* .portal-webgame:hover .portal-inner {
    animation: portalFlip 1s ease forwards;
} */

@keyframes portalFlip {
    0%   { transform: perspective(600px) rotateY(0deg); }
    100% { transform: perspective(600px) rotateY(180deg); }
}

.portal-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;  /* remove the translate */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.portal-icon img 
{
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.portal-lore .portal-icon img 
{
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8)) drop-shadow(0 0 5px rgba(59, 130, 246, 1));
}

.portal-label 
{
    position: absolute;
    bottom: 10px;
    font-size: clamp(8px,1.2vw,30px);
    font-weight: 700;
    color: rgb(221, 0, 255);
    z-index: 1;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    
    
}

.station-number 
{
    display: none;
}

/* Individual portal colors */
.portal-lore .portal-inner,
.portal-lore .station-number 
{
    border-color: #3b82f6;
    color: #3b82f6;
}

.portal-team .portal-inner,
.portal-team .station-number 
{
    border-color: #ffa500;
    color: #ffa500;
}

.portal-contact .portal-inner,
.portal-contact .station-number 
{
    border-color: #10b981;
    color: #10b981;
}

.portal-home .portal-inner,
.portal-home .station-number 
{
    border-color: #ec4899;
    color: #ec4899;
}

.portal-games .portal-inner,
.portal-games .station-number 
{
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.portal-news .portal-inner,
.portal-news .station-number 
{
    border-color: #f59e0b;
    color: #f59e0b;
}

.portal-webgame .portal-inner,
.portal-webgame .station-number {
    border-color: #10b981;
    color: #10b981;
}

/*

/* Walking character - custom running figure 
.traveler {
    position: absolute;
    bottom: calc(50% + 80px);
    left: 5%;
    font-size: 3rem;
    z-index: 2;
    animation: walk 20s linear infinite;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.8));
}
*/

/* Custom running character made with CSS 
.traveler::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 50% 50% 40% 40%;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}
*/

/* Head 
.traveler::after
{
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    border-radius: 50%;
    top: -20px;
    left: 7.5px;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
}  */

@keyframes walk
{
    0% { left: 5%; }
    100% { left: 95%; }
}

.info-panel
{
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    max-width: 350px;
    z-index: 100;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.info-panel h3 
{
    color: #ec4899;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-panel p
{
    color: #c4b5fd;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.modal 
{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn 
{
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active 
{
    display: flex;
}

.modal-content 
{
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d3d 50%, #2d1b4e 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 3px solid rgba(139, 92, 246, 0.5);
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp 
{
    from 
    { 
        opacity: 0;
        transform: translateY(50px);
    }
    to 
    { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close 
{
    position: fixed;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #ec4899;
    cursor: pointer;
    background: rgba(236, 72, 153, 0.2);
    border: 2px solid #ec4899;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    font-weight: bold;
    z-index: 1001;
}

.modal-close:hover 
{
    background: rgba(236, 72, 153, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.modal h2 
{
    font-size: 2.8rem;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.modal p 
{
    color: #c4b5fd;
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.game-card 
{
    background: rgba(30, 30, 60, 0.7);
    border: 3px solid rgba(255, 165, 0, 0.5);
    border-radius: 15px;
    padding: 2rem;
    margin: 1.5rem 0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.game-card::before 
{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.2), transparent);
    transition: left 0.5s;
}

.game-card:hover::before 
{
    left: 100%;
}

.game-card:hover 
{
    transform: translateY(-8px);
    border-color: rgba(255, 165, 0, 0.9);
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.4);
}

.game-card img 
{
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.game-card h3 
{
    color: #ffa500;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.game-badge 
{
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    font-weight: 600;
}

.team-grid 
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-member 
{
    background: rgba(30, 30, 60, 0.7);
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.team-member:hover 
{
    border-color: rgba(255, 165, 0, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.team-member h4 
{
    color: #a78bfa;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.team-link 
{
    color: inherit;
    text-decoration: none;
}

.team-link:hover 
{
    color: #ff8fd8;
    text-shadow: 0 0 10px #ff8fd8;
}

.team-member p 
{
    color: #ec4899;
    font-size: 1rem;
    font-weight: 600;
}



/* Bubble Pop webgame */
.bubble-game
{
    width: 100%;
    max-width: 700px;
    height: 560px;
    margin: 1.5rem auto 0;
    border-radius: 15px;
    border: 3px solid rgba(255, 165, 0, 0.7);
    overflow: hidden;
    background: #1f1f2b;
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.35);
}

.game-header
{
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.35);
    color: white;
    font-weight: bold;
}

#game-area
{
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#start-button
{
    padding: 12px 24px;
    border: 2px solid #ec4899;
    border-radius: 10px;
    background: rgba(236, 72, 153, 0.2);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

#start-button:hover
{
    background: rgba(236, 72, 153, 0.4);
    transform: scale(1.08);
}

.bubble
{
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.9),
        rgba(236, 72, 153, 0.7),
        rgba(139, 92, 246, 0.7)
    );
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.8);
    cursor: pointer;
    transition: transform 0.15s;
}

.bubble:hover
{
    transform: scale(1.12);
}

.hidden
{
    display: none !important;
}

.score-entry
{
    position: absolute;
    z-index: 10;
    width: min(90%, 320px);
    padding: 1.5rem;
    border: 2px solid #ec4899;
    border-radius: 15px;
    background: rgba(10, 14, 39, 0.95);
    text-align: center;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.5);
}

.score-entry h3
{
    margin-bottom: 0.75rem;
    color: #ffa500;
}

.score-entry p
{
    margin-bottom: 0.75rem;
}

#initials-input
{
    width: 90px;
    padding: 10px;
    border: 2px solid #8b5cf6;
    border-radius: 8px;
    background: #1f1f2b;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 5px;
    text-align: center;
    text-transform: uppercase;
}

#save-score-button
{
    margin-left: 10px;
    padding: 10px 14px;
    border: 2px solid #10b981;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.2);
    color: white;
    cursor: pointer;
    font-weight: bold;
}

#save-score-button:hover
{
    background: rgba(16, 185, 129, 0.4);
}

.leaderboard
{
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.25);
}

.leaderboard h3
{
    margin-bottom: 0.75rem;
    color: #ffa500;
}

#leaderboard-list
{
    padding-left: 2rem;
}

#leaderboard-list li
{
    padding: 0.25rem 0;
    color: #c4b5fd;
    font-weight: bold;
}

.contact-link 
{
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 700;
}

.contact-link:hover 
{
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.8);
}

.contact-row 
{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon-wrap
{
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-icon 
{
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.7));
}

.contact-link 
{
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 700;
}

.contact-link:hover 
{
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.8);
}

.contact-icon 
{
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(236, 72, 153, 0.7));
}

/* Responsive Design */
@media (max-width: 1200px) 
{
    .journey-path 
    {
        gap: 1rem;
        align-items: center;
    }

    .portal 
    {
        width: 140px;
        height: 220px;
    }

    .portal-icon 
    {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    }

   .portal-icon img 
    {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    } 

    .portal-label 
    {
        font-size: 16px;
    }
}

@media (max-width: 768px) 
{
    body 
    {
        overflow-y: auto;
    }

    .logo-center h1 
    {
        font-size: 2rem;
    }

    .logo-center p 
    {
        font-size: 1rem;
    }

    .journey-container 
    {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .journey-path 
    {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding: 4rem 0;
    }

    .journey-path::before 
    {
        left: 50%;
        top: 0;
        bottom: 0;
        width: 4px;
        height: 100%;
        right: auto;
        transform: translateX(-50%);
        background: linear-gradient(180deg, 
            #3b82f6 0%, 
            #ffa500 20%, 
            #10b981 40%, 
            #ec4899 60%, 
            #8b5cf6 80%, 
            #f59e0b 100%);
    }

    .traveler 
    {
        left: 50%;
        bottom: auto;
        top: 0;
        margin-left: -20px;
        animation: walkVertical 20s linear infinite;
    }

    @keyframes walkVertical 
    {
        0% { top: 0; }
        100% { top: calc(100% - 80px); }
    }

    .portal 
    {
        width: 200px;
        height: 300px;
    }

    .portal-icon 
    {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    }

    .portal-icon img 
    {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    } 

    .portal-inner::after 
    {
        width: 160px;
        height: 160px;
    }

    .portal-label 
    {
        font-size: 24px;
    }

    .info-panel 
    {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 2rem auto;
        max-width: calc(100% - 2rem);
    }

    .modal-content 
    {
        width: calc(100% - 2rem);
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .modal h2 
    {
        font-size: 2rem;
    }

    .team-grid 
    {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) 
{
    .logo-center h1 
    {
        font-size: 1.5rem;
        
    }

    .portal 
    {
        
        width: 140px;
        height: 200px;
    }

    .portal-icon 
    {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    }

   .portal-icon img 
    {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    } 

    .portal-inner::after 
    {
        width: 100px;
        height: 100px;
    }
    .traveler 
    {
        font-size: 2.5rem;
    }

    /* Rotate character to face downward on mobile */
    .traveler::before,
    .traveler::after 
    {
        transform: rotate(90deg);
        transform-origin: center;
    }

    .traveler::before 
    {
        left: -5px;
        top: 10px;
    }


    .traveler::after 
    {
        left: 2.5px;
        top: -10px;
    }

    .portal-label
    {

        font-size: 1rem;
    }

    /* Portal expansion effect */
    .portal.expanding
{
    /* expand and fade out */
    transform: scale(20);
    opacity: 0;
    z-index: 2000; 
}

.portal.hidden, .card-front.hidden
{
    visibility: hidden;
}
}

@keyframes ShootingStars
{
    0% 
    {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% 
    {
        transform: translate(600px, 300px);
        opacity: 0;
    }
}
