@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&family=Zen+Kaku+Gothic+Antique&family=Zen+Antique&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
    background: linear-gradient(#000b), linear-gradient(var(--col));
    color: white;
    overflow: hidden;
}

#app {
    height: 100%;
    width: 100%;
    position: relative;
}

a {
    color: white;
    text-decoration-line: none;
}

.background-image {
    position: absolute;
    inset: 0;
    background-image: var(--portlate), linear-gradient(to right, #0009, #0008), var(--portlate);
    background-size: contain, cover, cover;
    background-position: center, center, right;
    background-repeat: no-repeat, no-repeat, repeat-x;
    z-index: 0;

    @media (max-aspect-ratio: 4/5) {
        background-image: var(--portlate);
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
    }
}

.has-landscape {
    @media (min-aspect-ratio: 4/5) {
        background-image: var(--landscape);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 0;
    }
}

.overlay-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 12px;
    z-index: 1;
    max-width: 80%;
}

.menu-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2;
}

.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    overflow-y: auto;
}

.close-btn {
    align-self: flex-end;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-filter button {
    padding: 0.5rem 1rem;
    border: none;
    background: var(--idol-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.category-filter button.active {
    background: #0056b3;
}

.thumbs {
    display: grid;
    width: 100%;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, 100px);
    grid-gap: 5px;
}

.img-container {
    width: 100px;
    position: relative;
    display: inline-block;
}

.thumbs img {
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s;
}

.thumbs img:hover,
.thumb-overlay-text {
    transform: scale(1.05);
}

.img-container img {
    display: block;
    width: 100%;
    height: auto;
}

.thumb-overlay-text {
    position: absolute;
    margin: 0;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 0.5em;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.img-container:hover .thumb-overlay-text {
    opacity: 1;
}

.item-wrapper {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
}

.domain::before {
    content: 'takayama345.net';
    font-family: 'Comfortaa', serif;
    text-align: left;
    color: #fff;
    cursor: pointer;
    font-size: 2em;
    text-shadow:
        1px 1px 2px #0003,
        -1px 1px 2px #0003,
        -1px -1px 2px #0003,
        1px -1px 2px #0003;
}

.domain {
    margin: 0;
    margin-bottom: auto;
}

.card-text {
    padding: 1rem;
    margin-top: auto;
    background: linear-gradient(45deg, #0008, #0000, #0000);
    background: linear-gradient(to right, #0005, #0000);
}

.card-text h3,
p {
    margin: 0;
    white-space: pre-line;
}

.pwd, .cr {
    margin: 0;
    padding: 0em 0;
    text-align: center;
    font-size: 0.9em;
    font-family: 'Zen Antique', serif;
    background: linear-gradient(to right, #0005, #0000);
}
.cr{
    color: #fffd;
}



.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.2s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

.fade-enter-to,
.fade-leave-from {
    opacity: 1;
}