@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,700|Quattrocento:700');

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: lighter;
    background: white;
    overflow: hidden;
}

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

h1,
h2 {
    text-align: center;
    font-family: "Quattrocento", Georgia, 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 30pt;
    margin-bottom: 10px;
}

h2 {
    font-size: 14pt;
    font-style: italic;
    font-family: sans-serif;
    font-weight: lighter;
    color: #BBB;
}

.header {
    padding-top: 3em;
    padding-bottom: 3em;
    color: #FF69B4;   /* 粉色 */
}

/*
  Built-in class:
    # author: Name
*/
.byline {
    font-style: italic;
}

.written-in-ink {
    z-index: 3;
    font-size: 9pt;
    font-family: sans-serif;
    text-align: center;
    font-weight: 700;
    position: fixed;
    display: none;
    width: 100%;
    background: white;
    margin: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    height: 14px;
    top: 0;
}

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

/* 
  Enables <iframe> support work on itch.io when using mobile iOS
*/
.outerContainer {
    position: absolute;
    display: block;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    overflow: scroll;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    margin-top: 24px;
    background-size: cover;
    background-repeat: no-repeat;
}

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

.container {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 4em;
    background: white;
}

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

p {
    font-size: 13pt;
    color: #888;
    line-height: 1.7em;
    font-weight: lighter;
}

a {
    font-weight: 700;
    color: #b97c2c;
    font-family: sans-serif;
    text-decoration: none;
}

.unclickable {
    font-weight: 700;
    color: #4f3411;
    font-family: sans-serif;
    text-decoration: none;
    cursor: not-allowed;
}

a:hover {
    color: black;
}

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

    a:hover {
        transition: color 0.1s;
    }
}

strong {
    color: black;
    font-weight: bold;
}

img {
    display: none;
    margin: 0 auto;
    max-width: 100%;
}

.container .hide {
    opacity: 0.0;
}

.container .invisible {
    display: none;
}

.container>* {
    opacity: 1.0;
}

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

/*
  Class applied to all choices
  (Will always appear inside <p> element by default.)
*/
.choice {
    text-align: center;
    line-height: 1.7em;
}

/* 
  Class applied to first choice
*/
:not(.choice)+.choice {
    padding-top: 1em;
}

/*
  Class applied to choice links
*/
.choice a, .choice span {
    font-size: 15pt;
}

/* 
  Built-in class:
    The End # CLASS: end
*/
.end {
    text-align: center;
    font-weight: bold;
    color: black;
    padding-top: 20px;
    padding-bottom: 20px;
}

#controls {
    z-index: 4;
    font-size: 9pt;
    text-align: center;
    padding-bottom: 6px;
    position: fixed;
    right: 14px;
    top: 4px;
    user-select: none;
    background: white;
}

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

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

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

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

/* 
  Dark Theme (Added in Inky 0.10.0)
    # theme: dark
*/

body.dark {
    background: black;
    color: #F5F5F5;
}

.dark h2 {
    color: #666;
}

.dark .container {
    background: black;
}

.dark .written-in-ink {
    background: black;
}

.dark a {
    color: #cc8f1a;
}
.dark .unclickable{
    color: #c4af87;
    cursor:not-allowed;
}

.dark a:hover {
    color: white;
}

@media screen and (prefers-reduced-motion: no-preference) {
    .dark a {
        transition: color 0.6s;
    }
}

.dark strong {
    color: white;
}

.dark #controls [disabled] {
    color: #444;
}

.dark .end {
    color: white;
}

.dark #controls {
    background: black;
}

p.italic {
    font-style: italic;
}

p.normal {
    font-weight: 400;
}

p.medium {
    font-weight: 500;
}

p.semibold {
    font-weight: 600;
}

p.bold {
    font-weight: 700;
}

p.extrabold {
    font-weight: 800;
}

p.black {
    font-weight: 900;
}

p.red {
    color: red !important;
}

p.red-italic {
    color: red !important;
    font-style: italic;
}

.medium-italic {
    font-weight: 500;
    font-style: italic;
}

.red { color: red; }
.gojo { color: DarkTurquoise; }
.og { color: OrangeRed; }

p.center {
    text-align:center !important;
}

/* pink 普通段落 */
#story p.pink {
    color: #FF8FB8 !important;
}

/* pink 选项 */
#story p.pink a {
    color: #FF8FB8 !important;
}


/* 鼠标经过 */
#story p.pink a:hover {
    color: #FFC6DD !important;
}
#story p.center-bold {
    text-align: center !important;
    font-weight: 700 !important;
}

