@font-face {
    font-family: 'Gaegu';
    font-weight: 400;
    font-style: normal;
    src: url(/fonts/Gaegu-Regular.woff) format("woff");
}

@font-face {
    font-family: 'Sniglet';
    src: url('/fonts/Sniglet-Regular.woff2') format('woff2'),
        url('/fonts/Sniglet-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Varela Round';
    font-weight: 400;
    font-style: normal;
    src: url(/fonts/VarelaRound-Regular.woff) format("woff");
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}

* {
    margin: 0;
    padding: 0;
    transition: 0.5s ease;
}

body {
    margin: auto;
    background-color: #EFF3F6;
    background-image: url(https://cotton.bouvardia.blue/img/m/bg2.png);
    background-attachment: fixed;
    overflow-wrap: break-word;
    font-family: 'Open Sans', sans-serif;
    font-size: 13.5px;
    color: #484e6f;
    line-height: 25px;
    letter-spacing: 0.5px;
}

main {
    padding: 20px;
    width: 100%;
    max-width: 800px;
    min-height: 100vh;
    margin: auto;
    background-color: transparent;
}

a {
    color: #A3BCE4;
    text-decoration: none;
    border-bottom: 1px dotted #A3BCE4;
    transition: 0.3s;
}

a:hover {
    color: #D3E0C1;
    border-color: #D3E0C1;
}

h1 {
    font-family: 'Sniglet', sans-serif;
    font-size: 40px;
    text-transform: lowercase;
    color: #EFF3F6;
    text-align: center;
    text-shadow:
        -1px -1px 0 #b1cfdd,
        1px -1px 0 #A3BCE4,
        -1px 1px 0 #c7c7c7,
        1px 1px 0 #b1cfdd;
    margin-bottom: 20px;
}

.tag-header {
    text-align: center;
    margin-bottom: 20px;
}

.clear-filter {
    display: inline-block;
    margin-top: 10px;
    font-size: 12pt;
}

.admin-links {
    text-align: center;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 11pt;
}

.entry {
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 15px;
    background-color: transparent;
    border-radius: 15px;
    width: 80%;
}

.e {
    margin: auto;
    padding: 10px;
    border: 1px solid #e7e7e7;
    background: rgba(221, 233, 246, 0.5);
    border-radius: 15px;
    width: 80%;
}

.post-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.post-main.align-left {
    flex-direction: row;
}

.post-main.align-right {
    flex-direction: row-reverse;
}

.profile-pic {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    margin: 10px;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.8;
    filter: drop-shadow(1px 0 0 #c9dcf2)
        drop-shadow(0 1px 0 #c9dcf2)
        drop-shadow(-1px 0 0 #c9dcf2)
        drop-shadow(0 -1px 0 #c9dcf2);
}

.bubble-and-attachments {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    max-width: 80%;
}

.bubble {
    position: relative;
    background: #EFF3F6;
    word-wrap: break-word;
    border: 1px solid #ddd;
    min-height: 70px;
    border-radius: 28px;
    padding: 15px;
    font-size: 10pt;
    letter-spacing: 0.2px;
    font-family: 'Open Sans', sans-serif;
}

.bubble.align-right {
    background: #EFF3F6;
}

.bubble.align-left:after {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    z-index: 1;
    border-style: solid;
    border-color: transparent #dde9f6;
    border-width: 20px 20px 20px 0;
    top: 27px;
    left: -20px;
}

.bubble.align-right:after {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    z-index: 1;
    border-style: solid;
    border-color: transparent #dde9f6;
    border-width: 20px 0 20px 20px;
    top: 27px;
    right: -20px;
}

.bubble-content {
    width: 100%;
    margin: auto;
    min-height: 10px;
}

.bubble-txt {
    padding: 10px;
}

.bubble-images-container {
    margin-top: 15px;
}

.bubble-image-single, .imgy {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    margin: auto;
    display: block;
    opacity: 0.9;
    transition: 0.3s;
    border: 1px dotted #dae4ea;
}

.bubble-image-single:hover,
.clickable-image:hover {
    opacity: 1;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.bubble-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0;
}

.bubble-image-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.bubble-image-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.9;
    transition: 0.3s;
    border: 1px dotted #dae4ea;
    border-radius: 10px;
}

.bubble-videos-container {
    margin-top: 15px;
}

.bubble-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 10px 0;
}

.collapsible {
    width: fit-content;
    margin: 10px auto;
    background-color: #ecf1f4;
    text-align: left;
    font-size: 9pt;
    font-family: 'Varela Round', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    color: #A3BCE4;
    padding: 5px 10px;
    border: 1px dotted #dde9f6;
    border-radius: 12.5px;
    cursor: pointer;
    transition: 0.3s;
}

.collapsible:hover {
    color: #b1cfdd;
    background-color: #dde9f6;
    border: 1px dotted #b1cfdd;
}

.collapsible:before {
    content: '+';
    font-weight: bold;
    font-size: 10pt;
    padding: 2px;
}

.collapsible.active:before {
    content: '-';
}

.content {
    padding: 0 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background: none;
}

.post-images-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-videos-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vid {
    width: 100%;
    max-width: 350px;
    margin: auto;
    max-height: 200px;
    border-radius: 15px;
    border: 1px dotted #dae4ea;
    overflow: hidden;
}

.vid video {
    width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 15px;
    display: block;
}

.vid iframe {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    border: none;
    display: block;
}

.vid.spotify iframe {
    height: 152px;
}

.vid.spotify.large iframe {
    height: 380px;
}

.post-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.post-videos-grid .vid {
    height: 250px;
}

.post-videos-grid .vid video,
.post-videos-grid .vid iframe {
    height: 250px;
    object-fit: cover;
}

.video-spoiler-wrapper {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.video-spoiler-wrapper .vid {
    filter: blur(20px);
    transition: filter 0.3s;
}

.video-spoiler-wrapper.revealed .vid {
    filter: blur(0);
}

.video-spoiler-wrapper .spoiler-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(163, 188, 228, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    pointer-events: none;
    z-index: 2;
}

.video-spoiler-wrapper.revealed .spoiler-overlay {
    display: none;
}

.post-image-single {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    margin: 0 auto;
    display: block;
    opacity: 0.9;
    transition: 0.3s;
    border: 1px dotted #dae4ea;
    cursor: pointer;
}

.post-image-single:hover {
    opacity: 1;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.post-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.post-image-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.post-image-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.9;
    transition: 0.3s;
    border: 1px dotted #dae4ea;
    border-radius: 10px;
}

.post-image-spoiler {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.post-image-spoiler img {
    filter: blur(20px);
    transition: filter 0.3s;
}

.post-image-spoiler.revealed img {
    filter: blur(0);
}

.spoiler-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(163, 188, 228, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    pointer-events: none;
}

.spoiler-overlay-small {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(163, 188, 228, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    pointer-events: none;
}

.post-image-spoiler.revealed .spoiler-overlay,
.post-image-spoiler.revealed .spoiler-overlay-small {
    display: none;
}

.spoiler-overlay-text {
    color: #fdfdfd;
    font-family: 'Varela Round', sans-serif;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.spoiler-overlay-text .warning {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.spoiler-overlay-text .instruction {
    font-size: 12px;
    opacity: 0.9;
}

.warning-small {
    font-size: 28px;
    text-align: center;
    color: #fdfdfd;
}

.details {
    text-align: left;
    font-size: 10pt;
    font-family: 'Varela Round', sans-serif;
    text-transform: uppercase;
    color: #fdfdfd;
    margin-bottom: 10px;
}

.tag-badge {
    display: inline-block;
    background-color: transparent;
    color: #A3BCE4;
    text-transform: lowercase !important;
    padding: 3px 8px;
    font-family: monospace !important;
    border-radius: 10px;
    font-size: 13px;
    margin: 0 3px;
    border: 1px dotted transparent;
    text-decoration: none;
    transition: 0.3s;
}

.tag-badge:before {
    content: '#';
}

.tag-badge:hover {
    background-color: #A3BCE4;
    border: 1px dotted #fcfcfc;
    color: #EFF3F6;
}

.post-date {
    margin-left: 10px;
    color: #fcfcfc;
    background-color: rgba(163, 188, 228, 0.4);
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 10px;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(163, 188, 228, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 15px;
    border: 2px solid #dde9f6;
    position: relative;
    z-index: 2;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-family: 'Sniglet', sans-serif;
    z-index: 10000;
    border: none;
}

.lightbox-close:hover {
    color: #D3E0C1;
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 10000;
}

.lightbox-nav span {
    font-size: 60px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 10px 20px;
    font-family: 'Sniglet', sans-serif;
}

.lightbox-prev {
    margin-left: 20px;
}

.lightbox-next {
    margin-right: 20px;
}

.lightbox-nav span:hover {
    color: #D3E0C1;
}

.lightbox-spoiler-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(163, 188, 228, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 12.5px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: #EFF3F6;
}

::-webkit-scrollbar-thumb {
    background: #dae4ea;
    border-radius: 5px;
    border: 1px dotted #fcfcfc;
    transition: 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #D3E0C1;
    transition: 0.3s;
}

@media all and (max-width: 640px) {
    html, body {
        overflow-x: hidden;
    }

    main {
        width: 100%;
        padding: 10px;
    }

    .entry {
        width: 80%;
        padding: 10px;
    }

    .profile-pic, .bubble.align-left:after, .bubble.align-right:after {
        display: none;
    }

    .post-main {
        justify-content: center;
    }

    .bubble-and-attachments {
        max-width: 100%;
    }

    .post-images-grid,
    .bubble-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .post-image-thumb-wrapper,
    .bubble-image-thumb-wrapper {
        height: 100px;
    }

    .post-image-thumb,
    .bubble-image-thumb {
        height: 100px;
    }

    .lightbox-image {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-nav span {
        font-size: 40px;
    }
}