
:root {
    color-scheme: light dark;
}

/* Still issue when android user uses dark mode. */
/* After opening with edge browser in adroid background is black. */

html, body {
    background-color: #3E3C3C; /* Added red background */
    background-image: url(images/stripe.png);
    background-repeat: repeat;
    margin: 0px;
    padding: 0px;

    font-family: Verdana;
    font-size: 14px;
}

html {
  overflow-y: scroll;
}

::-ms-reveal {
    filter: invert(100%);
}

button,
input[type="submit"],
input[type="reset"] {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}




select.my-select {
    all: unset; /* remove all default styles */
    padding: 10px;
    font-size: 14px;
    font-family: Verdana;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

select.my-select option {
    color: #ffffff;
    padding: 10px;
    font-size: 14px;
    font-family: Verdana;
}

select.my-select option:hover {
    background-color: transparent;
}

select.my-select:focus {
    outline: none;
}

select.my-select[readonly], select.my-select:disabled {
    background-color: #4a4444; /* Set background color for readonly and disabled states */
    cursor: not-allowed;
}

select.my-select:not([readonly]):not(:disabled) {
    background-color: #3E3C3C; /* Set background color for normal state */
}


.box-shadow { box-shadow: #232323 0px 20px 30px -10px; }

/* TEXT-COLORS */
.txt-white { color: var(--text-primary); }
.txt-grey-800 { color: var(--text-secondary); }
.txt-grey-950 { color:  #797571; }
.txt-red-900 { color:  rgb(255, 56, 56); }
.txt-green-900 { color:  rgb(1, 218, 1); }

/* INPUT-FONTS */
.font-size-12 { font-size: 12px; }
.font-size-14 { font-size: 14px; }
.font-size-16 { font-size: 16px; }
.font-size-20 { font-size: 20px; }

.font-verdana { font-family: Verdana; }

/* ANIMATIONS */
.bg-trans { 
    /* transition: background-color 0.3s ease;  */
}

/* BACKGROUND-COLORS*/
.bg-red-700 { background-color: #C14B34; }
.bg-red-900 { background-color: red; }
.bg-green-900 { background-color: #00ff4428; }
.bg-green-800 { background-color: #558247; }
.bg-grey-100 { background-color: #3E3C3C; }

.bg-grey-150 { background-color: #4a4444; }

.bg-grey-200 { background-color: #4E4949; }
.bg-grey-800 { background-color:  #676767; }
.bg-grey-900 { background-color: #848484; }
.bg-violet-900 { background-color: #ad03bc; }
.bg-yellow-600 { background-color: rgb(132, 114, 70); }

.bg-grey-800:hover { background-color: #9e5d5d; }
.bg-grey-900:hover { background-color: #9e5d5d; }

.border-grey-800 {  border: 1px solid #848484; }

/* INPUTS */
.no-border { border: none; }
.no-outline {  outline: none; }

.no-user-select {
    user-select: none;
    -webkit-user-select: none;
}

/* PADDING */
.p-2 { padding: 2px; } 
.p-5 { padding: 5px; }
.p-10 { padding: 10px; }

.pl-5 { padding-left: 5px; }

.pl-10 { padding-left: 10px; }
.pr-10 { padding-right: 10px; }

.pr-16 { padding-right: 16px; }

/* MARGIN */
.m-5 { margin: 5px; }
.m-10 { margin: 10px; }

.ml-10 { margin-left: 10px; }
.ml-20 { margin-left: 20px; }

.mr-10 { margin-right: 10px; }
.mr-20 { margin-right: 20px; }

.ml-5 { margin-left: 5px; }
.mr-5 { margin-right: 5px; }


.mt-3 { margin-top: 3px; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mt-35p { top: 35%; }

/* WIDTH */
.w-100 { width: 100px; }
.w-100-input { width: 100%; box-sizing: border-box; } 
.w-100p { width: 100%; }

.rounded-5 { border-radius: 5px; }
.rounded-10 { border-radius: 10px; }

/* HEIGHT */
.h-35 { height: 35px; }

/* FLEX */
.flex { 
    display: flex;
    flex-wrap: wrap;
    column-gap: 15px;
    row-gap: 10px;
}

.vertical-center {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0px 100px 0px;
}

/* meniu grid */
.main-grid { 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.buttons-grid { 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    /* background-color: #03bc15; */
}

.profile-pictures-grid { 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.profile-pictures-grid div {
    aspect-ratio: 1 / 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    text-overflow: ellipsis; 
}

.span-two {
    grid-column: span 2;
    aspect-ratio: auto !important; /* override the 1/1 enforced aspect ratio */
    height: auto !important; /* allow height to expand */
    width: 100%; /* fill the spanned grid columns horizontally */
}

.align-bottom-left {
    display: flex;
    align-items: flex-end;
}

.flex-none { display: none; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }

.align-item { align-items: center; }

.pos-absolute { position: absolute; }

.inline-block { display: inline-block; }

/* File-UPLOAD */
.custom-file-upload {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    background-color:  #676767;
    font-family: Verdana;
    font-size: 14px;
}

.custom-file-upload input {
    display: none;
}


.pagination {
  text-align: center;
  margin: 1em 0;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background-color 0.2s, border-color 0.2s;
}

.pagination-link:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

.pagination-link.active {
  background-color: #333;
  color: #fff;
  border-color: #333;
  font-weight: bold;
}



/* POST STUFF START ------------------------------------------ */
.content-wrapper {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

.content-wrapper.leaving {
    opacity: 0;
    transform: translateX(-20px);
}

.content-wrapper.entering {
    opacity: 0;
    transform: translateX(20px);
}

button {
    background-color: #4d3d3d;         /* Dark gray background */
    color: #eee;                     /* Light text color */
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    /* transition: background-color 0.3s ease, color 0.3s ease; */
    -webkit-user-drag: none; /* Prevents drag on Safari */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

button:hover {
    background-color: #564343;          /* Slightly lighter on hover */
    color: #fff;
}

button:active {
    background-color: #333;          /* Darker on click */
    color: #ddd;
}

/* Controls the font size and color for comment text spans */
.comment-text {
    font-size: 14px;
    color: #eee;
}

/* Style for date spans */
.comment-date {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

/* Style for the depth identifier on the right */
.comment-depth {
    font-size: 10px;
    color: #aaa;
    white-space: nowrap;
}

.post-background-color {
    /* background-color:rgb(64, 51, 51);
    background-color:rgb(70, 57, 57); */
    background-color:rgb(70, 57, 57);
    color: #ddd;
}

.post-background-color-opacity {
    background-color:rgb(70, 57, 57, 0.5);
    color: #ddd;
}



.comments-pages-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 10px;
}

.comments-page {
  width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;

}
/* POST STUFF END ------------------------------------------ */

.brake-word {
    word-wrap: break-word;     /* Legacy, still works */
    overflow-wrap: break-word; /* Modern standard */
    word-break: break-all;     /* Force break even in long unbroken strings */
}

/* Ensure button has relative positioning for absolute badges */
button[name="admin-approve"] {
    position: relative !important;
    overflow: visible !important;
}

/* Optional: Add animation when badge updates */
@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.button-badge-left.updated {
    animation: badgePulse 0.3s ease-in-out;
}

/* Disable both login and back buttons after form submission */
form.submitted button[name="login"],
form.submitted button[name="back"] {
    opacity: 0.5;
    pointer-events: none;
}

@media (700px <= height) {

    /* .vertical-center {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    } */

    /* .buttons-grid { 
        background-color: #ad03bc;
    } */
}

@media (width <= 300px) {
    .vertical-center {
        display: block;
    }

    .vertical-center-fixed-top {
        display: block;
    }
}

@media (width <= 350px) {
    
    .vertical-center {
        align-items: flex-start;
    }

    .sm-350\:main-grid { 
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .profile-pictures-grid { 
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .sm-350\:w-max-350 { max-width: 300px; }

    .sm-350\:buttons-grid { 
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
}

@media (351px <= width <= 550px) {
    select.my-select {
        font-size: 16px;
    }

    /* .sm_550\:bg_green_900 { background-color: #2BAA4D; } */
    
    .align-bottom-left {
        display: flex;
        align-items: flex-end;
    }
    
    .sm-550\:main-grid { 
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .sm-550\:buttons-grid { 
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .sm-550\:buttons-grid-2 { 
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .sm-550\:justify-center { justify-content: center; }

    .sm-550\:w-100p { width: 100%; }
    .sm-550\:mt-10 { margin-top: 10px; }

    .sm-550\:p-15 { padding: 15px; }

    .sm-550\:w-100p { width: 100%; }

    .sm-550\:w-max-350 { max-width: 350px; } 

    .sm-550\:font-size-12 { font-size: 12px; }
    .sm-550\:font-size-14 { font-size: 14px; }
    .sm-550\:font-size-16 { font-size: 16px; }
    .sm-550\:font-size-20 { font-size: 20px; }
    .sm-550\:font-size-25 { font-size: 25px; }

    .sm-550\:h-35 { height: 35px; }
    .sm-550\:h-40 { height: 40px; }

    .sm-550\:w-calc-40 { width: calc(100% - 40px); }
}

@media (550px <= width) {
    .md-800\:justify-center { justify-content: center; }
    .md-800\:w-calc-80 { width: calc(100% - 80px); }
    .md-800\:w-max-350 { max-width: 350px; } 
    .md-800\:ml-10 { margin-left: 10px; }

    .md-800\:buttons-grid-2 { 
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}