.story a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.story a:hover {
    color: #FFD54F;
}

.story a.visited {
    color: #888888;
}

/* 普通段落 */
#story p.danger {
    color: #d9534f !important;
}

/* danger 选项 */
#story p.danger a {
    color: #d9534f !important;
}

/* 鼠标经过 */
#story p.danger a:hover {
    color: #ff8080 !important;
}

body.dark p {
    color: #dddddd;
}


#story p.red {
    color: red !important;
}

#story p.gojo {
    color: DarkTurquoise !important;
}

#story p.og {
    color: OrangeRed !important;
}

#story p.italic {
    font-style: italic !important;
}

span.center-bold {
    display: block;
    width: 100%;
    text-align: center !important;
    font-weight: 700 !important;
}

.top-small {
    display:block;
    margin-top:40px;
}

.top-medium {
    display:block;
    margin-top:80px;
}

.top-large {
    display:block;
    margin-top:160px;
}

.top-space {
    display: block;
    margin-top: 120px;
}

.center-bold {
    display: block;
    text-align: center;
    font-weight: 700;
}

.center {
    text-align: center;
}

.author {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 80px;
    margin-bottom: 30px;
}


.affection-notice {
    position: fixed;

    top: 18%;
    left: 50%;
    transform: translate(-50%, -20px);

    padding: 10px 30px;

    background: rgba(20,20,25,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;

    box-shadow:
        0 0 25px rgba(255,255,255,0.08),
        0 0 12px rgba(255,190,220,0.12);

color: rgb(255,190,220);

-webkit-text-stroke: 0.5px rgba(150,40,90,0.4);

    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    text-align: center;

    opacity: 0;

    transition:
        opacity .45s ease,
        transform .45s ease;

    pointer-events: none;
    z-index: 9999;
}

.affection-notice.show {
    opacity: 1;
    transform: translate(-50%,0);
}

.item-notice {
    position: fixed;
    top: 18%;
    left: 50%;
    transform: translate(-50%, -20px);

    padding: 10px 30px;

    background: rgba(30, 35, 45, 0.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;

    color: rgb(255, 235, 170);
    -webkit-text-stroke: 0.5px rgba(120, 90, 20, 0.6);

    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;

    opacity: 0;
    transition: 0.45s;

    pointer-events: none;
    z-index: 9999;
}

.item-notice.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* =========================
   开场密码界面
   ========================= */

#password-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
}

.password-box {
    width: 300px;
    text-align: center;
}

.password-title {
    margin-bottom: 20px;

    color: #888;
    font-size: 18px;
    letter-spacing: 2px;
}

#password-input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;

    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;

    background: transparent;
    color: #666;

    font-size: 15px;
    text-align: center;
}

#password-input:focus {
    border-bottom-color: #ff8fb8;
}

#password-button {
    margin-top: 22px;
    padding: 5px 12px;

    border: none;
    background: transparent;

    color: #b97c2c;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

#password-button:hover {
    color: #ff8fb8;
}

#password-error {
    min-height: 20px;
    margin-top: 12px;

    color: #ff7f9f;
    font-size: 13px;
}

/* 密码正确前隐藏整个游戏 */

#game-screen {
    display: none;
}

/* =========================
   返回上一级
   ========================= */

#back-button {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 9998;

    display: none;

    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;

    color: #999;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;

    cursor: pointer;
}

#back-button:hover {
    color: #ff8fb8;
}

#back-button:focus,
#back-button:active {
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
}

/* pink 正文 */
#story p.pink {
    color: #FF8FB8 !important;
}

/* pink 选项文字 */
#story p.choice.pink a {
    color: #FF8FB8 !important;
}

/* pink 选项鼠标经过 */
#story p.choice.pink a:hover {
    color: #FFC6DD !important;
}

/* 红色特殊选项 */
#story p.choice.red a {
    color: #d9534f !important;
}

/* 鼠标经过 */
#story p.choice.red a:hover {
    color: #ff8080 !important;
}

/* =========================
   DarkTurquoise 选项
   ========================= */

#story p.choice.gojo a {
    color: DarkTurquoise !important;
}

#story p.choice.gojo a:hover {
    color: #7FFFD4 !important;
}


/* =========================
   LimeGreen 选项
   ========================= */

#story p.choice.green a {
    color: LimeGreen !important;
}

#story p.choice.green a:hover {
    color: #7CFC00 !important;
}
