/*fonts*/
@font-face {
    font-family: "STOR";
    src: url("/fonts/STOR-Regular.ttf") format("truetype");
}

h2 {
    font-family: "STOR", sans-serif;
}

/*audio*/
audio {
    width: 100%;
    height: 20px;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-radius: 0;
    padding: 0;
    filter: invert(1) hue-rotate(180deg);
}

audio::-webkit-media-controls-progress-bar {
    background-color: #fff;
    height: 5px;
}

audio::-webkit-media-controls-progress-bar::-webkit-progress-value {
    background-color: #000 !important;
    height: 100%;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-timeline {
    color: #fff !important;
}

audio::-webkit-media-controls-play-button {
    background-color: #fff;
    border-radius: 30%;
    height: 20px;
}

audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-volume-slider {
    filter: invert(1);
}

audio::-webkit-media-controls-volume-slider {
    border-radius: 0 !important;
}

/*header*/
header {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.header {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-53%);
    width: 90%;
    max-width: 90%;
    z-index: 5;
}

.header img {
    max-width: 100%;
    height: auto;
    transform: rotate(-3deg);
}

header a {
    text-decoration: none;
    display: block;
}

/*main*/
body {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 90%;
    background: url('images/MazSwietyGaj.jpg') fixed center/cover;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 70%;
    margin: 11% auto 1rem;
    background: #fff;
    background-repeat: repeat;
    border: 15px solid #000;
    padding: 1rem;
    padding-top: 8%;
    border-radius: 150px;
    display: flex;
    flex-direction: column;
}

.content-area {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

main {
    flex: 1;
    min-width: 0;
    margin-right: 20px;
    margin-bottom: 1rem;
}

/*section content (dynamically loaded)*/
.content-container {
    display: block;
    width: 90%;
    margin: 0 auto;
}

.image-row {
    width: 100%;
    margin-bottom: 20px;
}

.image-row img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.text-row {
    width: 100%;
    text-align: justify;
    text-justify: inter-word;
}

.text-row p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.main-content {
    display: block;
}

/*brisque containers*/
.brisque-main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: .3em;
}

.brisque-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.brisque-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid #000;
    border-radius: inherit;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.brisque-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3%;
    padding-bottom: 3%;
    margin-top: 1.5%;
}

.brisque,
.brisque-main {
    position: relative;
    border: 3px solid #000;
    border-radius: 30px;
    overflow: hidden;
}

.brisque-main {
    width: 100%;
    aspect-ratio: 5/3;
}

.brisque img,
.default-img,
.hover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured,
.brisque,
.hover-card {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hover-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.default-img {
    transition: opacity 0.3s ease-in-out;
}

.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.hover-card:hover .hover-img {
    opacity: 1;
}

.hover-card:hover .default-img {
    opacity: 0;
}

@media (hover: none) and (pointer: coarse) {
    .hover-img {
        display: none;
    }

    .default-img {
        opacity: 1 !important;
    }
}

.bluetextbox {
    width: 100%;
    max-width: 100%;
    height: 15%;
    background: #fff;
    margin-bottom: 15%;
    border: 3px solid #000;
    border-radius: 35px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.bluetextbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*nav*/
nav {
    max-width: 30%;
    box-sizing: border-box;
    background: #000;
    padding: 1.1%;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 5% 5% 0 5%;
    background: #474747;
    border-radius: 20px 20px 0 0;
}

nav ul li {
    margin: 2%;
    display: flex;
    align-items: center;
    border: 2px solid #999;
    border-radius: 10px 25px 25px 10px;
    background: linear-gradient(145deg, #e0e0e0, #c0c0c0);
    padding: .25% 5%;
    width: 95%;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    font-family: "STOR", sans-serif;
    font-weight: bold;
    font-size: clamp(0.5rem, 1vw, 1em);
    width: 100%;
    padding: 5%;
    background: #f9f9f9;
    border-radius: 5px 15px 15px 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background: #000;
    color: #fff;
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.2),
                inset 2px 2px 4px rgba(255, 255, 255, 0.2);
}

/*corners*/
.trainticket,
.trainticket-hover,
.postcard,
.postcard-hover {
    position: fixed;
    z-index: 100;
    width: 22%;
    height: auto;
    transition: opacity 0.3s ease-in-out;
}

.trainticket,
.trainticket-hover {
    bottom: -10px;
    left: 0;
}

.postcard,
.postcard-hover {
    bottom: 0;
    right: 0;
    width: 25%;
}

.trainticket-hover,
.postcard-hover {
    display: none;
}

a:hover .trainticket,
a:hover .postcard {
    display: none;
}

a:hover .trainticket-hover,
a:hover .postcard-hover {
    display: block;
}

/*footer*/
footer {
    font-family: "STOR", sans-serif;
    background: #fff;
    color: #000;
    letter-spacing: 0.05em;
    border-radius: 50px;
    border: 15px solid #000;
    text-align: center;
    max-width: 38%;
    margin: 1rem auto 3%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto 20px;
}

.footer-links a {
    display: inline-block;
    text-decoration: none;
    padding: 6px 15px;
    font-size: 16px;
}

.footer-container {
    display: block;
    text-align: center;
}

/*nav widgets*/
.widgets-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.widget-box {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.moon-widget {
    width: 100%;
    max-width: 250px;
    margin: 10px auto;
    text-align: center;
}

.moon-widget img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.moon-caption {
    background: #000;
    color: #7f7f7f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    text-align: center;
    padding: 4px 0;
}

.moon-caption a {
    color: #7f7f7f;
    text-decoration: none;
}

.aqi-parent {
    width: 100%;
    display: flex;
    justify-content: center;
}

.aqi-container {
    display: flex;
    justify-content: center;
}

.neocities-link,
.hitcounter-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
}

.neocities-link {
    max-width: 180px;
}

.hitcounter,
.hitcounter img,
.neocities-link,
.neocities-link img {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    object-fit: contain;
    max-height: 100%;
    margin: 0 auto;
}

.hitcounter small,
.neocities-link small {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.website-counter {
    width: 100%;
    height: auto;
    display: block;
}

iframe {
    width: calc(100% - .5px);
    margin: 0 auto;
    border-radius: 0 0 25px 25px;
    display: block;
}

#statuscafe {
    background-color: #000;
    border: 0 solid #000;
    color: #fff;
    padding: 5px;
}

#statuscafe-username {
    margin: .1em;
}

#statuscafe-content {
    margin: 0.2em 0.5em 0.2em;
}

