/* ########################################### */
/*                 Global                      */
/* ########################################### */
:root {
  /* "Dark Summer" Skin */
  --bg-main: #000;
  --bg-post: #131415;
  --text: #eee;
  --sig: #414141;
  --link: orange;
  --big: #fff;
  --accent: orange;
  --accent2: #bbb;
  --front: #111314;
  --divider: #2C2C2C;
  --footer: #750104;
  --credit: #aaa;
}

/* "Empathy" Skin */
body.skin-empathy {
  --bg-main: #fff;
  --bg-post: #efefff;
  --text: #4a4a4a;
  --sig: #1e1e1e;
  --link: #7786d9;
  --big: #1C1C1C;
  --accent: #7786d9;
  --accent2: #aaa;
  --front: #ffffff;
  --divider: #ddd;
  --footer: #7786d9;
  --credit: #1C1C1C;
}

/* "Deep Sea" Skin */
body.skin-deep {
  --bg-main: #000;
  --bg-post: #0a0a0a;
  --text: #aaa;
  --sig: #414141;
  --link: #7786d9;
  --big: #7786d9;
  --accent: #7786d9;
  --accent2: #40973d;
  --front: #000000;
  --divider: #2c366c;
  --footer: #09043d;
  --credit: #aaa;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
}

html {
    font-size: 14px;
    font-family: 'Noto Sans', sans-serif;
    color: var(--text);
}

a {
    color: var(--link);
    font-weight: bolder;
    text-decoration: none;
}

a:hover {
    color: var(--big);
}

h1 {
    color: var(--big);
    font-size: 16px;
    font-weight: bolder;
}

h2,
h3,
h4,
h5 {
    color: var(--big);
}

/*
header {
    
}
*/

.brand {
    font-size: 50px;
    margin-left: 20px;
}

.brand:hover {
    color: var(--big);
    text-shadow: 2px 2px var(--big);
}

credit {
    color: var(--credit);
}

credit a {
    color: var(--credit);
}

