/* main elements of the website */
.mainbody {
    background: black;
    color: white;
}
.maintitle {
    text-align: right;
    padding-right:5px;
    font-size: 32px;
}

.maintext {
    text-align: left;
    padding: 5px;
    font-size: 17px;
}

.div_box {
    margin-left:25%;
    margin-right:25%;
    background: rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 800px) {
    .div_box {
        margin-left: 0%;
        margin-right: 0%;
    }
    .topnav {
        margin-left: 0px;
        margin-right: 0px;
    }
}

/* line break */
.linebreak {
    margin-right: 5px;
    margin-left: 5px;
}

.toptitle {
    font-size: 20px;
    text-align: center;
}

/* navbar start */
.topnav {
    background-color: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-left:25%;
    margin-right:25%;
}

.topnav a {
    float:right;
    color: white;
    text-align: center;
    padding:14px 16px;
    text-decoration: none;
    font-size: 17px;
    transition: 0.3s;
}

.topnav a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: black;
}

.topnav a.active {
    background-color: white;
    color:black;
}

/* navbar end */

/* story titles */
.storytitle{
    text-align: center;
    font-size: 32px;
    display: block;
}

.storybox a:link {
    color:white;
    background-color: transparent;
    text-decoration: none;
    transition: 0.3s;
}

.storybox a:visited {
    color:grey;
}

.storybox a:hover {
    color:lightgray;
}

/* testing playground */
#snackbar {
    visibility: hidden;
    background-color: #333;
    min-width: 150px;
    margin-left: -75px;
    color:white;
    text-align: center;
    display:block;
    border-radius: 2px;
    padding: 16px;
    position:fixed;
    bottom:30px;
    left: 50%
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 2%; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 2%; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

.indeximg {
    display:block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}