/* ----- General Reset ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----- Body ----- */
body {
    display: flex;
    flex-direction: column;
    align-items: center;  
    justify-content: center;  
    min-height: 100vh;
    font-family: 'CourierCustom', monospace;
    background: #f0f0f0;
    position: relative; 
    cursor: url("img/cursor.png"), auto;
}

/* ----- Fonts ----- */
@font-face { font-family: 'Jade'; src: url('jade.ttf') format('truetype'); }
@font-face { font-family: 'CourierCustom'; src: url('courier.ttf') format('truetype'); }

/* ----- Headings ----- */
h1, h3 {
    font-family: 'Jade', sans-serif;
    font-weight: lighter;
    color: #51a0fa;
    line-height: 1;
    font-size: 100px;
}

/* Body text & buttons */
body, p, button, .track-info, .nav-buttons button, #return-btn {
    font-family: 'CourierCustom', monospace;
    font-weight: bold;
    font-size: 20px;
}

/* ----- Top Container ----- */
.top-container {
    width: 70%;
    height: 100px;
    background-image: url('img/pattern.png');
    background-repeat: repeat;
    background-position: 0 0;
    border: 2px solid #103772;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10px;
    margin: 10px 0;
    animation: scrollPatternReverse 10s linear infinite;
}

/* ----- Middle Container ----- */
.middle-container {
    width: 70%;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;   
    gap: 6px;  
    align-items: stretch;
    margin-bottom: 10px;
    position: relative;
}

/* ----- Navigation Buttons ----- */
.nav-buttons {
    width: 70%;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.nav-buttons button {
    flex: 1; 
    padding: 10px 0;
    border-radius: 10px;
    border: 2px solid #103772;
    background-color: #fff;
    cursor: pointer;
}

.nav-buttons button:hover {
    background-color: #a0ccff;
    animation: shake 0.3s infinite;
}

#return-btn {
    padding: 10px 15px;
    border-radius: 10px;
    border: 2px solid #103772;
    background-color: #fff;
    cursor: pointer;
}

#return-btn:hover { background-color: #a0ccff; }

/* ----- Bottom Container ----- */
.bottom-container {
    width: 70%;
    height: 100px;
    background-image: url('img/pattern.png');
    background-repeat: repeat;
    background-position: 0 0;
    border: 2px solid #103772;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    animation: scrollPatternReverse 10s linear infinite;
}

/* ----- Music Controls ----- */
.music-controls {
    display: flex;
    align-items: center;
}

.music-controls button {
    margin-right: 5px;
    border-radius: 10px;
    border: 2px solid #103772;
    background-color: #fff;
    padding: 5px 10px;
    font-size: 18px;
    color: #103772;
}

.music-controls button:hover { background-color: #a0ccff; }

.music-controls input[type="range"] {
    width: 80px;
    margin-left: 5px;
    height: 6px;
}

.track-info {
    flex-grow: 1;
    margin: 0 10px;
    background-color: #103772;
    color: white;
    border-radius: 10px;
    padding: 5px 10px;
    overflow: hidden;
}

.progress-container input[type="range"] {
    width: 100px;
}

/* ----- Range Slider Styling ----- */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid #103772;
    cursor: pointer;
    margin-top: -4px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: #103772;
    cursor: pointer;
}

/* ----- Shake Animation ----- */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

/* ----- Pattern Animation ----- */
@keyframes scrollPatternReverse {
    from { background-position: 100px 100px; }
    to { background-position: 0 0; }
}

/* ----- OC Boxes ----- */
.oc-container {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.oc-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    font-family: 'Jade', sans-serif;
    color: white;
}

.oc-header h3 {
    font-size: 50px;
    color: white;
}

.oc-arrow { margin-right: 8px; }

.oc-info {
    display: none;
    padding: 10px;
    font-family: 'Courier', monospace;
}

.oc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oc-container p {
    color: white;
}

.oc-container hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.473);
    margin: 12px 0;
}

/* ----- Love Page Boxes ----- */
.love-container {
    display: flex;
    flex-direction: column; 
    gap: 6px;
}

.love-box {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.love-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    font-family: 'Jade', sans-serif;
    color: white;
}

.love-header h3 {
    font-size: 50px;
    margin-left: 5px;
    color: white;
}

.love-arrow {
    display: inline-block;
    margin-right: 8px;
}

.love-info {
    display: none;
    padding: 10px;
    font-family: 'CourierCustom', monospace;
    color: #103772;
}

/* ----- Ship Page Boxes ----- */
.ship-container {
    display: flex;
    flex-direction: column; 
    gap: 6px;   
}

.ship-box {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.ship-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    font-family: 'Jade', sans-serif;
    color: white;
}

.ship-header h3 {
    font-size: 50px;
    margin-left: 5px;
    color: white;
}

.ship-arrow {
    display: inline-block;
    margin-right: 8px;
}

.ship-info {
    display: none; 
    padding: 10px;
    font-family: 'CourierCustom', monospace;
    color: #103772;
}

/* Container that holds all ship images */
.ship-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 👈 3 images per row */
    gap: 10px;
    margin-top: 10px;
}

/* Each image + text */
.ship-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Ship images */
.ship-item img {
    width: 100%;
    max-width: 400px; /* control image size */
}

/* ----- Middle Container Special Settings ----- */
#middle-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

/* ----- Spoiler ----- */
.spoiler summary {
    cursor: pointer;
    font-family: 'Courier', monospace;
    color: #51a0fa;
}

.spoiler p {
    color: #103772;
    margin-top: 6px;
}

.spoiler h2 {
    font-family: 'Jade', sans-serif;
    font-weight: lighter;
    color: #51a0fa;
    line-height: 1;
    font-size: 70px;
}

/* ----- Bottom-Right Image ----- */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    right: 0;
    width: 280px;
    height: 280px;
    background: url('img/jade.png') no-repeat;
    background-size: contain;
    pointer-events: none; 
    z-index: 0; 
    border-radius: 15px;
}

