/* Elements */
:root {
    --main-background-image: url(./assets/images/background.png);
    --link-color-hover: purple;
}

html{
    background-image: var(--main-background-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    counter-reset: candle;
    counter-increment: candle 3;
}

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Marcellus+SC&family=Roboto&display=swap');

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

input {
    overflow-wrap: break-word;
    height: 100%;
    width: 99.1%;       
    font-size: 20px;
}   

textarea {
    overflow: auto;
    width: 100%;
    height: 75%;
    border: none;
    border-radius: 1px;
    resize: none;
    font-size: 18px;
    overflow-y: hidden;
    outline: none;
    box-sizing:border-box;
    font-family: 'Roboto', sans-serif;
    filter: none;
    z-index: auto;
}

hr {
    border-top: 1px solid #bbb;
    margin-top: 50px;
    margin-bottom: 75px;
    width: 95%;
}

center {
    padding: 10px;
    margin-bottom: 2.5%;
}



/* Classes  */

/* Home Button */
.HomeReturn {
    padding-top: 1vw;
    cursor: pointer;
    width: 100%;
    height: 5%;
    padding-bottom: 2vw;
    position: relative;
    text-align: center;
}

.HomeReturn img {
    display: inline-block;
    width: 3.5%;
}

.HomeReturn img:first-child {
    padding-top: 20px;
}

.HomeReturn img:not(:first-child){
    width: 19%;
    vertical-align: auto;
    padding-left: 10px;
    position: relative;
    top: -0.7rem;
}

/* Main area on front page */

.mainbox {
    margin: auto;
    background-color: white;
    border-radius: 15px;
    
    width: 70%;
    height: auto;
    padding-bottom: 1rem;

    font-family: 'Marcellus', serif;
    font-size: 200%;
    text-align: center;
    line-height: normal;
}

.mainbox a {
    text-decoration: none;
}

.mainbox-subbox {
    width: 70%;
    padding: 0;
    margin: auto;
    height: 100px;
    padding: 1vw 1vw 1vw 1vw;
    display: table;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3);

    background: var(--main-background-image) fixed;
    background-size: cover;
    filter: grayscale(90%) drop-shadow(2px 4px 6px black);

    cursor: pointer;
    border-radius: 7px;

    font-size: 3vw;
    font-weight: bold;
    color: white;

	text-shadow: -1px 1px 2px #000,
				  2px 2px 2px #000,
				  2px -2px 0 #000,
                  -2px -2px 0 #000;
    
/* Transition on hover */
    transition: 0.5s;
    
}

.mainbox-subbox:hover {
    filter: grayscale(0%);
}


.mainflex-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}
  
.mainflex-container div {
    width: 12em;
    height: 50%;
    margin: 10px;
    text-align: center;
    font-size: 2vw;
    display: inline-block;
    padding: 2vw ;
}

.flextop {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 2vh auto;
}

.flextop div {
    padding: 1vh 5vw;
    width: auto;
}

.flextop a {
    margin: 4vh 0 2vh 0;
}


.argtitle {
    font-size: 2vw;
}

.updated {
    position: absolute;
    top: -5%;
    left: -2.5%;
}


/* ARGS */
.longdiv {
    word-wrap: break-word;
    background: white;
    display: block;
    border-radius: 10px;


    width: 60vw;
    height: auto;

    margin: 0 auto;

    font-family: Arial, Helvetica, sans-serif;
}

.longdiv p {
    padding-left: 1vw;
    padding-right: 1vw;
    line-height: 30px;
}

.longdiv blockquote {
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    border-left: 4px solid rgba(0, 0, 0, 0.4);
    padding: 10px;
    background-color: #ebebeb;
}

.longdiv img {
    display:block;
    margin:auto;
    margin-bottom: 5px;
}

.longdiv .candle {
    width: 600px;
}

.longdiv audio {
    display: block;
    margin: auto;
    width: 50%;
}

.longdiv section :not(p) :not(blockquote) :not(a){
    font-size: 20px;
    font-weight: 800;
    font-family: "Marcellus SC";
    text-align: center;
}
.longdiv h2 {
    font-family: 'Marcellus', serif;
    text-align: center;
    font-size: 30px;
    font-weight: 800;
}

.longdiv h3 {
    text-align: center;
}

.candlenumbers h2:empty::before {
        counter-increment: candle;
        content: counter(candle) "th Candle "; 
}

.longdiv iframe {
    margin: 0 auto;
    display: block;
}

.longdiv p.quote {
    margin: 0 auto;
    width: 90% !important; 
    font-style: italic;
    padding: 1vh;
}

.longdiv p.quote:before {
    content: '"';
}

.longdiv p.quote:after {
    content: '"';
}

.longdiv section:last-child {
    padding-bottom: 10px;
}

.longdiv .date {
    text-align: right;
    padding-right: 5%;
    padding-top: 1%;
    position: relative;
    margin-bottom: -5vh;
}

.date::before {
    content: "Last Updated: ";
    font-weight: 600;
}

.longdiv h1 {
    font-size: 40px;
    font-weight: 800;
    font-family: 'Marcellus', serif;
    text-align: center;
    padding-top: 2vh;
    padding-bottom: 2vh;
}

.contentbox {
    background-color: white;
    width: 17vw;
    height: auto;
    position: fixed;
    left: 1.5vw;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 10px;
    font-size: 0.7vw;
    margin-top: 1.9vh;
}

