@import url('commonMdStyle.css');

@font-face {
    font-family: 'Roboto';
    src: url('/fonts/Roboto-Regular.ttf');
}

:root {
    /* Color Variables */
    --color-primary: indianred;
    --color-secondary: rgb(231, 74, 74);
    --color-accent: lightpink;
    --color-text: indianred;
    --color-text-light: gray;
    --color-text-dark: darkred;
    --color-background: linear-gradient(120deg, #fce8d8, #f5dcc4);
    --color-border: lightgray;
    --color-button-signup: olivedrab;
    --color-button-login: lightskyblue;
    --color-button-logout: red;
    --color-button-hover: white;

    /* Post Colors */
    --post-color-header: rgb(143, 116, 80);
    --post-color-primary: rgb(143, 116, 80);
    --post-color-secondary: burlywood;

    /* Background Variables */
    --background-body: url('/images/setup/ahi-griha.gif') fixed 98% 99% no-repeat, var(--color-background);
    --background-hr: url('/images/setup/hr-1.png') center/contain no-repeat;
    --background-hr-1: url('/images/setup/hr-3a.png') center/contain no-repeat;
    --background-hr-2: url('/images/setup/hr-3b.png') center/contain no-repeat;
    --background-hr-3: url('/images/setup/hr-2b.png') center/contain no-repeat;
    --background-hr-4: url('/images/setup/hr-2c.png') center/contain no-repeat;

    /* Font Size Variables */
    --font-size-base: 1rem;
    --font-size-small: 0.85rem;
    --font-size-xsmall: 0.80rem;
    --font-size-medium: 1.2rem;
    --font-size-large: 1.5rem;
    --font-size-xlarge: 1.7rem;
}

* {
    border: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto';
    overflow-wrap: anywhere;
}

*::selection {
    background-color: var(--color-accent);
    color: var(--color-button-hover);
}

body{
    background: var(--background-body);
    background-size: 15vh, auto;
    padding: 2.5vh;
}

body > header {
    display: flex;
    justify-content: center;
    align-items: center;
}

header img {
    width: 5vh;
    height: auto;
    float: left;
}

#title{
    color: rgb(243 101 101);
    text-shadow: 0 0 5px rgb(255 159 159);
    filter: blur(0.6px) brightness(1.2);
    /* color: #F5A7A7; */
    font-size: 1.3rem;
    padding: 0.8rem;
    grid-area: header;
    text-align: center;
    animation: flicker 2s linear infinite forwards;
    animation-delay: 1s;
}

#title:hover{
    text-shadow: 0 0 25px rgb(245, 8, 131);
}

.title-hindi{
    font-family: 'Sarpanch', sans-serif;
    color: lightskyblue;
    text-shadow: 0 0 5px #c5e1e6;
}

.title-hindi:hover{
    text-shadow: 0 0 15px rgb(247, 168, 137);
}

.title-brahmi{
    color:#5e4747;
}

.board-banner {
    margin: 0 auto;
    text-align: center;
}

.board-banner img {
    height: 10vh;
    width: auto;
}

.boards h2, .about h2, .latest-posts h2 {
    margin-bottom: 1vh;
}

.boards {
    background:  url('/images/setup/ahisama.png') bottom right no-repeat, rgb(252, 248, 248);
    background-size: 50px, auto;
    color: salmon;
    border: 1px solid salmon;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: .5vh;
}

.boards a {
    padding: .5vh;
    margin: .5vh;
    color: salmon;
    text-decoration: none;
    border-radius: .3vh;
}

.boards a, .index-page, .catalog-page{
    transition: box-shadow.3s, color .3s;
    background-color: salmon;
    color: rgb(252, 248, 248);
    transition: background-color .3s, box-shadow .3s;
}

.boards a:hover, .index-page:hover, .catalog-page:hover, .to-bottom-btn:hover, .to-top-btn:hover, .create-post-dedicated:hover {
    background-color: rgb(233, 119, 107);
}

.boards a:active, .index-page:active, .catalog-page:active, .to-bottom-btn:active, .to-top-btn:active, .create-post-dedicated:active {
    box-shadow: none;
}

.board {
    display: flex;
    justify-content: center;
    align-items: center;
}

.board .board-img {
    width: 20px;
    height: 20px;
    margin-right: .5em;
}

 .create-post-dedicated {
    padding: .5vh;
    background-color: rgb(149, 194, 149);
    color: white;
    margin: .5vh;
    box-shadow: 3px 3px darkslategrey;
    position: fixed;
    right: 3vh;
    bottom: 3vh;
    border-radius: .3vh;
    transition: box-shadow.3s, color .3s;
}


.post-container, .boards, .secondary-navs, .reply-post-form, .reply, .reply-container h2 {
    min-width: 50%;
    max-width: 770px;
    margin: 2.5vh auto;
    padding: 2.5vh;
}

.secondary-navs {
    border: 1px solid lightblue;
    padding: 1.5vh;
    background-color:rgb(252, 248, 248);
    display: flex;
    justify-content:flex-end;
    align-items: center;
    border-radius: .5vh;
}

