@font-face {
    font-family: 'Cherry Bomb One';
    src: url('/fonts/CherryBombOne-Regular.woff2') format('woff2'),
         url('/fonts/CherryBombOne-Regular.woff') format('woff'),
         url('/fonts/CherryBombOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
  

:root {
    --indigo-color: #9400ff;
    --deep-pink-color: #ec368d; /* rgb(236,54,141) */
    --apricot-color: #ffd6c0;
    --pink-color: #ffc0cb;
    --raisin-black-color: #272727;
    --deep-dark-color: #212121;
}

::-webkit-input-placeholder {
    color: white;
}

::-moz-placeholder {
    color: white;
}

::-ms-placeholder {
    color: white;
}

::placeholder {
    color: white;
}

.text-bg-gradient {
    color: #fff;
    background: linear-gradient(to right, var(--indigo-color), var(--deep-pink-color));
}

hr {
    border: none;
    border-top: 1px solid rgb(73, 73, 73) !important; /* Kolor i grubość */
}

body {
    background: var(--deep-dark-color);
    color: white;
}

.bg-303030 {
    background: #303030;
}

.deep-pink {
    color: var(--deep-pink-color);
}

.g-recaptcha {
    width: fit-content;
    margin: auto;
}

.form-container {
    display: flex;
    flex-direction: column;
    margin: auto;
    min-width: 500px;
    width: 30%;
    padding: 50px;
    margin-top: 50px;
    background: linear-gradient(rgba(236, 54, 141, 0.1), rgba(0, 0, 0, 0.7)),
        url("../img/form_woman.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 0 10px black;
}

.form-container form {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

input.login-form,
input.register-form {
    color: white;
    font-family: monospace;
    border: none;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 15;
}

input:focus-visible {
    outline: var(--indigo-color) solid 2px;
}

form > input[type="submit"] {
    background: linear-gradient(
        to right,
        var(--indigo-color),
        var(--deep-pink-color)
    );
    border-radius: 20px;
    border: none;
    box-shadow: 0 0 10px black;
    color: black;
    font-weight: bold;
    transition: all 0.3s;
}

form > input[type="submit"]:disabled {
    filter: grayscale(0.8);
    cursor: not-allowed !important;
    box-shadow: none;
    transition: all 1s;
}

form > input.error {
    outline: maroon solid 2px;
}

h1 {
    color: var(--deep-pink-color);
}

h3 {
    padding-left: 0.5rem;
    background: var(--deep-pink-color);
    background: linear-gradient(
        45deg,
        var(--deep-pink-color) -50%,
        rgba(0, 0, 0, 0) 90%
    );
    width: fit-content;
}

.play-icon {
    position: absolute;
    font-size: 2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: linear-gradient(
        to right,
        var(--indigo-color),
        var(--deep-pink-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.post-thumbnail-link {
    background: #1c1c1c;
}

.post-thumbnail-link:hover .play-icon {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.05);
    transition: all 0.3s;
}

.c-pointer {
    cursor: pointer;
}

/* unvisited link */
a:link {
    color: var(--pink-color);
    text-decoration: underline;
}

/* visited link */
a:visited {
    color: var(--apricot-color);
    text-decoration: underline;
}

/* mouse over link */
a:hover {
    color: white;
}

/* selected link */
a:active {
    color: silver;
}

.title {
    font-family: "Cherry Bomb One", system-ui;
    color: var(--pink-color);
    text-shadow: 3px 1px var(--deep-pink-color), -2px -1px var(--indigo-color);
    width: fit-content;
    text-decoration: none;
    user-select: none;
    cursor: pointer;
    transition: all 0.2s;
}

.title:hover {
    color: white;
    transition: all 0.5s;
}

#search-button {
    border: none;
    background-color: transparent;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
}

#content {
    display: flex;
    flex-direction: column;
    margin: auto;
    min-width: 500px;
    width: 30%;
    padding: 50px;
    margin-top: 50px;
}

.img-preview-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.img-preview-remove-btn:hover {
    background-color: red;
}

.upload-preview {
    max-height: 66vh;
    background: linear-gradient(
        to right,
        var(--indigo-color),
        var(--deep-pink-color)
    );
    border: 1px solid var(--indigo-color);
}

.user-profile-settings {
    background-color: var(--raisin-black-color);
}
.user-profile-content-row {
    min-height: 120px;
    background-color: var(--raisin-black-color);
    margin-bottom: 10px;
    padding: 15px;
    box-sizing: border-box;
}
.user-profile-content-row:last-child {
    height: auto; /* Allows this row to fill remaining space */
}

#post-show-left {
    flex: 1.5;
    padding: 1rem;
    margin: 0 0 0 0.5rem;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    background: #2a2a2a;
}

#post-show-right {
    flex: 1;
    padding: 1rem;
}

.post-img-container {
    width: 100%;
    max-height: 77vh;
    margin-bottom: 1rem;
    background: #1c1c1c;
}

.content {
    margin: 15px 15px 0 15px;
}

/* Masonry base */
.grid {
    /* żeby Masonry mógł liczyć procentową pozycję */
    width: 100%;
}

.grid-sizer {
    width: 12.5%;
}

.grid-item {
    width: 12.5%;
    margin-bottom: 10px;
}

.grid-item--wide {
    width: 62.5%;
}

/* Drobna stylizacja zawartości */
.grid-item > .card {
    height: 100%;
}

/* Obrazki wewnątrz elementów */
img.post-thumbnail {
    display: block;
    width: 100%;
    height: auto;
}

/* Wysuwające się opcje (przyciski na tle) */
.options-overlay {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    justify-content: flex-end;
    gap: .2rem;
    padding: 0 .4rem .2rem;
    visibility: hidden;
    opacity: 0;
    z-index: 10;
    transition: all 0.2s ease;
}

/* Pojawiająca się animacja dla tła */
.masonry-item:hover .options-overlay {
    visibility: visible;
    opacity: 1;
    bottom: 0;
    transition: all 0.2s ease;
}

/* Ikony przycisków */
.options-overlay i {
    color: white;
    font-size: 18px;
    margin-left: .5rem;
    cursor: pointer;
    z-index: 10;
    padding: .4rem;
}

.options-overlay i:hover {
    color: var(--deep-pink-color);
}

/* Stylowanie modala */
.custom-modal {
    display: none; /* Modal jest ukryty domyślnie */
    position: fixed; /* Pozostaje na miejscu podczas przewijania */
    z-index: 100; /* Na wierzchu */
    left: 0;
    top: 0;
    width: 100%; /* Pełna szerokość */
    height: 100%; /* Pełna wysokość */
    background-color: rgba(36, 36, 36, 0.5); /* Tło z przezroczystością */
    overflow: auto; /* Przewijanie, jeśli modal jest za duży */
    justify-content: center;
    align-items: center;
}

/* Zawartość modala */
.custom-modal-content {
    background-color: rgb(46, 46, 46);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px; /* Maksymalna szerokość */
    text-align: center;
}

/* Stylowanie listy opcji */
.custom-modal-options-list {
    list-style-type: none; /* Usuwamy punkty listy */
    padding: 0;
    margin: 20px 0; /* Odstępy od tytułu */
}

.custom-modal-options-list li {
    padding: 10px 20px;
    background-color: #4a4a4a;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-modal-options-list li:hover {
    filter: brightness(1.3);
}

.custom-modal-close-btn {
    padding: 10px 20px;
    background-color: var(--deep-pink-color);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
}

.custom-modal-close-btn:hover {
    filter: brightness(1.3);
}

/* Niestandardowa różowa kolorystyka */

.btn-outline-pink {
    color: #e91e63;
    border-color: #e91e63;
}

.btn-outline-pink:hover {
    background-color: #e91e63;
    color: white;
}

.btn-pink {
    background-color: #e91e63;
    color: white;
    border-color: #e91e63;
}

.btn-pink:hover {
    background-color: #d81b60;
    border-color: #d81b60;
}

/* komentarze */

.comment {
    border-left: 3px solid #eb00c3;
    padding: 10px;
    margin: 10px 0;
    background: #292929;
    border-radius: 5px;
}

.comment-author {
    color: #eb00c3;
}

.comment-content {
    margin: 5px 0;
    font-size: 14px;
}

.comment-meta small {
    color: #777;
    font-size: 12px;
}

.comment-reply button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 13px;
}

.comment-reply button:hover {
    text-decoration: underline;
}

.reply-form {
    margin-top: 10px;
    padding: 10px;
    /* background: #414141;
    border: 1px solid #eb00c3; */
    border-radius: 5px;
}

.reply-form textarea {
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid #cfcfcf;
    border-left: 0;
    background: inherit;
    resize: none;
    width: 100%;
    color: white;
}

.reply-form textarea:focus {
    outline: none;
    border-bottom: 2px solid #ffffff;
}

.reply-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.button-cancel:hover,
.button-reply:hover {
    cursor: pointer;
    filter: brightness(1.2);
}

.button-cancel {
    color: #eb00c3;
    background: inherit;
    border: none;
    padding: 5px;
}

.button-reply {
    color: white;
    background: #eb00c3;
    border: none;
    border-radius: 1rem;
    padding: 5px 15px;
    font-weight: bold;
}

.replies {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 15px; /* Odstępy wewnątrz ramki */
    margin: 3px; /* Odstęp między tagami */
    background-color: var(--deep-pink-color); /* Jasny różowy kolor tła */
    color: white; /* Kolor tekstu */
    border-radius: 5px; /* Zaokrąglone rogi */
    border: 2px solid #f39ac1; /* Ciemniejsza różowa ramka */
    font-size: 14px; /* Rozmiar tekstu */
    transition: background-color 0.3s ease, color 0.3s ease; /* Płynna zmiana koloru tła */
}

.tag:hover {
    filter: brightness(1.3); /* Ciemniejszy różowy kolor tła */
    /* color: white; Zmiana koloru tekstu na biały */
    cursor: pointer; /* Kursor wskazujący, że jest to interaktywne */
}

#success-alert {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    min-width: 200px;
    text-align: center;
    animation: bounceInDown 0.5s ease-out forwards;
}

