
.episode {
    height: 100vh;
    display: none;
}


.game-rules {
    font-weight: 500;
    margin: 100px auto 0;
    max-width: 600px;
    min-width: 300px;
    padding: 20px 30px;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 90%, rgba(255,255,255,0.0));
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(10px);
    font-size: 18px;
    color: rgba(0,0,0,0.8);
}

.episode-introduction {}
.episode-endgame {}
.intro {
    margin: 200px 0 0;
    background: radial-gradient(circle, rgba(0, 0, 0, .85) 40%, rgba(0, 0, 0, 0) 60%);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    vertical-align: center;
    text-align: center;
    padding-bottom: 30px;
}
.intro-person img { 
    margin-top: -250px;
    height: 300px 
}
.intro-message {
    margin: 0 30%;
    padding: 10px 0 10px;
    font-size: 18px;
    text-align: left;
}
.intro-from {
    font-weight: bold;
    font-style: italic;
    font-size: 20px;
    color: rgba(209, 119, 103, 1);
    margin: 10px 30% 0;
    border-bottom: 1px solid rgba(209, 119, 103, .33);
}
.intro-next, .restart {
    font-style: italic;
    font-size: 25px;
    color: #fff;
    border-radius: 5px;
    width: 200px;
    margin: 10px 30% 0;
    padding: 15px 0;
    display: inline-block;
    background-image: url(../assets/button.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    box-shadow: 0 0 15px rgba(255,255,255, 0.1);
    cursor:pointer;
}
.intro-next:hover, .restart:hover {
    box-shadow: 0 0 15px rgba(255,255,255, 0.5);    
}


.configure {
    text-align: center;
    padding: 10px;
    display:none;
}
.configure input { padding: 2px }
.configure-show {
    text-align: center;
    padding: 5px; 
    margin: 10px 25%;   
    background: radial-gradient(circle, rgba(0, 0, 0, .33) 40%, rgba(0, 0, 0, 0) 80%);
}
.configure-show .button { 
    display: inline-block;
    padding: 5px 10px;
    color: rgba(255,255,255, 0.8);
    cursor: pointer;
}
.configure-show .button:hover {
    text-shadow: 0 0 10px rgba(0,0,0,1);
    color: rgba(255,255,255, 1);
}



.episode-conversational {
    grid-template-columns: minmax(0, 80%) minmax(600px, 700px);
    width: 100%;
    padding: 0; margin: 0;
}

.episode-background {
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
}
.episode-background .scene-title {
    background-image: url(../assets/bar.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    height: 30px;
    text-align: center;
    font-size: 25px;
    font-style: italic;
    padding: 10px 0 15px;
    color: rgba(233,182,133,1);
    text-shadow: 0px 0px 2px rgba(0,0,0,0.5);
    overflow:hidden;
    white-space: nowrap;
}


.episode-conversation {
    height: 100vh;
    background-size: cover;
    background-position: left bottom;
    background-image: url(../assets/panel.webp);
    display: grid;
    grid-template-rows: 1fr minmax(0, auto);
}

.episode-conversation .restart {
    position: absolute;
    top: 5px;
    right: 5px; 
    width: 75px;
    margin: 5px;
    text-align: center;
    font-size: 20px;
    padding: 5px 10px;
    z-index: 10000;
}
.episode-conversation .history {
    overflow-y: auto;
    margin-left: 5px;
    background-color: rgba(0,0,0, 0.85);
}
.episode-conversation .input {
    margin-left:5px;
    padding: 0px;
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 100%);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    background-color: rgb(0,0,0, 0.8);

}
.episode-conversation .input .input-name {
    font-size: 18px;
    padding: 20px 00px 20px 15px;
    color: #aa5141;
    font-style: italic;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, .5)
}
.episode-conversation .input input {
    width: 100%;
    font-size: 18px;
    border: 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    color: #eee;
    background: rgba(0,0,0,0);
    padding: 20px;
    box-shadow: none;
    box-sizing: border-box;    
}

.portrait-hero img {
    height: 300px; 
    transform: scaleX(-1);
    position: relative;
}
.portrait-hero {
    position:absolute;
    bottom: 55px;
}

.portrait-counterpart {
    position: absolute;
    right: 0;
    bottom: 55px;
}
.portrait-counterpart img {
    height: 450px; 
}
.name-counterpart {
    position: absolute;
    right: 0;
    bottom: 55px;  
    color: rgba(87, 162, 237, 1);
    font-size: 20px;
    font-style: italic;
    padding: 5px 10px 5px 50px;
    background: linear-gradient(to left, rgba(0,0,0,0.75) 80%, rgba(0,0,0,0.0));
}




.history-item .history-person { display: none }
.history-narrator {
    margin: 0px 100px 50px;
    background: radial-gradient(circle, rgba(0, 0, 0, .25) 40%, rgba(0, 0, 0, 0) 80%);
    padding: 5px 10px;
    clear: both;
}
.history-narrator-first {
    margin-top: 50px;
}
.history-item:has(+.history-narrator) {
    margin-bottom: 0;
}
.history-narrator .narrator-message {
    text-align: center;
    font-style: italic;
    color: rgba(255,255,255, 0.6);
    font-size: 18px;
}
.history-narrator .narrator-message b {
    color: #4175AA;
    font-weight: bold;
}

.history-item {
    margin: 10px 140px 20px 100px;
    max-width: 450px;
    float: right;
    clear: both;
}
.history-item.hero {
    float: left;
}
.history-item.counterpart {
    min-width: 450px;
}

.history-end {
    height: 100px;
    width: 100%;
    clear: both;
}



.history-item .history-from {
    font-weight: bold;
    font-size: 18px;
    color: rgba(87, 162, 237, 1);
    text-align: right;
    font-style: italic;
    border-bottom: 1px solid rgba(87, 162, 237, .33);
    padding: 0 15px;
}
.history-item.hero .history-from {
    color: rgba(209, 119, 103, 1);
    border-bottom: 1px solid rgba(209, 119, 103, .33);
    text-align: left;
}
.history-item .history-message {
    padding: 10px 15px 15px 20px;
    font-size: 18px;
    background: linear-gradient(to left, rgba(0,0,0,0.25) 80%, rgba(0,0,0,0.0));

}
.history-item.hero .history-message {
    padding: 10px 20px 15px 15px;
    font-size: 18px;
    background: linear-gradient(to right, rgba(0,0,0,0.25) 80%, rgba(0,0,0,0.0))
}


.history-item.hero + .history-item.hero .history-from,
.history-item.counterpart + .history-item.counterpart .history-from { 
    display:none 
}
.history-item.hero + .history-item.hero,
.history-item.counterpart + .history-item.counterpart { 
    margin-top: -19px;
}
.history-item.hero + .history-item.hero .history-message,
.history-item.counterpart + .history-item.counterpart .history-message { 
    padding-top: 10px;
}