/*marquees*/
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: auto;
}

.marquee {
    display: flex;
    animation: marquee-scroll 20s linear infinite;
    width: max-content;
}

.marquee img {
    height: 20px;
    width: auto;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/*form*/
form {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

label {
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}






/*mobile*/
@media screen and (max-width: 768px) {
    .header {
        top: 4%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: none;
    }

    .content-area {
        flex-direction: column;
        align-items: center;
    }

    .container {
        width: 95%;
        max-width: 95%;
        padding: 20px;
        margin-top: 20%;
        padding-bottom: 10%;
        top: 25px;
        box-sizing: border-box;
        border: 5px solid #000;
        border-radius: 50px;
    }

        body {
        overflow-x: hidden;
    }

    main .intro,
    main .featured {
        padding: 10%;
        width: 95%;
        margin-bottom: 0;
    }

    main .intro {
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        word-wrap: break-word;
    }

    .pagecontent {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        visibility: hidden;
    }

 

    .brisque-container,
    .intro {
        margin-top: 4%;
        position: relative;
        padding-left: 3%;
        padding-right: 3%;
    }

    .brisque-container img {
        border-width: 2px;
    }

    main {
        flex: none;
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        box-sizing: border-box;
    }

    nav {
        max-width: 100%;
        border-radius: 30px 30px 20px 20px;
    }

    nav ul {
        max-width: 95%;
        border-radius: 30px 30px 0 0;
        padding: 3%;
    }

    nav ul li {
        padding: 1%;
        width: 97%;
    }

    nav ul li a {
        font-size: clamp(0.9rem, 1vw, 1em);
        padding: 2%;
    }

    .bluetextbox {
        height: auto;
        border-radius: 25px;
        margin-bottom: 5px;
    }

    .bluetextbox img {
        height: auto;
    }

    .trainticket,
    .trainticket-hover,
    .postcard,
    .postcard-hover {
        width: 100%;
        max-width: 175px;
    }

    .trainticket,
    .trainticket-hover {
        left: -5px;
        bottom: -15px;
    }

    .postcard,
    .postcard-hover {
        right: 0;
        bottom: 0;
    }

    footer {
        font-size: 8px;
        border-radius: 50px;
        border: 6px solid #000;
        margin: 1rem auto;
        max-width: 40%;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 2px;
        max-width: 100%;
        margin: 0 auto 1%;
    }

    .footer-links a {
        display: block;
        font-size: 16px;
        padding: 5px;
    }

    .widgets-row {
        flex-direction: row;
    }

    .widget-box {
        width: 48%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}