.contentbox p {
    text-align: center;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1vw;
}

.contentbox p.smallTitle{
    font-size: 15px;
}

.contentbox a {
    padding-left: 0.5%;
    text-decoration: none;
    color: rgb(0, 161, 201);
    transition: 0.3s;
}
.contentbox a:hover {
    color: var(--link-color-hover);
}

.contentbox li {
    padding-bottom: 5%;
}

.credits {
    width: 60vw;
    height: auto;
    background-color: white;
    margin: auto;
    font-family: 'Oswald', sans-serif;
    border-radius: 10px;
    padding-bottom: 3vh;
    font-size: 20px;
}

.credits h1 {
    text-align: center;
    font-family: 'Marcellus', serif;
    padding-top: 1vh;
}

.credits a {
    text-decoration: none;
    color: black;
    transition: 0.3s;
}

.credits a:hover {
    color: var(--link-color-hover);
}

.creditsflex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 75%;
    height: auto;
    margin: auto;
}

.creditsflex div {
    padding: 2px 1.3vw;
    width: 15%;
    text-align: center;
}

/* Theory Section */
.UnseenTheory {
    padding-bottom: 3vh;
}

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

.UnseenTheory p {
    color: red;
    width: 70%;
    margin: 0 auto;
    text-align: center;
}

/* Translator CSS */

.translateflex-container {
    display: flex;
    justify-content: center;
}

.translateflex-container div {
    width: 500px;
    height: 250px;
    margin: 10px;
    text-align: center;
    font-size: 30px;
    line-height: 2.5;
    display: inline-block;
}   

.translationboxes:not(textarea){
    box-shadow: inset 5px 5px 5px 1px rgba(0, 0, 0, .3);
    border-radius: 3px;
    border: 1px solid white;
    background: linear-gradient(180deg, rgba(75,0,105,1) 0%, rgba(184,0,255,1) 38%, rgba(184,0,255,1) 58%, rgba(75,0,105,1) 100%);
    background-size: cover;
}

.translationboxes p {
    color: white;
    font-size: 40px;
    margin-top: 5px;
    height:10px;
    font-family: 'Marcellus', serif;
    -webkit-text-stroke-width: 1px;
    line-height: 1.2;
    letter-spacing: 1.2px;
    filter:none;
    padding: 4px 0px;
}

.translationboxes div {
    width: auto;
    height: auto;
}

.translationboxes textarea {
    filter: none;
}

.alphabetBox {
    margin-top: 10px;
    width: 100%;
    display: flex;
}

.alphabetBox div {
    margin: 0 auto;
    padding: 2vh;
    background: linear-gradient(180deg, rgba(75,0,105,1) 0%, rgba(184,0,255,1) 90%);
    background-size: 150px;
    color:white;
    font-weight: 600;
    border: 1px white solid;
    border-radius: 10px;
}

.alphabetBox div a {
    color: white;
    font-family: 'Marcellus', serif;
}


/* Footers */
.footers {
    width: 40vw;
    display: flex;
    justify-content: space-evenly;
    margin-left: 30vw;
    padding-top: 2vh;
    padding-bottom: 2vh;

    color: white;
    font-size: 1.2em;
    font-family: 'Roboto', sans-serif !important;
}

.footers a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.footers a:hover {
    color: var(--link-color-hover);
}



/* Mobile CSS */
@media only screen and (max-width: 600px) {
    html {
        background-position: 15%; 
      }

    textarea {
        height: 20vh;
    }
    
    .mainbox {
        width: 100%;
        height: auto;
    }

    .mainbox-subbox {
        width: auto;
        padding: 0;
        margin: 2%;
        line-height: 1;
        background: var(--main-background-image) fixed;
        background-size: cover;
        filter: grayscale(0%);
        font-size: 7.5vw;
    }

    .mainflex-container {
        flex-direction: column;
    }
    .mainflex-container div {
        width: auto;
        height: auto;
        padding: 3vmax;
    }

    .argtitle {
        font-size: 6vw;
    }

    .translateflex-container {
        display: grid;
    }
    
    .translateflex-container div {
        width: 80vw;
        height: 79.5%;
    }

    .translateflex-container div:last-child {
        height: 58.5%;
    }
    
    .translateflex-container div:not(:first-child) {
        margin-top: 4vh;
    }
    
    
    .HomeReturn img {
        width: 6vmax;
    }

    .HomeReturn img:not(:first-child) {
        width: 27vmax;
    }
    
    .longdiv {
        margin-left: 0;
        width: 100%;
    }

    .contentbox {
        display: none;
    }

    .longdiv img {
        width: 95%;
        height: 50%;
    }

    .longdiv p, blockquote {
        font-size: 2vh;
        padding: 0 2%;
    }
    
    .longdiv h2 {
        font-size: 2.5vh;
    }
    
    .longdiv .candle {
        width: 70%;
    }
    
    .longdiv iframe {
        width: 70%;
        height: 50%;
    }

    .title {
        font-size: 2em;
    }

    .footers {
        display: none;
    }

    .longdiv .date {
        text-align: center;
    }

    .creditsflex {
        flex-direction: column;
        text-align: center;
    }

    .creditsflex div {
        width: 100%;
    }

    .updated {
    font-size: 5vw;
    display: block;
    }

}
