@import "bourbon";

body{
    margin: 0;
    padding: 0;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

main p{
    text-indent: 5vmin;
    /* margin-top: 5%; */
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

tr, th{
    border: none;
}

/* subheadings in a text */
h4{
    /* margin-bottom: -4%; */
    margin-top: 5%;
}

.first-subheading{ /* first h4 (i.e., "INTRODUCTION") */
    margin-top: 0%;
}

h4, .page-anchor, .summary-anchor{
    /* font-variant: small-caps; */
    color: rgb(83, 198, 198);
    font-family: 'Epilogue', 'Roboto','Oswald', sans-serif;
    font-weight: 600;
    /* font-family: Geneva, Tahoma, sans-serif; */
}

.page-anchor:hover, .summary-anchor:hover{
    color: rgb(186, 212, 212);
    transition-duration: 1s;
}

.summary-anchor{
    margin-right: 0.8%;
}

.emph{ /* emphasize something, like a definition */ 
    font-weight: bold;
}

.proof{
    color: rgb(0, 169, 157);
    padding-right: 0.5%;
    font-family: Geneva, Tahoma, sans-serif;
}

.proof::after{
    content: "  ";
}

.proof mjx-container[jax="SVG"] > svg a[href] {
    fill: rgb(0, 169, 157);
    stroke: rgb(0, 169, 157);
}

.box, .solution, .steps{
    margin-bottom: 4%;
}

.box-title, .steps-title, .example-title, .section-summary::before{
    text-align: center;
    padding-bottom: 0;
    margin-top: 8%;    
    padding: 0.7rem 0.4rem 0.4rem 0.4rem;
    font-size: 120%;
    line-height: 1.5;
}

.box-title, .steps-title, .example-title, .section-summary::before, .solution-button{
    font-family: Geneva, Tahoma, sans-serif;
}

.box{ /* for theorems and facts */
    text-align: left;
    /* line-height: 2.5; */
    padding-left: 4%;
    padding-right: 4%;
    padding-bottom: 2%;
    padding-top: 2%;
    border: 0.4rem solid rgb(147, 98, 151);
}

.box-title{
    background-color: rgb(147, 98, 151);
}

.box .table-full-width, .steps .table-full-width{
    width: 107%;
    margin-left: -3.5%;
}

.section-summary .table-full-width{
    width: 98%;
}

.steps{ /* box for steps */
    text-align: left;
    /* line-height: 2.5; */
    padding-left: 4%;
    padding-right: 4%;
    padding-bottom: 2%;
    padding-top: 2%;
    border: 0.4rem solid rgb(63, 124, 73);
}

.steps-title{
    background-color: rgb(63, 124, 73);
}

.example figure, img{
    /* width: 350px; */
    position: static;
    margin-left: auto;
    margin-left: 3%;
    /* margin-left: auto; */
}

.example, .solution{
    border: 0.4rem solid rgb(194, 126, 0);
}

.solution hr{
    margin-top: 5%;
    margin-bottom: 5%;
}

.solution p:first-child{
    text-indent: 0vmin;
    margin-top: 0;
    margin-bottom: 0;
}

.solution > .p-no-indent{
    margin-top: 0;
    margin-bottom: 0;
}

.example{ /* for example problems */
    border-bottom: none;
    text-align: left;
    /* background-color: rgb(53, 46, 46); */
}

.example-title, .solution-button{ /* Example 1, 2, 3, etc. */
    background-color: rgb(194, 126, 0);
    color: white;
}

.example-problem{ /*example problem */
    margin-left: 5%;
    margin-right: 5%;
    padding-bottom: 5%;
    padding-top: 5%;
}

.example-problem hr{
    margin-top: 3%;
    margin-bottom: 3%;
}

.solution{ /* solution body to example problems */
    display: none;
    border-top: none;
    /* line-height: 2.5; */
    padding-left: 4%;
    padding-right: 4%;
    padding-bottom: 2%;
    padding-top: 4%;
    text-align: left;
    font-style: normal;
    margin-left: 0;
    margin-top: -5%;
}

.solution.show {
  display: block;
}

.solution-button { /*button to show/hide solution */
    font-size: 120%;
    border: none;
    transition-duration: 0.9s;
    width: 100%;
    padding-top: 0.6em;
    padding-bottom: 0.6em;
    z-index: 2;
    margin-bottom: 5%;
}

.solution li{
    padding-left: 3%;
}
.solution ol > li {
    list-style: none;
    position: relative;
}

.solution-button:hover {
    background-color:  rgb(207, 159, 83);
}

.solution-button:after{
    content: ' SHOW SOLUTION ▼ ';
}

.solution-button.active::after {
    content: " HIDE SOLUTION ▲ ";
}

.solution-hr{
    margin-top: 2%;
    margin-bottom: 2%;
}

.border{
    border-style: solid;
    border-width: 2px;
    border-color: white;
    padding: 4px;
}

.section-summary::before{
    display: block;
    content:'SECTION SUMMARY';
    background-color: rgb(163, 123, 48);
    margin: 0;
    padding: 5px;
    /* width: 100%;
    margin: 0%;
    padding: 0%; */
}

.section-summary{ 
    margin-top: 10%;
    text-align: left;
    /* line-height: 2.5; */
    border: 0.5rem solid rgb(163, 123, 48);
}

.section-summary li, .section-summary p{
    margin: 2% 4% 2% 4%;
}

/* .section-summary__title{
    background-color: rgb(163, 123, 48);
    line-height: 1.5;
    padding: 10px;
    font-size: 140%;
    text-align: center;
    padding-bottom: 0;
    margin-top: 6%;
} */

/* .section-summary li{ 
    padding-top: 20px;
    padding-bottom: 20px;
} */

.list-item{
    display: flex;
    flex-direction: row;
    padding: 0.3% 2% 0.3% 0%;
}

.list-number{
    flex: 0.4;
    width: 10%;
    margin-right: 1%;
}

.list-text{
    flex: 10;
    
}

@media screen and (max-width: 1500px) {

    .example-problem > .figure-wide, .example-problem > .figure-center-one{
        margin-left: -10%;
    }

    .solution > .figure-wide, .solution > .figure-center-one{
        position: relative;
        padding-left: unset;
        margin-left: unset;
        margin-right: unset;
        left: 5%;
    }

    /* .solution > .figure-wide > figure img, .solution > .figure-center-one > figure img{
        max-height: 300px;
    } */
}

@media screen and (max-width: 900px) {

    .figure-center-one{
        padding-left: 0;
    }

    .example-problem > .figure-center-one, .solution > .figure-center-one{
        width: 55%;
        margin-left: auto;
        margin-right: auto;
        left: 0; 
        display: block;
        padding-top: 4%;
        margin-top: 1%;
        margin-bottom: 4%;
    }

    /* .example-problem > .figure-center-one > img, .solution > .figure-center-one > img{
        max-width: 200px;
    } */

    .example-problem > .figure-wide, .solution > .figure-center-one{
        width: 75%;
        margin-left: auto;
        margin-right: auto;
    }

}

@media screen and (max-width: 1350px) {
    /* .example figure, .example figure img{
        width: 55vw;
    } */
}

