@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;900&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    font-weight: lighter;
    background: url("./images/old_wall.png") repeat transparent;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, color 0.6s, background-color 0.6s;;
}

h1,
h2 {
    text-align: center;
    margin: 0;
    padding: 0;
}

.logo1, .logo2 {
    font-size: 56pt;
    margin-top:0;
    margin-bottom: 10px;
    display: block;
    text-align: center;
    line-height:1;
    transition: opacity 0.6s, transform 0.6s;
    transform: translateY(-100%);
    transition-delay:0.3s;
    opacity:0;

    color: #fff4;
    text-shadow: 1px 1px 0px #ffecb3b5, -1px -1px 0px #603900;
}

.initialised .logo1, .initialised .logo2{
    opacity:1;
    transform:translate(0);
}

.logo2{
    font-size:78pt;
    transition-delay:0.6s;
    text-transform: uppercase;
}

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

.header {
    display: none;
    padding-top: 3em;
    padding-bottom: 3em;
}

/* 
  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%;
    top: 0;
    left: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background: #ff980060;
    width: 100%;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.outerContainer::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}

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

.container {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 4em;
    background:rgba(255,255,255,0.5);
    box-shadow:1px 1px 25px #666;
    position: relative;
}

.character-container{
    display: block;
    max-width: 680px;
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
}

.character{
    position: absolute;
    top: 10px;
    left: 100%;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.6s, opacity 0.6s;
    transition-delay: 0.15s;
    width: 200px;
    border-bottom:2px groove beige;
}

@media screen and (min-width: 1440px) {
    .container{
        max-width:780px;
    }
    .character-container{
        max-width:860px;
    }
    .character{
        width: 400px;
    }
    .glyph{
        font-size: 140pt !important;
    }
}

.character--osiris, 
.character--leftset, 
.character--leftthoth, 
.character--leftisis, 
.character--baboonthoth, 
.character--cownut,
.character--leftisis-alt{
    right: 100%;
    left: auto;
    transform: translateX(-100%);
    transition-delay: 0s;
}

.character--anpu, .character--ammy{
    top: 100px;
    border-bottom:0;
    border-right: 2px groove beige;
}

.character--glyphs, .character--sphinx{
    top: 50px;
}

.character--puzzle, .character--glyphs{
    border-bottom: 0;
}

.osiris .character--osiris, 
.thoth .character--thoth, 
.anpu .character--anpu,
.leftset .character--leftset, 
.leftthoth .character--leftthoth, 
.leftisis .character--leftisis, 
.baboonthoth .character--baboonthoth, 
.cownut .character--cownut,
.ostrichmaat .character--ostrichmaat, 
.goosegeb .character--goosegeb, 
.falconra .character--falconra, 
.anpu .character--anpu,
.maat .character--maat, 
.ammy .character--ammy, 
.ra .character--ra,
.khonsu .character--khonsu, 
.nut .character--nut, 
.geb .character--geb,
.shai .character--shai, 
.sphinx .character--sphinx, 
.isis .character--isis,
.set .character--set,
.nepthys .character--nepthys,
.puzzle .character--puzzle,
.glyphs .character--glyphs,
.isis-alt .character--isis-alt,
.isis-left-alt .character--leftisis-alt
{
    transform: translateX(0);
    opacity: 0.8 !important;
}

.divine-vision:before{
    content:"";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: shadow 3s forwards;
    pointer-events: none;
    z-index: 3;
}

.startscreen .container, .endscreen .container{
    padding-bottom: 150px;
}

.container img{
    margin: auto;
    position: absolute;
    bottom: 0;
    pointer-events: none;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.75;
    height: 200px;

}

@keyframes shadow{
    0%{
        background: rgba(255,255,255,0.0);
        box-shadow: 0 0 0 rgba(0,0,0,0.0) inset;
    }
    100%{
        background: rgba(255,255,255,0.1);
        box-shadow: 0 0 200px rgba(0,0,0,0.9) inset;
    }
}

.blinding-light:after{
    content:" ";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10%;
    height: 10%;
    opacity: 0;
    background: radial-gradient(rgba(255,255,255, 0.95), rgba(255,255,255,0) 75%, rgba(255,255,255,0));
    animation: blindingLight 0.6s forwards;
}

@keyframes blindingLight {
    0%{
        opacity:0;
        transform:scale(1);
    }
    75%{
        opacity:1;
        transform:scale(30);
    }
    100%{
        opacity:0;
        transform:scale(0);
    }
}

.credit{
    text-align: center;
}

.switched .container {
    transition: background-color 0.6s;
}

p {
    font-size: 14pt;
    color: #081D41;
    line-height: 1.7em;
    font-weight: lighter; 
}

.them, .me{
    text-wrap: balance;
}

.them{
    text-align: right;
}

a {
    font-weight: 700;
    color: #fff;
    transition: color 0.6s;
    text-decoration: none;
    cursor: pointer;
}

.credit a{
    color: #000;
}

.header + .credit{
    margin-top: 4em;
}

.dark .credit a{
    color:#fff;
}

.dark .credit a:hover{
    color: #FFBA29;
}

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

a:hover:after{
    color:#fff;
}

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

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

.container .hide {
    opacity: 0.0;
}

.container .invisible {
    display: none;
}

.container>* {
    opacity: 1.0;
    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 {
    font-size: 15pt;
    color:#FFBA29;
    letter-spacing:0.04em;
    text-shadow:
    -1px -1px 0 #000,  
     1px -1px 0 #000,
     -1px 1px 0 #000,
      1px 1px 0 #000;
}

.startscreen .choice a{
    font-size: 25pt;
}

.choice a:hover{
    text-shadow:
    -1px -1px 0 #fff,  
     1px -1px 0 #fff,
     -1px 1px 0 #fff,
      1px 1px 0 #fff;
}

/* 
  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: 6px 14px; 
    border-radius: 6px;
    position: fixed;
    right: 21px;
    top: 4px;
    user-select: none;
    transition: color 0.6s, background 0.6s, transform 0.6s;
    background:rgba(0,0,0,0.75);
    transform: translateY(-200%);
}

#controls [disabled] {
    color: #aaa;
    cursor:default;
}

.initialised #controls{
    transform: translateY(0);
}

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

@media screen and (max-width: 980px) {
    #controls {
        z-index: 2;
        left: 50%;
        right: auto;
        transform:translate(-50%, -200%);
    }

    .initialised #controls{
        transform:translate(-50%, 0);
    }
}

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

body.dark {

    color: white;
}

.dark h2 {
    color: #666;
}

.dark .outerContainer{
    background: #00000095;
}

.dark .container {
    background: #201B1690;
}

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

.dark p{
    color:#EFFBFF;
}

.dark a {
    color: #cc8f1a;
    transition: color 0.6s;
}

.dark strong {
    color: white;
}

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

.dark #controls a{
    color: white;
}

.dark #controls a:hover{
    color: #FFBA29;
}

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

.dark .end {
    color: white;
}

.dark #controls {
    background: black;
}

.puzzle-container{
    position: relative;
}

.puzzle-background{
    font-size: 165pt;
    text-align: center;
    line-height:1;
    margin-top: 70px;

    color: #fff4;
    text-shadow: 1px 1px 0px #ffecb3b5, -1px -1px 0px #603900;
    position: absolute;
    top:0;
    left:0;
    width: 100%;
}

.puzzle-foreground{
    padding-top: 145px;
}

.puzzle-foreground > div{
    display: flex;
    
    justify-content: center;
    text-align: center;
    font-size: 10pt;
    line-height: 1;
    
}

.puzzle-foreground > div:first-child{
    padding:0 85px;
}

.puzzle-foreground > div:nth-child(2){
    padding:0 75px;
}

.puzzle-foreground > div:nth-child(3){
    padding:0 60px;
}

.puzzle-foreground > div:last-child{
    padding:0 48px;
}

.puzzle-foreground > div > div{
    padding: 5px 5px 6px;
    border-right: 2px groove beige;
    border-bottom:2px groove beige;
    flex-grow: 1;
    flex-basis: 0;
}

.puzzle-foreground > div > div:last-child{
    border-right: 0;
}

.puzzle-foreground > div:last-child > div{
    border-bottom: 0;
}

@media screen and (min-width: 1440px) {
    .puzzle-background{
        margin-top:0;
        font-size: 280pt;
    }

    .puzzle-foreground{
        padding-top: 145px;
    }

    .puzzle-foreground > div{
        font-size: 20pt;
    }

    .puzzle-foreground > div:first-child{
        padding:0 170px;
    }
    
    .puzzle-foreground > div:nth-child(2){
        padding:0 150px;
    }
    
    .puzzle-foreground > div:nth-child(3){
        padding:0 130px;
    }
    
    .puzzle-foreground > div:last-child{
        padding:0 110px;
    }
}

.glyphs{
    display: flex;
    flex-flow: row wrap;

}

.glyph{
    text-align: center;
    flex-basis: 50%;
    color: #fff4;
    text-shadow: 1px 1px 0px #ffecb3b5, -1px -1px 0px #603900;
    font-size: 70pt;
    line-height: 1;
}

.dark .puzzle-background, .dark .puzzle-foreground > div{
    color: white;
}

#unmute{
    display: none;
}

.muted #unmute{
    display: inline-block;
}

.muted #mute{
    display: none;
}