html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: row;
    height: 100%;
    background: url('../images/fLj49Zk.jpeg');
    background-repeat: repeat;
    background-attachment: fixed;
    font-size: 16px;
    padding-bottom: 4px;
    overflow-y: hidden;
}

@font-face {
    font-family: Handwrite;
    src: url(../fonts/Maria_lucia.ttf);
}

@font-face {
    font-family: OldTypewriter;
    src: url(../fonts/OldTypewriter.ttf);
}

@font-face {
    font-family: Typewriter;
    src: url(../fonts/Typewriter.ttf);
}

@font-face {
    font-family: RainyHearts;
    src: url(../fonts/rainyhearts.ttf);
}

@font-face {
    font-family: Pixel;
    src: url(../fonts/pixelmix.ttf);
}

@font-face {
    font-family: Aesthetic;
    src: url(../fonts/Aesthetic.ttf);
}

.frame1 {
    flex: 1;
    background-image: url(../images/tumblr_ls0w5txuft1r3vazto7_400.jpg);
    height: 100%;
    overflow: hidden;
}

.frame2 {
    flex: 8;
    height: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
}

.lined-paper {
    background: white;
    background-image: radial-gradient(lightgray 1px, transparent 0);
    background-size: 15px 15px;
    background-attachment: fixed;
    width: 800px;
    height: 100%;
    text-align: justify;
    border-right: 1px solid #9cadc7;
    margin: 0 auto;
    border-left: 1px solid #9cadc7;
    padding-left: 50px;
    padding-right: 3px;
    padding-top: 2em;
    position: relative;
    font-family: RainyHearts;
    font-size: inherit;
    overflow-y: auto;
    overflow-x: hidden;
}

.controls {
    text-align: center;
    margin: 20px;
}

.font-btn {
    background-color: #fff;
    color: rgb(0, 0, 0);
    font-size: 15px;
    padding: 5px 10px;
    border: 1px solid black;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    margin: 10px;
    font-family: RainyHearts;
}

.font-btn:hover {
    background-color: #000000;
    transform: scale(1.1);
    color: rgb(255, 255, 255);
    font-size: 16px;
    font-family: RainyHearts;
}

.font-btn:focus {
    outline: none;
    box-shadow: 0 0 5px 2px rgba(165, 165, 165, 0.8);
}

h1 {
    font-family: RainyHearts;
    font-size: 40px;
}

.label {
    font-family: Pixel;
    font-size: 10px;
    color: #000000;
    margin-right: 10px;
    padding-left: 10px;
}

select {
    font-family: RainyHearts;
    font-size: 14px;
    background-color: #000000;
    color: #ffffff;
    padding: 5px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    appearance: none;
}

option {
    font-family: RainyHearts;
    font-size: 14px;
    color: #ffffff;
    background-color: transparent;
    padding: 5px;
}

p {
    font-family: Pixel;
    font-size: 10px;
    text-align: center;
    text-decoration: wavy underline;
    text-decoration-color: #ff0000;
    padding-bottom: 5px;
}

hr {
    width: 50%;
    margin: 20px auto;
    border: 0;
    height: 1px;
    background-color: #000;
}

hr.new1 {
    border-top: 1px dashed lightgray;
    background-color: #f1f1f1;
}

hr.new2 {
    border-top: 1px dashed red;
    background-color: #f1f1f1;
}

.dropdown-menu ul {
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.dropdown-menu ul li {
    position: relative;
    padding: 5px 10px;
}

.dropdown-menu ul li a {
    text-decoration: none;
    color: black;
    font-family: Pixel;
    font-size: 10px;
    display: block;
}

.submenu {
    display: none;
    list-style: none;
    margin-left: 20px;
    padding: 0;
}

.submenu li {
    padding: 5px 10px;
    position: relative;
}

.submenu li::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 8px;
    height: 1px;
    background-color: black;
    transform: translateY(-50%);
}

.submenu li::after {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 1px;
    height: 50%;
    background-color: black;
    transform: translateY(-50%);
}

.submenu.active {
    display: block;
}

img {
    text-align: center;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

::-webkit-scrollbar {
    width: 20px;
    height: 20px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: transparent;
    border: 1px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #c7c7c7;
}

.lined-paper b {
    font-weight: bold;
    color: #000000;
}

.lined-paper u {
    text-decoration: wavy underline;
    text-decoration-color: #ff0000;
    font-style: italic;
}

.lined-paper a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 2px solid #33ff00;
    transition: color 0.3s, border-color 0.3s;
}

.lined-paper a:hover {
    color: #ff6600;
    border-color: #ff00ff;
}

.lined-paper i {
    font-style: italic;
    color: #006e2a;
    text-decoration: dashed overline;
}

.lined-paper mark {
    background-color: #ffffaa;
    color: #000;
    padding: 0 5px;
    border-radius: 3px;
}

.lined-paper .mark2 {
    background-color: #aaf2ff;
    color: #000;
    padding: 0 5px;
    border-radius: 3px;
}

.lined-paper .mark3 {
    background-color: #ffaadc;
    color: #000;
    padding: 0 5px;
    border-radius: 3px;
}

.lined-paper ul {
    list-style-type: none;
}

.lined-paper ul li::before {
    content: "•";
    color: #ff66cc;
}

.lined-paper ol {
    padding-left: 20px;
}

.lined-paper ol li {
    font-weight: bold;
}

.lined-paper ul li,
.lined-paper ol li {
    line-height: 2.0;
    margin-left: 40px;
}

.img-left {
    float: left;
    margin-right: 15px;
}

.img-right {
    float: right;
    margin-left: 15px;
}