@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Proxima+Nova:ital,wght@0,400;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400&display=swap');


body {
    font-family: 'Proxima Nova', 'Open Sans', sans-serif;
    font-weight: 400;
    background: #171822;
    color: #ffffff;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

@media screen and (prefers-reduced-motion: no-preference) {
    body.switched {
        transition: color 0.3s, background-color 0.3s;
    }
}


h1, h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-align: center;
    margin: 0;
    padding: 0;
    letter-spacing: -0.03em;
}

h1 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #FF4CAD; 
    text-transform: uppercase;
}

h2 {
    font-size: 24px;
    color: #36D6FF; 
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    color: #e0e0e0;
    line-height: 1.7em;
    margin-bottom: 1em;
}


.header {
    padding-top: 2em;
    padding-bottom: 2em;
    border-bottom: 2px solid #36D6FF;
    margin-bottom: 2em;
}

.byline {
    font-style: italic;
    color: #9fa1b3;
    text-align: center;
    font-size: 16px;
}


.written-in-ink {
    z-index: 3;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    position: fixed;
    display: block;
    width: 100%;
    background: #171822;
    margin: 0;
    padding: 8px 0;
    height: 14px;
    top: 0;
    color: #9fa1b3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

@media screen and (prefers-reduced-motion: no-preference) {
    .written-in-ink {
        transition: color 0.3s, background 0.3s;
    }
}


.outerContainer {
    position: absolute;
    display: block;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    overflow: auto;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    margin-top: 30px;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #171822;
    background-image: linear-gradient(rgba(23, 24, 34, 0.95), rgba(23, 24, 34, 0.97)), 
                      repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(54, 214, 255, 0.05) 2px, rgba(54, 214, 255, 0.05) 4px);
}

@media screen and (max-width: 980px) {
    .outerContainer {
        margin-top: 44px;
    }
}

.container {
    display: block;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    padding-top: 4em;
    background: #20222F;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(54, 214, 255, 0.1);
}

@media screen and (prefers-reduced-motion: no-preference) {
    .switched .container {
        transition: background-color 0.3s;
    }
}


a {
    font-weight: 600;
    color: #36D6FF;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

a:hover {
    color: #FF4CAD;
}

a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #FF4CAD;
    transition: width 0.3s;
}

a:hover:after {
    width: 100%;
}

.unclickable {
    font-weight: 600;
    color: #52555E;
    cursor: not-allowed;
    text-decoration: none;
}

@media screen and (prefers-reduced-motion: no-preference) {
    a {
        transition: color 0.3s;
    }
    
    a:hover {
        transition: color 0.1s;
    }
}

strong {
    color: #FF4CAD;
    font-weight: 600;
}


img {
    display: block;
    margin: 2em auto;
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}


.container .hide {
    opacity: 0.0;
}

.container .invisible {
    display: none;
}

.container > * {
    opacity: 1.0;
}

@media screen and (prefers-reduced-motion: no-preference) {
    .container > * {
        transition: opacity 0.5s;
    }
}


.choice {
    text-align: center;
    line-height: 1.5em;
    margin-bottom: 0.5em;
}

:not(.choice) + .choice {
    padding-top: 1.5em;
    margin-top: 1.5em;
    border-top: 1px solid rgba(54, 214, 255, 0.1);
}

.choice a, .choice span {
    font-size: 18px;
    display: block;
    padding: 12px 16px;
    margin: 10px 0;
    background: rgba(54, 214, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #36D6FF;
    font-family: 'Proxima Nova', sans-serif;
    transition: all 0.2s;
}

.choice a:hover, .choice a:focus {
    background: rgba(54, 214, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-left: 3px solid #FF4CAD;
}

.choice a:after {
    display: none;
}


.end {
    text-align: center;
    font-weight: bold;
    color: #FF4CAD;
    padding: 30px 0;
    font-size: 24px;
    border-top: 2px solid #36D6FF;
    margin-top: 2em;
}


#controls {
    z-index: 4;
    font-size: 12px;
    text-align: center;
    padding: 8px 16px;
    position: fixed;
    right: 14px;
    top: 4px;
    user-select: none;
    background: #20222F;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#controls a {
    color: #36D6FF;
    transition: color 0.2s;
}

#controls a:hover {
    color: #FF4CAD;
}

#controls a:after {
    display: none;
}

@media screen and (prefers-reduced-motion: no-preference) {
    #controls {
        transition: color 0.3s, background 0.3s;
    }
}

