@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
html {
    background-image: url("back.png");
    height: 100%;
}
body {
    height: 100%;
}
.container {
    width: 90%;
    margin-left: 5%;
    padding: 0.5rem;
    margin-top: 1rem;
    font-size: 22px;
}
.container p {
    text-align: justify;
    text-indent: 1rem;
    margin-bottom: 0.5rem;
}

nav {
    position: static;
    top: 0;
    left: 0;
    background: #035daf;
    background: linear-gradient(45deg, #035096 0%, #02427d 100%);
    color: white;
    margin: 0;
    padding: 15px 5%;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    border-bottom: 1px solid #6d5939;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
nav div, nav div p, nav p {
    display: inline;
    vertical-align: middle;
}
nav .right {
    display: none;
    float: right;
}
nav .right p {
    vertical-align: middle;
}
#title {
    font-size: 16px;
}
#day {
    margin-right: 0.5rem;
}
nav .right .icon {
    color: white;
    height: 25px;
    margin-top: -3px;
    cursor: pointer;
}
nav .right .icon:first-of-type {
    margin-left: 1rem;
}

#no-click {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}
#mod-day {
    position: fixed;
    display: none;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 50px;
    font-weight: bold;
    width: 100%;
    z-index: 11;

    color: white;
    background: #035daf;
    background: linear-gradient(315deg, #035096 0%, #036ac8 100%);
    border: 0px;
    box-shadow: rgba(0, 0, 0, 0.80) 0px 5px 20px;
}
#mod-d {
    margin: 3rem 0 1rem 0;
}
#mod-h {
    margin: 1rem 0 3rem 0;
}

#choices {
    margin-top: 2rem;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
}
#choices button.choice {
    width: 100%;
}
button.choice {
    margin: 0.25rem auto;
    display: block;
    padding: 10px;
    background-color: #fafafa;
    font-size: 15px;
    box-shadow: rgba(0, 0, 30, 0.24) 0px 3px 8px;
    border: 0px;
}
button.choice:hover {
    background-color: #035daf;
    color: white;
    position: relative;
    top: 2px;
    left: 2px;
    box-shadow: rgba(0, 0, 0, 0.44) 0px 3px 10px;
}

#end {
    display: none;
    margin-top: 4rem;
    margin-bottom: 1rem;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
}
#end p {
    text-align: center;
    width: 100%;
}
#end p:first-of-type {
    font-size: 70px;
    font-weight: 700;
    font-style: normal;
    font-family: 'Tangerine', cursive;
    color: #035096;
}
#end button {
    margin-top: 2rem;
    padding-left: 4rem;
    padding-right: 4rem;
    max-width: calc(100% - 1rem);
}

.modal {
    position: fixed;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 20;

    border: 0px;
    box-shadow: #01203b 0px 5px 20px;
    background-image: url("back.png");

    width: 90%;
    margin: 0 5%;
    padding: 2rem;
    display: none;
}
#start-msg {
    display: block;
}
#start-msg p {
    margin-bottom: 1rem;
}
#start-msg p:last-of-type {
    margin-bottom: 2rem;
}
.modal h2 {
    color: #023564;
    font-size: 2em;
    margin-bottom: 2rem;
}

.modal .close {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #023564;
    font-size: 1.5em;
    cursor: pointer;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 21px;
    box-shadow: rgba(0, 0, 30, 0.15) 0px 1px 3px;
}
#mod-load h2, #mod-save h2 {
    margin-top: 1rem;
}
.modal textarea {
    width: 100%;
    resize: none;
    margin: 0.75rem 0 1rem 0;
    padding: 5px;
    height: 10rem;
}
#load-error {
    display: none;
    color: darkred;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

#mod-history {
    width: 90%;
    margin: 1rem 5%;
    padding: 1rem;
    padding-top: 2rem;
    max-height: calc(100% - 2rem);
}
#history {
    text-align: justify;
    overflow-y: auto;
    height: 100%;
}
#history .input {
    font-style: italic;
    margin: 1rem 0;
}

#version {
    color: gray;
    font-size: 10pt;

    position: fixed;
    bottom: 5px;
    left: 10px;
}

@media (min-width: 768px) {
    .container {
        width: 80%;
        margin-left: 10%;
    }
    nav {
        padding: 15px 15%;
    }
    #day {
        margin-right: 1rem;
    }
    button.choice {
        padding-left: 14px;
        padding-right: 14px; 
    }
    .modal {
        width: 70%;
        margin: 0 15%;
    }
    #mod-history {
        width: 80%;
        margin: 1rem 10%;
    }
}
@media (min-width: 992px) {
    .container {
        width: 60%;
        margin-left: 20%;
    }
    nav {
        padding: 15px 20%;
    }
    .modal {
        width: 60%;
        margin: 0 20%;
        padding: 2rem 4rem;
    }
    #mod-history {
        width: 60%;
        margin: 1rem 20%;
        padding: 1.5rem 2rem;
    }
}
@media (min-width: 1200px) {
    #choices button.choice {
        width: calc(50% - 0.5rem);
        margin: 0.25rem;
    }
    .modal {
        width: 50%;
        margin: 0 25%;
        padding: 1.5rem;
    }
}
@media (min-width: 1500px) {
    .container {
        width: 50%;
        margin-left: 25%;
    }
    nav {
        padding: 15px 25%;
    }
    #choices button.choice {
        width: calc(50% - 0.5rem);
        margin: 0.25rem;
    }
    .modal {
        width: 40%;
        margin: 0 30%;
    }
    #mod-history {
        width: 50%;
        margin: 1rem 25%;
        padding: 1.5rem 3rem;
    }
}