body {
    background-color: #35363b;
    background-image: url(../img/bg.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

a {
    color: darkred;
}

#wrapper h1 {
    margin-left: 5%;
    margin-bottom: 0;
    color: #773709;
}

#wrapper h2 {
    margin-left: 5%;
    color: #773709;
    padding-top: 0;
    margin-top: 2%;
    font-style: italic;
}

#wrapper p {
    margin-left: 5%;
	margin-right: 5%;
}

#wrapper ul {
    margin-left: 5%;
	margin-right: 5%;
}

header {
    padding-bottom: 1px;
}

header span {
    opacity: 70%;
    right: 0;
    bottom: 0;
    padding: 0 5px 0;
    background-color: #35190a;
    color: #faeecc;
    text-align: center;
}

header a {
    text-decoration: none;
    font-weight: bold;
    color: #faeecc;
}

div #wrapper {
    padding: 10px;
    width: 60%;
    margin: auto;
    background-color: rgba(255, 255, 255, 0.95);
    margin-top: 3%;
}

div #main-text {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
}

a.external-vocab-reference {
    font-weight: bold;
}

.tooltip {
    position: relative;
    display: inline;
    border-bottom: 2px dotted #a76918;
    font-weight: bold;
    color: #a76918;
}

.tooltip .tooltiptext {
    visibility: hidden;
    max-width: 40vw;
    width: max-content;
    background-color: #555;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.conjugation-table, .conjugation-table p {
    margin: auto !important;
}

span.speaker {
    display: inline-block;
    vertical-align: top;
    font-weight: bold;
    color: darkred;
    width: 15%;
}

span.dialogue {
    display: inline-block;
    vertical-align: top;
}

table {
    border-style: solid;
    border-color: #aaaaaa;
    border-collapse: collapse;
    border-width: 1px;
    border-spacing: 0px;
    margin-bottom: 1.5em;
    margin-top: 0.0em;
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
}

tr {
    border-style: inset;
    border-color: #aaaaaa;
    border-width: 1px;
    width: 90%;
}

.conjugation-table th:first-child {
    width: 10%;
}

.conjugation-table th {
    width: 40%;
    padding-left: 5px;
}

th, td {
    border-style: inset;
    border-color: #aaaaaa;
    border-width: 1px;
    padding: 2px;
    width: 45%;
    padding-left: 5px;
}

.conjugation-table td:first-child {
    width: 10%;
}

.conjugation-table td {
    border-style: inset;
    border-color: #aaaaaa;
    border-width: 1px;
    padding: 2px;
    width: 40%;
    padding-left: 5px;
}

#photo-credit {
    float: left;
}

#e-begging {
    float: right;
}

.dialogue.hidden {
	display: none;
}
