/* fonts */

/* Federant Regular */
@font-face {
  font-family: 'Federant';
  src: url('Federant-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Crimson Text Regular */
@font-face {
  font-family: 'Crimson Text';
  src: url('CrimsonText-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Oleo Script Regular */
@font-face {
  font-family: 'Oleo Script';
  src: url('OleoScript-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* body */
html, body {
    cursor: url('beagle.png') 25 25, auto;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('tiedye.webp');
    background-size: cover;
    padding-top: 75px; 
    text-align: center;
}

/* Header */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    padding: 15px;
    z-index: 999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title, .stl {
    font-size: 28px;
    font-weight: bold;
    font-family: "Crimson Text", serif;
    text-decoration: none;
    color: #fff;
}

/* Hamburger Menu */
.hamburger, .roc-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    width: 30px;
    height: 22px;
}

.header-container .hamburger {
    margin-right: 35px;
}

.hamburger span, .roc-hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
}

/* Body text */
.se, .spe {
    background: red;
    border: 10px solid rgb(8, 0, 255);
    border-radius: 5px;
    padding: 5px;
    color: #fff;
    width: 25%;
    margin: 20px auto;
    text-align: center;
}

/* Mobile Navs */
.mobile-nav, .roc-menu {
    position: fixed;
    top: 0;
    width: 260px;
    height: 100%;
    background: linear-gradient(135deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding-top: 60px;
    overflow-y: auto;
    transition: 0.3s;
}

body.menu-open-left .roc-hamburger {
    display: none;
}

/* Right hamburger menu colors and behavior */
.mobile-nav li:nth-child(1) a { color: #ff0000; }
.mobile-nav li:nth-child(2) a { color: #ff7f00; }
.mobile-nav li:nth-child(3) a { color: #ffff00; }
.mobile-nav li:nth-child(4) a { color: #00ff00; }
.mobile-nav li:nth-child(5) a { color: #00b3ff; }
.mobile-nav li:nth-child(6) a { color: #ff0000; }
.mobile-nav li:nth-child(7) a { color: #ff7f00; }
.mobile-nav li:nth-child(8) a { color: #ffff00; }
.mobile-nav li:nth-child(9) a { color: #00ff00; }

.roc-menu li:nth-child(1) a { color: #ff0000; }
.roc-menu li:nth-child(2) a { color: #ff7f00; }
.roc-menu li:nth-child(3) a { color: #ffff00; }
.roc-menu li:nth-child(4) a { color: #00ff00; }

.mobile-nav {
    right: -260px;
}

.roc-menu {
    left: -260px;
}

.mobile-nav.active {
    right: 0;
}

.roc-menu.active {
    left: 0;
}

.mobile-nav ul, .roc-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li, .roc-menu li {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}

.mobile-nav a, .roc-menu a {
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    font-family: "Federant", serif;
    border: 2px solid #fff;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0,0,0,0.7);
    display: inline-block;
}

/* Bear icon */
.bear-icon {
    width: 25px;
    height: 25px;
}

.roc-menu .rsi {
    width: 25px;
    height: 25px;
}

/* ROC page header adjustments */
body.roc .roc-hamburger {
    flex: none;
    z-index: 1000;
}

/* Rise of Castles pages */
.play-guide {
    background-color: rgba(255,255,255,0.7);
    border: 1px solid #8b5a2b;
    padding: 15px;
    margin: 100px 0 0 0;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(139,90,43,0.3);
}

.play-guide h3 {
    font-family: 'Federant', serif;
    font-size: 28.8px;
    margin-bottom: 16px;
}

.play-guide ul {
    list-style-type: square;
    padding-left: 24px;
}

.play-guide li {
    margin-bottom: 8px;
    list-style-type: none;
}

/* Page backgrounds */
body.roc, body.lftph, body.eden, body.boh {
    background-image: url('rocb.jpg');
}

/* Other page sections */
.edeng p, .pdf-link, .temppara {
    background-color: rgba(255,255,255,0.8);
    border: 1px solid #8b5a2b;
    padding: 15px;
    margin: 100px 25px;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(139,90,43,0.3);
    text-align: center;
}

/* Footer */
footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    display: flex;
    font-family: "Oleo Script", system-ui;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    font-size: 14px;
    height: 45px;
    box-sizing: border-box;
    white-space: nowrap;
}

.footer-left p {
    margin: 0;
}

.footer-right {
    display: flex;
    align-items: center;
}

/* Music Player */
.music-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

#play-btn {
    background: #fff;
    color: black;
    border: none;
    font-size: 16px;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
}

.waveform {
    display: flex;
    gap: 3px;
    height: 12px;
    align-items: flex-end;
}

.waveform span {
    display: block;
    width: 3px;
    height: 5px;
    background: #fff;
    border-radius: 2px;
    animation: none;
}

.waveform.active span {
    animation: wave 1s infinite ease-in-out;
}

.waveform.active span:nth-child(1) { animation-delay: 0s; }
.waveform.active span:nth-child(2) { animation-delay: 0.2s; }
.waveform.active span:nth-child(3) { animation-delay: 0.4s; }
.waveform.active span:nth-child(4) { animation-delay: 0.6s; }
.waveform.active span:nth-child(5) { animation-delay: 0.8s; }

@keyframes wave {
    0%, 100% { height: 5px; }
    50% { height: 12px; }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.song-title {
    font-size: 14px;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1300px) {
    /* Main responsive header styles */
    header {
        padding: 15px 15px;
    }
    .site-title, .stl {
        font-size: 20px;
    }
    .hamburger, .roc-hamburger {
        width: 28px;
        height: 20px;
        padding: 0;
    }
    .header-container .hamburger {
        margin-right: 0;
    }
    body {
        padding-top: 65px;
        background-image: url('tiedyer.jpg');
    }
    .waveform {
        display: none;
    }
    
    .se, .spe { width: 80%; font-size: 16px; }
    .mobile-nav, .roc-menu { width: 220px; padding-top: 50px; }
    .mobile-nav a, .roc-menu a { font-size: 14px; padding: 6px 10px; }

    /* Consistent styles for all relevant pages */
    body.roc .header-container,
    body.eden .header-container,
    body.boh .header-container,
    body.lftph .header-container {
        padding: 6px 15px;
    }

    #play-btn {
        margin: 0 5px 0 0;
    }

    body.roc,
    body.eden,
    body.boh,
    body.lftph {
        background-size: cover;
        background-image: url('rocri.jpg');
        margin: 50px 0 100px 0;
        padding: 0;
    }

    body.eden p {
        padding: 10px 10px;
    }

    body.roc .site-title,
    body.eden .site-title,
    body.boh .site-title,
    body.lftph .site-title {
        font-size: 15px;
    }

    body.roc .roc-hamburger,
    body.eden .roc-hamburger,
    body.boh .roc-hamburger,
    body.lftph .roc-hamburger {
        width: 28px;
        height: 20px;
    }
    
    body.roc .play-guide {
        width: 80%;
        margin: 50px 0 50px 0;
        font-size: 16px;
    }

    body.lftph .pdf-link {
        margin: 50px 20px;
    }

    body.eden .edeng p {
        margin: 50px 15px;
        font-size: 16px;
    }

@media (max-width: 768px) {
    .hamburger { padding-right: 25px; }
    .se, .spe { font-size: 14px; }
    .mobile-nav, .roc-menu { width: 200px; }
}