@font-face {
    font-family: 'Snailgoat';
    src: url('Snailgoat.ttf');
    font-weight: normal;
    font-style: normal;
}

body {
    background-image: 
        url('mainpage/sideribbons.png'),
        url('mainpage/bluepattern.png');
    font-family:Snailgoat;
    background-position: left;
    background-repeat:repeat-y, repeat;
    background-size:15%, 6%;
}

header, main, footer {
    margin-left:20%;
    max-width:70%;
}

main {
    display:flex;
    border-width:20px;
    height:540px;
    border-style:solid;
    border-image: url('mainpage/biscuitborder.gif') 9 fill round;
    border-top:0px;
    margin-left:20%;
}

main:after {
    content: url('mainpage/laceribbon.png');
    position: absolute;
    top: 2%;
    left: 17%;
    rotate: -20deg;
}

.content-section {
    top: 1%;
    background-color:white;
    height: 99%;
    position: relative;
}

#left.content-section {
    margin-left: 0.45%;
}

#left.content-section , #right.content-section {
    width: 25%;
    background-color: #DEECFF;
}

#middle.content-section {
    width:50%;
    height:93.5%;
    position:relative;
    padding:15px;
    font-size:18px;
    letter-spacing: 1px;
    background-image:url('mainpage/linebg.png');
    overflow:auto;
    line-height: 25px;
}

header {
    height: 155px;
    font-size:50px;
    margin-top:3%;
    border-radius: 25px;
    border-bottom-left-radius:0px;
    border-bottom-right-radius: 0px;
    border-style:solid;
    border-image: url('mainpage/biscuitborder.gif') 9 fill round;
    border-width:20px;
    border-bottom: 0;
}

#headerinside {
    height: 130px;
    background-image:linear-gradient(to right, white, 60%, transparent), url('mainpage/lightbluedots.gif');
    border-radius: 10px;
    padding:10px;
    position: relative;
    border:3px solid #b28350;
}

header h1 {
    position:absolute;
    bottom:-30px;
    right:10px;
    transition:0.5s ease;
    font-family: Snailgoat;
    font-weight:normal;
    letter-spacing: 3px;
}

header h1:hover {
  letter-spacing: 10px;
}

header p {
    position:absolute;
    bottom:-25px;
    right:10px;
    font-family:Snailgoat;
    font-size: 35px;
}

.banner {
    position: relative;
    top:-5px;
    filter:saturate(50%);
}

.banner img {
    width:100%;
}

.bannertxt {
    position:absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    letter-spacing:2px;
    font-family: Snailgoat;
    font-size:30px;
}

nav {
    border-radius:25px;
    background-color:antiquewhite;
    margin:10px;
    margin-top:20px;
    background-image:url('mainpage/linebg.png');
}

.bullets {
    padding:5px;
    padding-left:20px;
    line-height:25px;
    font-size:17px;
}

.bullets {
    padding-left:40px;
}

#middlethings {
    display:flex;
    margin-top:20px;
    column-gap:20px;
}

.navbuttons {
    padding: 10px;
}

.button {
    margin: 0 auto;
    margin-bottom: 10px;
    padding:5px;
    font-size:17px;
    border:1px #999 solid;
    border-radius: 5px;
    width:80%;
    font-family:Snailgoat;
    transition:1s ease all;
    text-align: center;
    background-image: linear-gradient(to bottom, white, 45%, rgba(255, 255, 255, 0.597)), url('mainpage/lightbluedots.gif');
    filter: saturate(80%);
}

.button>a {
    color: black;
    text-decoration: none;
}

.button:hover {
    cursor:pointer;
    letter-spacing: 2px;
}

.buttonbox {
    background-image: url('mainpage/tag21.png');
    background-size: cover;
    margin:10px;
    margin-top:15px;
    padding:10px;
    height:95px;
    text-align:center;
    font-size:15px;
}

.buttonbox {
    font-family:inherit;
}

.buttonflex {
    display:flex;
    margin-top:5px;
    margin-bottom:5px;
}

.buttonflex img {
    margin-right:5px;
}

.buttonflex input {
    overflow:auto;
    height:31px;
    width:90%;
    padding:2px;
}

#right.content-section {
    overflow:auto;
}

#left.content-section, #right.content-section, #middle.content-section {
    -ms-overflow-style: none; 
}

footer {
    border-radius: 10px;
    margin-bottom:40px;
    padding:10px;
    font-size:20px;
    text-align: center;
    vertical-align: middle;
    margin:5px;
}

body {
    animation: fadeInAnimation ease 1.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#navbar {
    margin-top:5px;
    font-size:30px;
}

.tag {
    -ms-overflow-style: none; 
    position:absolute;
    top:760px;
    left:200px;
    background-image:url('mainpage/tag49.png');
    background-size: cover;
    width:350px;
    height:190px;
    overflow-y:scroll;
}
