@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/palash_tree332.gif') fixed left bottom/contain no-repeat, */
        url('/images/setup/ahi-griha-diwali.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);
}

hr, .hr-1, .hr-2, .hr-3, .hr-4 {
    border: none;
    height: 40px;
    background: var(--background-hr);
}

.hr-1 { background: var(--background-hr-1); }
.hr-2 { background: var(--background-hr-2); }
.hr-3 { background: var(--background-hr-3); }
.hr-4 { background: var(--background-hr-4); }

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

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

body > header img {
    width: 8vh;
    min-width: 50px;
    height: auto;
}

body > header h1 {
    color: var(--color-secondary);
    text-shadow: 0 0 5px rgb(255 159 159);
    filter: blur(0.6px) brightness(1.2);
    font-size: var(--font-size-xlarge);
    text-align: center;
    animation-delay: 1s;
}

body > header h1:hover {
    text-shadow: 0 0 25px rgb(255, 220, 238);
}

h2 {
    margin-bottom: .3em;
}

.user-info {
    text-align: center;
    margin: 2.5vh auto;
    color: var(--color-primary);
    font-size: var(--font-size-medium);
}

.tag-icon {
    max-width: 35px;
    max-height: 35px;
}

.user-info a {
    text-decoration: none;
    font-weight: bold;
}

.user-info .type, .user-info .status {
    color: var(--color-text-light);
}

.user-info .pending { color: yellow; text-shadow: 1px 1px rgb(170, 48, 48); }
.user-info .active { color: lightgreen; }
.user-info .banned { color: red; }

.about, .boards, .latest-posts, body > footer {
    min-width: 50%;
    max-width: 770px;
    margin: 1.5vh auto;
    padding: 1.5vh;
    border-radius: .5vh;
}

.about { color: var(--color-primary); margin-top: 0; }

.login-signup-buttons {
    display: flex;
    justify-content: flex-end;
}

.login-signup-buttons a {
    margin-right: .5vh;
    padding: .3vh;
    transition: background-color .3s;
}

.login-signup-buttons .signup { color: var(--color-button-signup); }
.login-signup-buttons .signup:hover { background-color: var(--color-button-signup); color: var(--color-button-hover); }
.login-signup-buttons .login { color: var(--color-button-login); }
.login-signup-buttons .login:hover { background-color: var(--color-button-login); color: var(--color-button-hover); }
.login-signup-buttons .logout { color: var(--color-button-logout); }
.login-signup-buttons .logout:hover { background-color: var(--color-button-logout); color: var(--color-button-hover); }

.boards { color: var(--color-primary); }

.latest-posts { color: var(--post-color-primary); }

.board-container {
    display: flex;
    flex-wrap: wrap;
}

.board {
    display: flex;
    padding: .5vh;
    margin: .5vh;
    background-color: rgb(250, 248, 248);
    text-decoration: none;
    border: 1px solid var(--color-border);
    box-shadow: 0 0 3px rgba(243, 241, 241, 0.329);
    transition: box-shadow .3s linear;
    border-radius: .5vh;
    align-items: center;
}

.board:hover { background-color: rgb(214, 211, 211); }
.board:active { box-shadow: none; }

.board .board-img {
    width: 50px;
    height: 50px;
    margin-right: .5em;
    border-radius: .3vh;
}

.board h3 { font-size: var(--font-size-base); margin-bottom: .3em; }
.board p { font-size: var(--font-size-small); }

.post-container {
    display: block;
    color: var(--post-color-primary);
    margin-bottom: 1.5vh;
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: background-color .3s;
    background: rgba(255, 255, 255, 0.89);
    border-radius: .5vh;
}

.post-header {
    padding: .5em;
    border-bottom: 1px solid var(--color-border);
}

.post-footer {
    padding: .5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-small);
}

.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 .post-timestamp, .post-footer .board-post-id { font-style: italic; font-size: var(--font-size-xsmall); }

.post-heading { font-size: var(--font-size-base); }

.content-container { 
    padding: .5em;
    color: var(--post-color-secondary);
 }

.post-thumb {
    float: left;
    margin-right: 1em;
    max-width: 120px;
    max-height: 120px;
    overflow: hidden;
    text-align: center;
}

.post-thumb img {
    max-width: 100px;
    max-height: 100px;
    border-radius: .5vh;
}

.end-marker { clear: both; }

body > footer {
    text-align: center;
    color: #f88191;
    font-weight: bold;
    font-size: var(--font-size-small);
    padding: 0;
}

.visitor-count span { color: var(--color-text-dark); }
footer .visitor-count { color: #ff4d6d; font-size: var(--font-size-medium); font-weight: bold; }
.visitor-count .count { color: var(--color-primary); }

.ahisama-banner {
    margin: 1vh 1vh 0 1vh;
    position: relative;
    text-align: center;
}

.ahisama-banner img { width: 150px; height: auto; }

footer p { font-size: var(--font-size-small); color: #999; }
footer p a { text-decoration: none; color: #ff4d6d; font-weight: bold; }
footer p a:hover { text-decoration: underline; color: #ff0038; }

.server_response_dialogue_box {
    border: 1px solid brown;
    margin-top: 2.5vh;
    font-size: var(--font-size-base);
    color: brown;
    padding: .5vh;
    box-shadow: 3px 3px brown;
    background-color: white;
    overflow: hidden;
}

.server_response_dialogue_box img { width: 100%; max-height: 150px; }

@keyframes flicker {
    0%, 6%, 8%, 10%, 50%, 100% { filter: blur(0.6px) brightness(0.8); }
    3%, 7%, 9%, 20%, 99% { filter: blur(0.6px) brightness(1); }
}

@media screen and (max-width: 500px) {
  .about, .boards, .latest-posts, body > footer {
    padding: 0;
  }
}