
@font-face {
    font-family: WatermintScript;
    src: url(./font/WatermintScript_PERSONAL_USE_ONLY.otf);
}
body {
    background: transparent;
    /*font-family: 'WatermintScript', cursive; */
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: rgb(211, 214, 199);
    /* Ensure the body acts as a proper viewport base */
    min-height: 100vh; }

/* BACKGROUND IMAGE LOGIC */
/* Container that holds all the background slices */
#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Keeps it strictly behind your UI elements */
    overflow: hidden;
}

/* Shared properties for all background layers */
.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    
    /* Default hidden state properties */
    opacity: 0; 
    z-index: 1;

    /* CRUCIAL FIX: When a layer LOSES its active class, 
       it drops to the bottom layer instantly (z-index 0s), but 
       holds its 100% opacity for 1 second (opacity 0s 1s delay) 
       before turning off. This covers up the gray skeleton background. */
    transition: opacity 0s 1s, z-index 0s 0s;
}

/* Assign the respective image assets */
.bg-layer.ship    { background-image: url('./img/bg_ship.jpg'); }
.bg-layer.day     { background-image: url('./img/bg_island_day.png'); }
.bg-layer.sunrise { background-image: url('./img/bg_island_sunrise.png'); }
.bg-layer.sunset  { background-image: url('./img/bg_island_sunset.png'); }
.bg-layer.night   { background-image: url('./img/bg_island_night.png'); }

/* State Controls: When a layer GAINS its active class */
body.state-ship .bg-layer.ship,
body.state-day .bg-layer.day,
body.state-sunrise .bg-layer.sunrise,
body.state-sunset .bg-layer.sunset,
body.state-night .bg-layer.night {
    opacity: 1;
    z-index: 2; /* Pulls the incoming image to the absolute top layer */
    
    /* Smoothly fade the incoming top layer in immediately over 1s */
    transition: opacity 1s ease-in-out, z-index 0s;
}



hr {
    border-color: var(--txtColor);
}
.ntxt { font-family:serif; }
.box {  background-color: rgba(48, 56, 46, 0.65);
        border: 0px solid; }
p { font-family: 'Courier New', Courier, monospace, "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans; }


svg.icon:not(.popup) {
    width: 1em;
    height: 1em;
    /*vertical-align: middle; /* works, but -0.125em often aligns perfectly with the text baseline */
    vertical-align: -0.125em;
    stroke: var(--txtColor); /* Keeps dynamic coloring intact */
    color: var(--txtColor);
    fill: none;
}
svg.icon.popup { vertical-align: -0.125em; margin-bottom: 5px; }
.inlineicon { vertical-align:text-bottom; }
.smallicon { 
    width: 2.3rem;
    height: 2.3rem;
 }
.bigicon { 
    width: 10rem;
    height: 10rem;
 }
@media (min-width: 500px) {
    .bigicon { 
    width: 15rem;
    height: 15rem;
 }
    .smallicon { 
    width: 3rem;
    height: 3rem;
 }  }
@media (max-width: 500px) {
    :root {
        --fsH1: 3.0rem;
        --fsH2: 2.7rem;
        --fsH3: 2.2rem;
        --fsH4: 1.8rem;
        --fsH5: 1.4rem;
        --fsH6: 1.1rem;
        --fsP : 0.9rem; } }

.vcenterchild {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    height: 100%; }
.vcenterparent { 
    display: flex;
    align-items: center; }

.tile5 {
    margin-left: 1% !important;
    width: calc( (100 - (1 * 6)) * 0.2% );
    justify-content: center;
    align-items: center;
    display: flex; }
.tile3 {
    margin-left: 10% !important;
    width: calc( (100 - (10 * 4)) * 0.33333333% );
    justify-content: center;
    align-items: center;
    display: flex; }

    .offset-by-1-tile5 { margin-left: calc( (1 * 18.8%) + (2 * 1%) ) !important; /* 18.8% + 1% = 19.8% */ }
    .offset-by-2-tile5 { margin-left: calc( (2 * 18.8%) + (3 * 1%) ) !important; /* 37.6% + 2% = 39.6% */ }
    .offset-by-3-tile5 { margin-left: calc( (3 * 18.8%) + (4 * 1%) ) !important; /* 56.4% + 3% = 59.4% */ }
    .offset-by-4-tile5 { margin-left: calc( (4 * 18.8%) + (5 * 1%) ) !important; /* 75.2% + 4% = 79.2% */ }
.maprow { margin-top: 1% !important; }