/* Animacja: wyjeżdża z góry z odbiciem */
@keyframes bounceInDown {
    0% {
        opacity: 0;
        transform: translate(-50%, -100px);
    }
    80% {
        transform: translate(-50%, 200px);
    }
    100% {
        transform: translate(-50%, 190px);
    }
}

.breadcrumb {
    background-color: #363636 !important;
}

/* do skryptu char-limt.js */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.char-counter.shake {
    animation: shake 0.4s ease;
    font-weight: bold;
}

.error-code {
    background: linear-gradient(rgba(236, 54, 141, 0.2), rgba(30, 21, 109, 0.6)),
        url("../img/cat-stare.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    max-width: 66%;
    max-height: 33%;
    margin: auto;
    font-weight: 900;
    font-size: 400%;
    padding: 5rem 0;
    color: var(--deep-dark-color);
    text-shadow: 2px 2px 0 var(--pink-color), -2px -2px 0 white, 0 0 10px silver;
    margin-top: 4rem;
}

.error-code[data-code="401"] {
    background: linear-gradient(rgba(236, 54, 141, 0.2), rgba(30, 21, 109, 0.5)),
        url("../img/you-shall-not-pass.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

.error-code[data-code="402"] {
    background: linear-gradient(rgba(236, 54, 141, 0.2), rgba(30, 21, 109, 0.5)),
        url("../img/vince-mcmahon-money.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.error-code[data-code="403"] {
    background: linear-gradient(rgba(236, 54, 141, 0.2), rgba(30, 21, 109, 0.5)),
        url("../img/rick-middle-finger.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.error-code[data-code="404"] {
    background: linear-gradient(rgba(236, 54, 141, 0.1), rgba(30, 21, 109, 0.6)),
        url("../img/not-found.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
}

.error-code[data-code="500"] {
    background: linear-gradient(rgba(236, 54, 141, 0.2), rgba(30, 21, 109, 0.5)),
        url("../img/this-is-fine.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

/* Drag-n-Drop */

#drop-zone { 
    border: 2px dashed rgb(var(--bs-secondary-rgb));
    border-radius: 12px; 
    width: 100%; 
    height: 270px; 
    text-align: center; 
    padding: 20px; 
    margin: 20px auto; 
} 

#drop-zone.dragover {
    border-color: #fff;
} 
