@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;
}

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;
}

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

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

.create-post-dedicated {
    bottom: 8vh;
    background-color: rgb(149, 194, 149);
}

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

.post-container {
    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: white;
    background-size: 50px, auto;
    /* box-shadow: 3px 3px gray; */
    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;
}


.view-post-btn {
    font-weight: bold;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    background-image: linear-gradient(to bottom, rgb(252, 248, 248), white);
    border-radius: .3vh;
    font-size: var(--font-size-small);
    padding: .3vh;
}

.view-post-btn:active { 
    background-image: linear-gradient(to top, rgb(236, 229, 229), white);
}

.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, .reply-count {
    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;
}

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

.pagination {
    display: flex;
    flex-basis: 70%;
    flex-wrap: wrap;
}

.pagination a {
    background-color: lightblue;
    padding: .8vh;
    font-size: .8em;
    margin: .5vh;
    transition: background-color .3s, box-shadow .3s;
    text-decoration: none;
    color: darkslategray;
    border-radius: .3vh;
}

.pagination a:hover {
    background-color: lightslategray;
    color: lightgray;
}

.pagination a:active {
    box-shadow: none;
}

.pagination form {
    padding: .8vh;
}

.pagination form input, .pagination form button {
    height: 100%;
    border: 1px solid grey;
    max-width: 4em;
    font-size: 1em;
    margin-right: .3vh;
    padding: .3vh;
}

.pagination .current-page {
    background-color: darkslategray;
    color: lightgray;
}

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

.catalog-page {
    margin-left: .5vh;
    background-color: #302525;
}

.pinned-post {
    padding: 1vh;
    background-color: #5e4747;
    /* box-shadow: 3px 3px #302525; */
    border: 1px solid #302525;
    color: burlywood;
}

.pinned-post .post-heading{
    text-align: left;
    margin: 0;
    width: 100%;
}

.pinned-post .post-header {
    margin: 0;
    padding-bottom: 1vh;
}

.pinned-post .content-container {
    padding: 1vh;
}

.pinned-post .post-thumb {
    float: left;
    width: 150px;
    height: 150px;
    overflow: hidden;
    text-align: center;
    margin-right: .5vh;
}

.pinned-post .post-thumb img {
    height: 150px;
    width: auto;
}

.end-marker {
    clear: both;
}

.post-header {
    position: relative;
}

.post-header .pin {
    position: absolute;
    top: -.5vh;
    right: -.5vh;
}

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

    .pinned-post .post-thumb {
        width: 100%;
        max-width: 100%;
        padding: 1em;
        margin-bottom: 1em;
    }
}

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


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

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

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

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

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

.post-form 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;
}

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