select,
option {
    appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
    background-color: var(--bg-main);
    border: none;
    color: var(--text);
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path fill="var(--footer);" d="M0 0l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

select:hover {
  background-color: var(--accent);
  color: white;
}

credit div {
    font-size: 10px;
    text-align: right;
}

/* ########################################### */
/*           Forums.html                       */
/* ########################################### */
.container {
    margin: 20px;
    padding: 20px;
}

.subforum {
    margin-top: 20px;
}

.subforum-title {
    background-color: var(--divider);
    padding-left: 5%;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 5px;
    margin: 4px;
}

.subforum-row {
    display: grid;
    grid-template-columns: 7% 60% 13% 20%;
}

.subforum-row:hover {
    background-color: var(--text);
    border-radius: 5px;
}

.subforum-column {
    padding: 10px;
    margin: 4px;
    border-radius: 5px;
    background-color: var(--front);
    color: var(--big);
}

.subforum-description * {
    margin-block: 0;
}

.subforum-stats {
    border-radius: 5px 0px 0px 5px;
    margin-right: 0px;
}

.subforum-info {
    border-radius: 0px 5px 5px 0px;
    margin-left: 0px;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.subforum-icon i {
    font-size: 45px;
}

.subforum-devider {
    display: none;   
}


/* For the smartphones */
@media screen and (max-width: 460px) {
    header {
        display: none;
    }
    
    .container {
        margin: 0px;
        padding: 0px;
    }

    .subforum-row {
        display: grid;
        grid-template-columns: 25% 75%;
        grid-template-rows: 65% 35%;
    }

    .subforum-devider {
        display: block;
        border: 0;
        height: 1px;
        background-image: linear-gradient(to right, rgba(190, 190, 190, 0), rgba(255, 255, 255, 0.75), rgba(190, 190, 190, 0));
    }

    

  }

/* For the tablets */
@media screen and (min-width: 460px) and (max-width: 1024px) {
    header {
        display: none;
    }
    
    .container {
        margin: 0px;
        padding: 0px;
    }

    .subforum-row {
        display: grid;
        grid-template-columns: 10% 60% 10% 20%;
    }

    .subforum-icon i {
        font-size: 35px;
    }

    html {
        font-size: 14px;
    }

    h1 {
        font-size: 16px;
    }

  }
/*   Header Section    */

header{
    margin-inline: 10px;
}
  /* Nav Bar styles */
.navbar {
    display: flex;
    align-items: center;
}
.navigation {
    background-color: var(--footer);
    padding: 10px;
    width: 65%;
    display: inline-block;
    border-radius: 5px;
    max-height: 80px;
    margin-right: 10px;
}

.close-icon i {
    font-size: 60px;
    float: left;
    cursor: pointer;
}

.nav-list {
    list-style-type: none;
    overflow: hidden;
}

.nav-item a {
    float: right;
    display: block;
    text-align: center;
    margin-inline: 20px;
    font-size: 20px;
    padding: 10px;
    color: var(--big);
}

.nav-item a:hover {
    background-color: rgb(0,0,0,0.1);
}

.hide {
    display: none;
}

.bar-icon {
    font-size: 60px;
    display: inline-block;
    margin-right: 10px;
    color: var(--accent);
    cursor: pointer;
}

/* @font-face {
    font-family:aquire;
    src:url(aquire.otf);
}

.brand {
    font-size:60px;
    display: inline-block;
    font-family:aquire;
}
*/

/*Navbar for the smartphones*/
@media screen and (max-width: 460px) {
    .navigation {
        max-height: auto;
    }
    
    .close-icon i {
        font-size: 30px;
    }
    
    .nav-item a {
        float: left;
        display: inline;
        margin-inline: 3px;
        font-size: 10px;
        padding: 5px;
    }
    
    
    .bar-icon {
        font-size: 30px;
    }
 
    .brand {
        font-size: 20px;
    }
}

  /* Search Box styles */
.search-box {
    border: solid 1px var(--accent);
    margin-top: 20px;
    padding: 40px;
    display: flex;
    justify-content: center;
}

.search-box select {
    padding: 10px;
}

.search-box input {
    padding: 10px;
}

.search-box button {
    padding: 10px;
    background-color: var(--big);
    color: var(--bg-main);
}

.search-box button:hover {
    background-color: var(--bg-main);
    color: var(--big);
    box-shadow: 1px 2px 3px var(--big);
}

/* search box for smrtphones */
@media screen and (max-width: 460px) {
    .search-box input, .search-box button, .search-box select{
        min-width: 300px;
        margin-top: 5px;
    }    

}

/* forum info Styling */
.forum-info {
    padding: 20px;
    background-color: var(--front);
    color: var(--big);
}

.chart {
    font-size: 20px;
    font-weight: bold;
}
/* Footer Styling */

footer {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--footer);
    display: block;
    text-align: center;
}

/* ########################################### */
/*            posts.html                       */
/* ########################################### */

/* posts table's head  */
.table-head {
    display: flex;
}

.table-head div {
    padding: 5px;
    margin: 2px;
    background-color: var(--divider);
    color: var(--text);
    font-weight: bold;
}

.table-head .status {
    flex: 5%;
}

.table-head .subjects {
    flex: 70%;
}

.table-head .replies {
    flex: 10%;
}

.table-head .last-reply {
    flex: 15%;
}

/* posts table's body  */

.table-row {
    display: flex;
}

.table-row .status, .table-row .subjects, .table-row .replies, .table-row .last-reply {
    padding: 5px;
    margin: 2px;
    background-color: var(--bg-post);
    color: var(--text);
}

.table-row .status {
    flex: 5%;
    font-size: 30px;
    text-align: center;
}

.table-row .subjects {
    flex: 70%;
}

.table-row .replies {
    flex: 10%;
}

.table-row .last-reply {
    flex: 15%;
}

/* navigation path*/
.navigate {
    color: var(--accent2); 
    margin-block: 20px;
    font-weight: lighter;
    font-size: 22px;
}

.navigate a{
    color: var(--accent);
}

.navigate a:hover{
    color: var(--link);
    font-weight: bolder;
}

/* Pagination*/

.pagination {
    margin-bottom: 20px 0;
    padding: 10px;
    background: var(--divider);
    border: 1px solid var(--divider);
    color: var(--text);
}

.pagination a {
    color: var(--text);
    padding: 5px 10px;
    text-decoration: none;
    border: 1px solid #444;
    margin: 0 2px;
}

.pagination a:hover {
    background: #fbc02d;
    color: #000;
}

.pagination .active-page {
    background: var(--footer);
    color: var(--big);;
    font-weight: bold;
    border: 1px solid var(--footer);
}

.note {
    background-color: var(--front);
    color: var(--text);
    padding: 20px;
    display: block;
}

.note span {
    font-size: 20px;
    margin-block: 5px;
}

.mini-pager {
    font-size: 0.75em;
    color: var(--big);
    margin-left: 10px;
}

.mini-pager a {
    color: var(--link); /* Or your preferred link color */
    text-decoration: none;
    padding: 0 2px;
}

.mini-pager a:hover {
    text-decoration: underline;
    color: #fff;
}


/* ########################################### */
/*            detail.html                      */
/* ########################################### */

mark {
    background-color: var(--link); /* Match your forum accent yellow */
    color: var(--bg-main);
    border-radius: 2px;
    font-weight: bold;
}

.topic-container {
    color: var(--text);
}

.head {
    display: flex;
    background-color: var(--divider);
    padding: 5px;
    font-weight: bold;
    font-size: 15px;
}

.title {
    flex: 80%;
    font-style: normal;
    padding-left: 8px;
}

.head .op {
    display: none;
}

.authors {
    border-right: 2px solid var(--sig);
    flex: 20%;
    padding-top: 10px;
    text-align: center;
}

.webpost {
    display: flex;
    font-style: normal;
    flex: 80%;
    flex-direction: column;
    min-height: 200px;
    padding-left: 10px;
    padding-top: 10px;
}

.webpost #history-item {
    display: block;
    min-height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    clear: both;
    margin-bottom: 15px;
}

