:root {
    --lighter-blue: #73d0f5;
    --bright-blue: #00ccff;
}

body {
    width: 100%;
    background: url("./resources/bkgd.png") center repeat;
    font-family: Poppins, "Arial", sans-serif;
    font-size: .8em;
}

div.page {
    position: relative;
    width: 800px;
    margin-left: auto;
    margin-right: auto;
    min-height: 400px;
    background-color: white;
    padding: 10px;

}

img.header {
    width: 100%;
}

div.content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-gap: 10px;
}

div.section {
    border: 2px solid var(--bright-blue);
    border-radius: 5px 5px 0px 0px;
    padding: 10px;
    margin-top: 10px;
}

div#encouragement, div#moral {
    height: 280px;
    width: auto;
}

div#messaging, div#action {
    height: 600px;
}

div#moral p {
    margin-top: 2px;
    margin-bottom: 2px;
}

div.section > h1:first-child {
    background-image:  url("./resources/happy-sun-50.webp"), linear-gradient(var(--bright-blue), #2196F3);
    background-position: left 5px center;
    background-repeat: no-repeat;
    color: white;
    margin: -10px -10px 10px -15px;
    padding-left: 60px;
    font-style: italic;
}

div.section > h1:first-child:first-letter {
    color: #FFEB3B;
    font-size: 140%;
    font-family: "Permanent Marker", "Arial", sans-serif;
    font-style: normal;
}

div.bubble {
    border: 2px solid var(--lighter-blue);
    border-radius: 5px;
    padding: 10px;
    font-size: 95%;
}

div.bubble:not(:last-child){
    margin-bottom: 10px;
}

div.bubble h1, div.section > h1:not(:first-child) {
    color: var(--bright-blue);
    background-color: transparent;
    font-size: 130%;
    padding-left: 0px;
    padding-top: 0px;
    margin-bottom: 1px;
    margin-top: -8px;
}

div.bubble h1.warning {
    color: red;
    font-weight: bold;
}

div.bubble-button {
    position: relative;
    background-color: var(--bright-blue);
    padding: 5px;
    margin-bottom: 10px;
    font-size: 130%;
    font-weight: bold;
    border-radius: 5px;
    color: white;
    background-position: center right 10px;
    background-repeat: no-repeat;
    background-image: url("./resources/down-arrows.png");
}

div.bubble-button:hover {
    background-image:  none;
    border-radius: 5px 5px 0px 0px;
    filter: drop-shadow(10px 10px 4px black);
    left: -2px;
    top: -2px;
}

div.changed > span:first-child {
    padding: 0;
    margin: 0;
}

div.changed > span:first-child::after {
    content: url("./resources/new-content-12.png");
    display: inline-block;
    margin-left: 5px;
    margin-top: opx;
    position: relative;
    top: 2px;
}

div.bubble-button > div {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    top: 32px;
    left: 0px;
    display: none;
    border: 1px solid var(--bright-blue);
    border-radius: 0px 0px 5px 5px;
    padding: 10px;
    background-color: white;
    color: black;
    font-weight: normal;
    font-size: 90%;
    max-height: 400px;
    overflow: scroll;
}

div.bubble-button:hover > div {
    display: block;
}

div.bubble p {
    margin-top: 2px;
    margin-bottom: 3px;
}

p:last-child, a:last-child {
    margin-bottom: 0;
}

div.theater {
    width: 100%;
    height: 100%;
    display: grid;
    justify-content: center;
}

div.theater img {
    height: 230px;
    animation-duration: .25s;
}

button.button {
    color: white;
    background-image: linear-gradient(var(--bright-blue), #2196F3);
    font-weight: bold;
    width: 100px;
    padding: 5px;
}

button.button:disabled {
    color: gray;
    background-image: none;
    background-color: light-gray;
}

.centered {
    margin-left: auto;
    margin-right: auto;
}

.secret {
    visibility: hidden;
    display: none;
}

ul {
    padding-inline-start: 5px;
    list-style-type: "\2713";
}

ol {
    padding-inline-start: 5px;
}

ul li {
    padding-left: 3px;
}

ol li {
    padding-left: 3px;
    margin-left: 3px;
}

p.question {
    font-weight: bold;
    margin-bottom: 3px;
}

ul.hearts {
    padding-inline-start: 20px;
    list-style-type: "\2713";
    list-style-image: url("./resources/beating-heart-2.webp");
}

div#sky {
    position: absolute;
    top: 0px;
    left: 0px;
    background: linear-gradient(navy, lightskyblue 85%, white);
    height: 600px;
    width: 100%;
}

div#sun {
    position: absolute;
    top: 500px;
    left: 600px;
    width: 150px;
    height: 150px;
    background-image: url("./resources/happy-sun-150.webp");
    background-position: 50% 50%;
}

div#horizon {
    position: absolute;
    top: 450px;
    left: 0px;
    width: 100%;
    height: 1000px;
    background-image: url("./resources/horizon.webp");
    background-repeat: no-repeat;
    background-size: cover;
}


/* Animations */

/* Header image animations */

@keyframes image-focus-in {
	from {
		filter: opacity(0%) hue-rotate(20deg) blur(20px);
		}
	to {
		filter: opacity(100%) hue-rotate(0deg) blur(0px);
		}
}

@keyframes image-focus-out {
	from {
		filter: opacity(100%) hue-rotate(0deg) blur(0px);
		}
	to {
		filter: opacity(0%) hue-rotate(20deg) blur(20px);
		}
}

img.fade-in {
	animation-name: image-focus-in;
}

img.fade-out {
	animation-name: image-focus-out;
}

@keyframes lighten-sky {
    0% {
        filter: brightness(0%) opacity(100%);
        }
    100% {
        filter: brightness(200%) opacity(0%);
        }
 }

 @keyframes lighten-horizon {
    0% {
        filter: brightness(0%) opacity(100%);
        }
    20% {
        filter: brightness(20%) opacity 100%);
        }
    100% {
        filter: brightness(200%) opacity(0%);
        }
 }

 @keyframes sunrise {
    0% {
        left: 400px;
        top: 500px;
        }
    100% {
        left: 725px;
        top: 50px;
        }
 }


 div.lighten-sky {
     animation-name: lighten-sky;
     animation-iteration-count: 1;
     animation-duration: 1s;
     animation-direction: forwards;
     animation-fill-mode: forwards;
 }

 div.lighten-horizon {
     animation-name: lighten-horizon;
     animation-iteration-count: 1;
     animation-duration: 1s;
     animation-direction: forwards;
     animation-fill-mode: forwards;
 }

 div.sunrise {
     animation-name: sunrise;
     animation-iteration-count: 1;
     animation-duration: 1s;
     animation-direction: forwards;
     animation-fill-mode: forwards;
     animation-timing-function: ease-out;
 }

 div.modal {
    background-color: white;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid blue;
    box-shadow: 5px 5px 10px black;
    visibility: hidden;
    padding: 10px;
}
