/*Google Fonts*/
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200&family=Overpass:wght@600;700&display=swap');

/*-------------------
Styling for all pages
-------------------*/
*, *::before, *, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Overpass', sans-serif;
    background-color: #fefdfd;
    width: 100%;
}

/* Likes */
.btn-like {
    border: 1px solid transparent;
    padding: 0;
    border: none;
    background: none;
}

.btn-red {
    color: #cd0000;
}

/*Alerts*/
.alert {
    display: flex;
    justify-content: space-between;
}

.alert a {
    text-decoration: none;
    color: inherit;
}

/*---------------
'base.html' STYLING
---------------*/

/*Logo & Navbar*/
nav {
    background-color: #181818;
}

.navbar-dark {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28205, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

.navbar-dark .navbar-toggler {
    border-color: #cd0000;
    margin-left: 100px;
  }

.logo {
    font-size: 25px;
}

.the {
    color: #cd0000;
}

.forum {
    color: #fefdfd;
}

.nav-link {
    font-size: 18px;
    color: rgba(254, 253, 253, 0.5)
}

.nav-link:hover {
    color: rgba(254, 253, 253, 1);
}

.logo:hover .the {
    animation: color-change-the 3s;
}

@keyframes color-change-the {
    0% {
        color: #cd0000;
    }
    50% {
        color: #fefdfd;
    }
    100% {
        color: #fefdfd;
    }
}

.logo:hover .forum { 
    animation: color-change-forum 3s;
}

@keyframes color-change-forum {
    0% {
        color: #fefdfd;
    }
    50% {
        color: #cd0000;
    }
    100% {
        color: #cd0000;
    }
}

.logoHoverRemoved .the {
    animation: color-remove-the 3s;
}

.logoHoverRemoved .forum {
    animation: color-remove-forum 3s;
}

@keyframes color-remove-forum {
    0% {
        color: #cd0000;
    }
    50% {
        color: #fefdfd;
    }
    100% {
        color: #fefdfd;
    }
}

@keyframes color-remove-the {
    0% {
        color: #fefdfd;
    }
    50% {
        color: #cd0000;
    }
    100% {
        color: #cd0000;
    }
}

/*Main Section*/
#main {
    height: auto;
    max-width: 1000px;
    padding: 0;
}

/*Footer*/
footer {
    background-color: #181818;
    bottom: 0;
    text-align: center;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    width: 100%;
}

.socials {
    padding: 15px 0;
    font-size: 180%;
}

.socials > li {
    display: inline;
    margin: 20px;
}

.socials a, .footerSignature a {
    color: #fefdfd;
    text-decoration: none;
}

a:hover {
    color: #cd0000;
}

.footerSignature {
    color: #fefdfd;
}

/*-----------------------------
All Authorisation Pages STYLING
-----------------------------*/
.auth {
    margin-top: 5vh;
    text-align: center;
    background-color: #f2f2f2;
    border-radius: 5px;
}

.auth a {
    color: #cd0000;
}

.auth a:hover {
    color: #181818;
}

.auth-form {
    text-align: left;
    margin-bottom: 1rem;
    width: auto;
}

.auth-form input {
    float: right;
    clear: both;
    background-color: #fefdfd;
    border-radius: 5px;
    border: none;
}

.auth-form button {
    background-color: #cd0000;
    color: #fefdfd;
    border-radius: 5px;
    border: none;
}

.auth-form button:hover {
    color: #181818;
}

.center-button {
    text-align: center;
}

/*Auth Login*/

label[for=id_remember] {
    float: right;
}

/*Auth Password Reset*/
.input-group {
    text-align: center;
}

#resetpw-btn {
    background-color: #cd0000;
    color: #fefdfd;
    border-radius: 5px;
    width: auto;
}

#resetpw-btn:hover {
    color: #181818;
}

/*---------------
'index.html' STYLING
---------------*/
#home {
    margin: 10px;
}

.display-4 {
    margin-top: 10px;
}

.sign-up-btn {
    margin-bottom: 10px;
}

.sign-up-btn:hover {
    color: #cd0000 !important;
    background-color: #181818 !important;
}

.my-4 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    border-top: 2px solid #181818;
    opacity: 1;
}

h6 {
    padding-left: 0 !important;
}

/*Top Stories*/
.news {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-right: 0;
    position: relative;
}

.top-stories {
    position: relative;
    text-align: center;
    margin: 10px auto;
    padding: 0;
    width: 200px;
    height: 105px;
}

.top-stories img {
    width: 100%;
    height: 105px;
    border-radius: 5px;
}

.top-stories a {
    display: flex;
    position: absolute;
    text-decoration: none;
    font-size: small;
    height: 100%;
    bottom: 0;
    background-color: rgba(24, 24, 24, 0.5);
    color: #fefdfd;
    border-radius: 5px;
}