.index-page, .catalog-page {
    width: auto;
    height: auto;
    padding: .3vh;
    display: inline-block;
    margin: .3vh;
    text-decoration: none;
    border-radius: .3vh;
}


.to-bottom-btn, .to-top-btn {
    padding: .5vh;
    background-color: salmon;
    color: white;
    margin: .5vh;
    box-shadow: 3px 3px darkslategrey;
    position: fixed;
    right: 3vh;
    bottom: 3vh;
    transition: box-shadow.3s, color .3s;
}

.to-bottom-btn {
    right: 7vh;
}


.post-container, .reply {
    display: block;
    color: rgb(143, 116, 80);
    margin-bottom: 1.5vh;
    border: 1px solid lightgray;
    text-decoration: none;
    transition: background-color .3s;
    background:  url('/images/setup/light1.png') bottom right no-repeat, white;
    background-size: 50px, auto;
    border-radius: .5vh;
}

.post-container .post-intro {
    border-bottom: 1px solid lightgray;
    margin-bottom: 1.5vh;
    padding-bottom: 1.5vh;
}

body > footer {
    text-align: center;
    color: rgb(241, 241, 241);
    background-color: #f88191;
    border: 1px solid indianred;
    box-shadow: 2px 3px indianred;
}

.visitor-count span {
    color: darkred;
}


.post-id, .view-post-btn{
    font-weight: bold;
    border: 1px solid lightgray;
    text-decoration: none;
    color: inherit;
    background-color: rgb(252, 248, 248);

    transition: background-color .3s;
    font-size: .85em;
    padding: .3vh;
    overflow-wrap: normal;
}

.post-id {
    color: lightsalmon;
    margin-right: .5em;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    padding: .5vh;
}

.post-header {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    /* background-color: rgb(243, 228, 209); */
    padding: .5vh;
    border-bottom: 1px solid lightgray;
    padding: .8vh;
}

.view-post-btn:hover {
    background-color: burlywood;
    color: rgb(148, 89, 13);
}

.post-footer .post-timestamp,.post-footer  .board-post-id {
    font-style: italic;
    font-size: .8em;
}

.post-id {
    color: lightsalmon;
    margin-right: .5em;
}

.post-summary{
    margin-bottom: .5em;
    color: burlywood;
}

.post-heading {
    margin-bottom: .5em;
    font-size: 1.2rem;
}

.post-content {
    padding: 2.5vh;
    padding-top: .5vh;
    padding-right: 0;
}

summary {
    cursor: pointer;
}

@media screen and (max-width: 550px) {
    .post-content {
        padding: 1vh;
        padding-top: 0vh;
    }
}



.reply-post-form {
    margin: 0 auto;
    background: white;
    border: 1px solid lightgrey;
    padding: 20px;
    /* box-shadow: 3px 3px gray; */
    font-family: inherit;
    border-radius: .5vh;
}


.reply-post-form h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #444;
}

.reply-post-form label {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.reply-post-form input[type="text"],
.reply-post-form textarea,
.reply-post-form select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid lightgrey;
    /* border-radius: 4px; */
    font-size: 1.1em;
    font-family: inherit;
}

.reply-post-form textarea {
    height: 150px;
}

.reply-post-form input[type='file'] {
    margin-left: .5vh;
}

.reply-post-form button[type="submit"] {
    background: #ff8c8c;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: background 0.3s;
}

.reply-post-form button[type="submit"]:hover {
    background: #ff6b6b;
}

.reply-container h2 {
    color: var(--color-secondary);
    margin-bottom: 0;
    padding: 0;
    /* border-top: 1px solid gold; */
    padding-top: .8vh;
    padding-left: .8vh;
    font-size: 1em;
    color: var(--post-color-header);
}

.reply {
    background: rgb(248, 246, 246);
    margin-bottom: .5vh;
    margin-top: .5vh;
}

.reply figure {
    float:left;
    width: 120px;
    margin-right: .5vh;
    text-align: center;
}

.reply figcaption {
    font-size: 0.7em;
    text-align: center;
}

.reply img {
    max-width: 120px;
    max-height: 120px;
}

.reply footer {
    text-align: right;
    clear: both;
}

footer p {
    width: 100%;
}

.reply {
    position: relative
}


.option_drop_down {
    position: absolute;
    top: .3vh;
    right: .3vh;
}

.option_drop_down ul {
    list-style-type: none;
    background-color: var(--post-color-header);
    color: var(--post-color-secondary);
    padding: .3vh;
    border-radius: .5vh;
    margin: .5vh;
    cursor: pointer;
}

.option_drop_down ul li:hover {
    background-color: burlywood;
    color: var(--post-color-header);
}

.option_drop_down summary::marker {
    content: ": "; /* Default closed icon */
}

.option_drop_down details[open] summary::marker {
    content: "x"; 
    color: red;
    font-weight: bold;
}

.option_drop_down  summary {
    cursor: pointer;
    list-style: none;
}

.option_drop_down  summary::before {
    transition: transform 0.3s ease;
}

.option_drop_down details[open] summary::before {
    transform: rotate(180deg);
}