.time {
    display: block;
    background-color: var(--divider);
    border-top: solid var(--divider) 2px;
    border-bottom: solid var(--divider) 2px;
    padding: 5px;
    font-weight: bold;
    font-size: 10px;
    text-align: right;
}

.content {
    flex-grow: 1;
}

.content blockquote {
    /* make italics */
    background-color: var(--bg-main);
    border-inline: 3px dotted var(--sig);
    border-bottom: 1px solid var(--sig);
    font-style: italic;
    padding: 3px;
    justify-content: center;
    text-align: center;
    /* add formatting to make clear it's a quote of another post */
}

.content img {
    border: 10px solid var(--bg-main);
    display: block;
    max-width: 50%;
    margin: 15px auto;
    height: auto;
    text-align: center;
}

.img-caption {
    display: block;            /* Ensures it sits on its own line */
    text-align: center;        /* Centers it under the image */
    font-family: "Courier New", Courier, monospace; /* Makes it look "System Generated" */
    color: var(--accent2);               /* Soft gray */
    margin-top: -30px;         /* Pulls it closer to the image */
    margin-bottom: 20px;       /* Adds space before the next paragraph */
    text-transform: uppercase; /* Gives it that old-school computer shouty feel */
    font-size: 10px;
    letter-spacing: 1px;
}

.content .ql-video {
    box-shadow: 0 0 15px rgba(57, 40, 206, 0.2);
    display: block;
    margin: 15px auto;
    max-width: 50%;
    text-align: center;
}

.body {
    border-left: 3px solid var(--divider);
    border-right: 3px solid var(--divider);
    display: flex;
    flex-direction: column;
    background-color: var(--bg-post);
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 30px;
}

.post-main-area {
    display: flex;
    flex-direction: row;
}

.body .authors .username{
    font-size: 20px;
}

.body .authors img{
    max-width: 170px;
    margin-top: 5px;
}

.body .authors div u {
    text-decoration: none;
}

.body .sig-divider {
    color: var(--sig);
    margin: 10px 0;
    padding-bottom: 1px;
}

.body .sig {
    font-size: 12px;
}

@media screen and (max-width: 800px) {
    .head .op {
    display: none;
    }
    
    .authors {
        flex: 0 0 100px;
        max-width: 100px;
    }
    
    .body .authors .username {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .body .authors div {
        font-size: 12px;
    }
    
    .body .authors img {
        max-width: 100%;
    }
}