.article-title {
    margin-top: auto;
}

/* Latest Posts */
.latest-posts {
    margin-top: 10px;
}

.latest-posts a {
    text-decoration: none;
    color: #181818;
}

.likes-col {
    padding: 0;
    width: auto;
    position: relative;
}

.likes {
    font-size: 15px;
}

.index-forum-post {
    padding-bottom: 10px;
    margin: 10px auto;
    border-radius: 5px;
    border: 1px solid #fefdfd;
    background-color: #f2f2f2;
    border: 1px solid transparent;
}

.index-forum-post:hover {
    border: rgba(24, 24, 24, 0.5) solid 1px;
}

.user-likes {
    padding-left: 1%;
    height: 15px;
    margin-top: 10px;
}

.post-title {
    padding-left: 1%;
}

.index-img-container {
    text-align: center;
}

.index-forum-post-img {
    width: 98%;
    align-items: center;
}

.index-forumboard-post{
    font-size: 12px;
}

/*Top Boards*/
.top-boards {
    margin: 10px 0;
    padding: 0;
    width: 100%;
}

.view_all_boards {
    color: #cd0000 !important;
    text-decoration: underline !important;
}

.view_all_boards:hover {
    color: #181818 !important;
}

.index-add-board a{
    color: #fefdfd !important;
}

.index-add-board a:hover {
    color: #cd0000;
}

.top-boards a {
    text-decoration: none;
    color: #181818;
}

.top-boards-title {
    display: inline-flex;
    justify-content: space-between;
    padding-left: 0;
    padding-right: 0;
}

.index-forum-board {
    box-sizing: border-box;
    background-color: #f2f2f2;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 0px;
    width: auto;
    align-items: center;
    border-radius: 5px;
    border: 1px solid transparent;
}

.index-forum-board:hover {
    border: rgba(24, 24, 24, 0.5) solid 1px;
}

.board-name {
    color:#cd0000;
    font-size: large;
}

.zero-right-padding {
    padding-right: 0;
}

/*-------------------------
'board_header.html' STYLING
-------------------------*/
.board-home {
    padding: 0;
    text-decoration: none;
    color: #fefdfd;
}

#board-header {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    background-color: #181818;
    color: #fefdfd; 
}

.board-header-img-div {
    padding: 0; 
}

.board-header-img {
    width: 100%;
    height: 25vh;
    object-fit: cover;
}

.name-about-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.forum-board-name {
    margin-top: 0.5rem;
}

.link-container {
    padding: 0;
}

/*-------------------------
'board_detail.html' STYLING
-------------------------*/
.board-posts {
    margin: 10px;
}

.no-posts {
    text-align: center;
}

.board-detail-posts {
    padding: 10px;
    margin: 10px auto;
    border-radius: 5px;
    border: 1px solid #fefdfd;
    background-color: #f2f2f2;
    border: 1px solid transparent;
}

.board-detail-posts a {
    text-decoration: none;
    color: #181818;
}

.board-detail-posts:hover {
    border: rgba(24, 24, 24, 0.5) solid 1px;
}

.board-detail-post-title-likes {
    display: flex;
    justify-content: space-between;
    padding-left: 1%;
    padding-right: 1%;
}

.board-detail-post-image-container {
    text-align: center;
}

.board-post-image {
    width: 98%;
    align-items: center;
}

.board-detail-exceprt-creator-created {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-left: 1%;
    padding-right: 1%;
    font-size: small;
}

.page-scroll {
    display: flex;
    justify-content: space-evenly;

}

.page-scroll a {
    color: #181818;
    text-decoration: none;
}

.page-scroll a:hover {
    color: #cd0000;
}

.learn-more-board {
    margin-right: 10px;
    padding-right: 12px;
}

.learn-more-board p {
    font-size: small;
}

.board-description-title {
    font-size: medium !important;
    margin-bottom: 0px;
}

.following {
    text-align: center;
}

/*
'post_detail.html' STYLING
*/
#post-detail {
    margin: 10px auto;
    width: 95%;
    background-color: #f2f2f2;
    border-radius: 5px;
}

.post-detail-title-likes {
    margin: 10px;
    display: flex;
    justify-content: space-between;
}

.post-detail-likes {
    font-size: large;
}

.post-detail-image {
    margin: 10px;
    width: 98%;
}

.post-detail-image-container {
    text-align: center;
}

.post-detail-content {
    margin: 10px;
    font-size: large;
}

.post-detail-created-creator {
    margin: 10px;
    text-align: right;
    font-size: small;
}

.post-edit-delete {
    margin-left: 1%;
    padding-right: 10px;
}

.post-edit-delete a {
    color: #181818;
}

