/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');


/* ########################################### */
/*                 Global                      */
/* ########################################### */
*{
    box-sizing: border-box;
}



/* ===== General Body Styling ===== */
body {
    font-family: 'Press Start 2P', cursive;
    line-height: 1.6;
    background: linear-gradient(45deg, #1f1f1f, #2a2a2a, #3f3f3f, #1f1f1f);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: white;
    margin: 0;
    padding: 0;
    padding-top: 100px; /* Avoid overlap */
    padding-bottom: 80px; /* Space for footer */
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

a{
    color:#87cefa;
    text-decoration: none;
}

a:hover {
    color: #ff6347;
}

h1{
    font-size:16px;
    font-weight: bolder;
}

p{
    font-size:11px;
}

.post-profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    margin-top: 10px;
}


.emoji {
    font-size: 32px;
    vertical-align: middle;
  }
  
  .subforum summary {
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .subforum summary::-webkit-details-marker {
    display: none; /* hides default arrow in Chrome/Safari */
  }
  
  .subforum summary::after {
    content: "▼";
    font-size: 1rem;
  }
  
  .subforum[open] summary::after {
    content: "▲";
  }
  
  

/* ########################################### */
/*           Forums.html                       */
/* ########################################### */
/* ===== Header Styling ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0; /* Ensure it starts from the left */
    width: 100%;
    z-index: 1000;
}

.logo {
    height: 100px;
    margin: 10px;
}

nav {
    flex: 1;
    text-align: center;
}

nav a {
    color: #87cefa;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

nav a:hover {
    color: #ff6347;
}

/* ===== Main Container Styling ===== */
.container {
    flex: 1;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    margin: 100px auto 20px auto;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 100%;
    box-sizing: border-box;
}

#content {
    min-height: 100vh; /* Makes sure content is scrollable */
}

/* ===== Footer Styling ===== */
footer {
    padding: 0px 0;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.subforum{
    margin-top:20px;
}

.subforum-title{
    background-color:#292B2E;
    padding: 5px;
    border-radius: 5px;
    margin:4px;
}

.subforum-row{
    display: grid;
    grid-template-columns: 50% 20% 30%;
}

.subforum-column{
    padding: 10px;
    margin:4px;
    border-radius: 5px;
    background-color:#111314;
}

.subforum-description *{
    margin-block: 0;
}

.center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.subforum-devider{
    display: none;   
}


/* For the smartphones */
@media screen and (max-width: 460px) {
    .container{
        margin: 10px;
        padding: 10px;
    }

    .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) {
    .container{
        margin: 15px;
        padding: 15px;
    }

    .subforum-row{
        display: grid;
        grid-template-columns: 50% 20% 30%;
    }

    html{
        font-size: 11px;
    }

    h1{
        font-size: 16px;
    }

  }

  /* Nav Bar styles */
.navbar{
    margin-top: 100px;
    display:flex;
    align-items: center;
}
.navigation{

    padding: 10px;
    width: 100%;
    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:#fff;
}

.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: #fff;
    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 #52057b;
    margin-top: 100px;
    padding: 40px;
    display:flex;
    justify-content: center;

}

.search-box select{
    padding: 10px;
}

.search-box input{
    padding: 10px;
}

.search-box button{
    padding: 10px;
    background-color:#fff;
    color:#000000;
}

.search-box button:hover{
    background-color: #000000;
    color: #fff;
    box-shadow: 1px 2px 3px #fff;
}

/* 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: #111314;
}

.chart{
    font-size:20px;
    font-weight:bold;
}
/* Footer Styling */

/* ########################################### */
/*            posts.html                       */
/* ########################################### */

/* posts table's head  */
.table-head{
    display: flex;
}

.table-head div{
    padding: 5px;
    margin: 2px;
    background-color: #2C2C2C;
    font-weight: bold;
}

.table-head .subjects{
    flex: 55%;
}

.table-head .replies{
    flex: 15%;
}

.table-head .last-reply{
    flex: 30%;
}

/* posts table's body  */

.table-row{
    display: flex;
}

.table-row .subjects, .table-row .replies, .table-row .last-reply{
    padding: 5px;
    margin: 2px;
    background-color: #131415;
}

.table-row .subjects{
    flex: 55%;
}

.table-row .replies{
    flex: 15%;
}

.table-row .last-reply{
    flex: 30%;
}

/* navigation path*/
.navigate{
    margin-block: 20px;
    font-weight: lighter;
    font-size: 12px;
}

.navigate a{
    color: #87cefa;
}

.navigate a:hover{
    color:#ff6347;
    font-weight: bolder;
}

/* Pagination*/

.pagination{
    padding: 20px;
    font-size: 15px;
}

.pagination a{
    color: #fff;
    margin-inline: 5px;
    padding: 5px 10px;
    border: solid 0.5px #fff;
}

.pagination a:hover{
    opacity: 0.5;
}

.note{
    background-color:#111314;
    padding: 20px;
    display: block;
}

.note span{
    font-size: 20px;
    margin-block: 5px;
}


/* ########################################### */
/*            detail.html                      */
/* ########################################### */

.head{
    display: flex;
    background-color: #2C2C2C;
    padding: 5px;
    font-weight: bold;
    font-size: 15px;
}

.authors{
    flex: 20%;
}

.content{
    flex: 80%;
}

.body{
    display: flex;
    background-color: #131415;
    padding: 10px;
    margin-top: 5px;
}

.body .authors .username{
    font-size: 20px;
}

.body .authors img{
    max-width: 80px;
    max-height: 80px;
}

.body .content .comment button{
    border:none;
    padding:10px;
    font-weight: bolder;
    box-shadow: 4px 6px #fff;
    cursor: pointer;
    float: right;
}

/* comment section */
.comment-area{
    margin-bottom:50px;
}

.comment-area textarea{
    width: 100%;
    min-height: 100px;
    padding: 10px;
    margin-block: 10px;
}

.comment-area input{
    float: right;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.comment-area input:hover{
    border: solid 1px #000000;
}

.create-topic-btn {
    background-color: #FF0042;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.create-topic-btn:hover {
    background-color: #cc0036;
}