#controls [disabled] {
    color: #52555E;
}

#controls > *:not(:last-child):after {
    content: " | ";
    color: #52555E;
}

@media screen and (max-width: 980px) {
    #controls {
        z-index: 2;
        padding-top: 24px;
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
    }
}


.character {
    color: #FF4CAD;
    font-weight: 600;
}

.location {
    color: #36D6FF;
    font-weight: 600;
}

.note {
    font-family: 'JetBrains Mono', Consolas, monospace;
    display: block;
    padding: 2px 10px;
    font-size: 16px;
    line-height: 1.6;
    color: #d6d6d6;
}

.dialogue {
    color: white;
    font-style: italic;
}

.stats {
    display: block;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 15px;
    color: #36D6FF;
    background: rgba(54, 214, 255, 0.1);
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 4px;
}

.result {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #FF4CAD;
    margin: 20px 0;
    padding: 10px 20px;
    border: 2px solid #FF4CAD;
    border-radius: 4px;
}


.main-text {
    position: relative;
}


body.light {
    background: #f0f2f5;
    color: #333;
}

.light .container {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(54, 214, 255, 0.2);
}

.light h1 {
    color: #FF4CAD;
}

.light h2 {
    color: #36D6FF;
}

.light p {
    color: #333;
}

.light .written-in-ink {
    background: white;
    color: #666;
}

.light a {
    color: #36D6FF;
}

.light a:hover {
    color: #FF4CAD;
}

.light .unclickable {
    color: #52555E;
}

.light strong {
    color: #FF4CAD;
}

.light #controls [disabled] {
    color: #ccc;
}

.light .end {
    color: #FF4CAD;
}

.light #controls {
    background: white;
}

.light .dialogue {
    color: #333;
}

.light .outerContainer {
    background-color: #f0f2f5;
    background-image: linear-gradient(rgba(240, 242, 245, 0.95), rgba(240, 242, 245, 0.97)), 
                      repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(54, 214, 255, 0.05) 2px, rgba(54, 214, 255, 0.05) 4px);
}

.light .choice a, .light .choice span {
    background: rgba(54, 214, 255, 0.1);
}

.light .note {
    color: #555;
}


@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.night_scene, .bakery_exterior, .glowing_bakery, .bakery_interior, 
.passageway, .baking_room, .dawn_bakery, .sunrise, .ending {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease;
}

.night_scene {
    background-image: linear-gradient(rgba(23, 24, 34, 0.8), rgba(23, 24, 34, 0.9)), 
                      url('https://i.pinimg.com/736x/0a/4e/af/0a4eafb1929e4f44252bd36fc5970437.jpg');
}

.bakery_exterior {
    background-image: linear-gradient(rgba(23, 24, 34, 0.7), rgba(23, 24, 34, 0.8)), 
                      url('https://i.pinimg.com/736x/0a/4e/af/0a4eafb1929e4f44252bd36fc5970437.jpg');
}

.glowing_bakery {
    background-image: linear-gradient(rgba(23, 24, 34, 0.6), rgba(23, 24, 34, 0.7)), 
                      url('https://images.unsplash.com/photo-1517433670267-08bbd4be890f');
}

.bakery_interior {
    background-image: linear-gradient(rgba(23, 24, 34, 0.6), rgba(23, 24, 34, 0.7)), 
                      url('https://images.unsplash.com/photo-1517686469429-8bdb88b9f907');
}

.passageway {
    background-image: linear-gradient(rgba(23, 24, 34, 0.7), rgba(23, 24, 34, 0.8)), 
                      url('https://images.unsplash.com/photo-1527903789995-dc8ad2ad6de0');
}

.baking_room {
    background-image: linear-gradient(rgba(23, 24, 34, 0.5), rgba(23, 24, 34, 0.6)), 
                      url('https://images.unsplash.com/photo-1517686469429-8bdb88b9f907');
}

.dawn_bakery, .sunrise {
    background-image: linear-gradient(rgba(23, 24, 34, 0.6), rgba(23, 24, 34, 0.7)), 
                      url('https://images.unsplash.com/photo-1446776811953-b23d57bd21aa');
}

.ending {
    background-image: linear-gradient(rgba(23, 24, 34, 0.6), rgba(23, 24, 34, 0.7)), 
                      url('https://images.unsplash.com/photo-1507608616759-54f48f0af0ee');
}