.post-edit-delete a:hover {
    color: #cd0000;
}

.delete-post-modal {
    background: none;
    border: none;
    text-decoration: underline;
}

.delete-post-modal:hover {
    color:#cd0000;
}

.close {
    text-decoration: none;
    background: none;
    border: none;
}

/* Comment Section */
.post-comment {
    padding: 0;
}

#comment-form label {
    display: none;
}

.comment-form {
    margin: 10px;
    display: grid;
    align-items: center;
    justify-content: center;
}

#div_id_body {
    width: max-content;
    height: 125px;
    overflow: scroll;
    border: #181818 solid 1px;
    border-radius: 7px;
}

.comment-btn {
    float: right;
    margin-top: 10px;
    justify-content: right;
}

.post-comments {
    margin: 10px;
    padding: 0;
}

.comment-line {
    color: #cd0000;
    width: 1.5px;
    padding: 0;
    opacity: 0.7;
}

.comment-creator-created {
    padding: 0;
    font-size: small;
}

.comment-body {
    padding: 0;
}

.no-comments {
    text-align: center;

}

/*-------------
'add_post.html'
-------------*/
#add-post {
    width: 100%;
    margin: 10px;
    padding: 0;
}

.add-posts {
    padding: 0;
}

.add-post-form {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

#post-form {
    width: 50%;
}

#post-form a {
    text-decoration: none;
    color: #181818;
}

#post-form a:hover {
    color: #cd0000;
}

.add-post-form-btn {
    float: right;
    margin-top: 10px;
}

.form-group {
    margin: 10px 0;
}

/*-----------------------
'all_boards.html' STYLING
-----------------------*/
#all-boards {
    margin: 10px;
}

#all-boards a {
    text-decoration: none;
    color: #181818;
}

.board-box {
    display: grid;
    grid-template-columns: auto auto auto auto;
    justify-content: center;
}

.all-boards {
    background-color: #f2f2f2;
    text-align: center;
    margin: 10px;
    width: 200px;
    height: 100px;
    overflow: scroll;
    border-radius: 5px;
    border: 1px solid transparent;
}

.all-boards:hover {
    border: rgba(24, 24, 24, 0.5) solid 1px;
}

.go-back {
    margin: 10px 20px;
}

.go-back a {
    color: #181818 !important;
    text-decoration: none;
    padding-right: 10px
}

.go-back a:hover {
    color: #cd0000 !important;
}

/*
'add_board.html' STYLING
*/
#add-board {
    width: 100%;
    margin: 10px;
    padding: 0;
}

.add-boards {
    padding: 0;
}

.add-board-form {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

#post-board {
    width: 50%;
}

#add-board a {
    text-decoration: none;
    color: #181818;
}

#add-board a:hover {
    color: #cd0000;
}

.add-board-form-btn {
    float: right;
    margin-top: 10px;
}

.board-form-no-auth a {
    color: #fefdfd !important;
}

/*--------------------
'contact.html' STYLING
--------------------*/
#contact {
    margin: 10px;
}

#contact #div_id_body {
    width: auto;
    border: none;
    height: auto;
}

/*---------------
All Media Queries
---------------*/
@media only screen and (max-width: 900px) {
    .news-4 {
        display: none;
    }
}

@media only screen and (max-width: 700px) {
    .news-3 {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .all-top-boards {
        padding: 0;
        margin: 0 auto;
        width: 50%;
        height: auto;
        align-items: center;
        justify-content: center;
    }

    .index-forum-board {
        width: 100%;
    }
    
    .index-add-board {
        padding: 0;
        margin: 0 auto;
        text-align: center;
    }

    .board-detail-latest-posts {
        padding-right: 12px;
        margin-right: 20px;
    }

    .latest-posts {
        width: 100%;
        padding-right: 0;
        margin-right: 0;
    }

    #post-form {
        width: 75%;
    }
    
    #board-form {
        width: 75%;
    }

    .board-box {
        grid-template-columns: auto auto;

    }
}

@media only screen and (max-width: 480px) {
    .news-2 {
        display: none;
    }

    .top-stories {
        width: 250px;
        height: auto;
    }

    .all-top-boards {
        width: 75%;
    }

    #contact {
        width: 100%;
    }

    #all-boards {
        width: 100%;
    }

    .board-box {
        grid-template-columns: auto;
        align-items: center;
        padding-right: 20px
    }

    .all-boards {
        width: 100%;
    }

    #comment-form {
        margin: 0 auto;
        text-align: center;
    }

    #comment-form #div_id_body {
        margin: 0 auto;
        max-width: 75%;
    }

    .auth {
        width: 90%;
    }

    .zero-left-padding {
        padding-left: 0;
    }

    .news {
        padding-right: 0;
    }

    .comment-btn {
        float: none;
    }
}