@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* {
    margin: 0%;
    padding: 0;
    box-sizing: border-box;
    --fontcolor: #e9e9e9;
    --backgroundcolor: #0f172a;
    --windowscolor: rgba(30, 41, 59, 0.6);
    color: var(--fontcolor);
    font-family: 'Rubik', 'sans-serif';
}

/*.backimgframe {background-image: url("./media/aged_photograph.png"); background-color: transparent;}*/

body {
    background-color: var(--backgroundcolor);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    padding: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}
body::before {
    animation: ani-point-b 3s ease-out forwards;
    z-index: -1;
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(195, 83, 220, 0.25) 0%, rgba(42, 15, 40, 0) 70%);
}
body > div {
    flex-grow: 1;
    width: 45%;
    max-width: 600px;
}

div {
    max-width: 800px;
    width: 100%;
    /*background: var(--windowscolor);*/
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}
div.error {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "title img" "desc img";
    gap: 10px 20px;
    align-items: center;
}
div.error img {
    grid-area: img;
    width: 128px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
div.error img:hover {
    transform: scale(1.2);
}

/*p {
    position: relative;
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}
p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #7B5197;
    transition: width 0.4s ease;
    border-radius: 2px;
}
p:hover::after {
    width: 100%;
}
p:target::after {
    width: 100%;
}*/

details {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    /*border: 1px solid rgba(255, 255, 255, 0.1);*/ 
    border-radius: 12px;
}
details:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}
details:target {
    border: 1px solid rgba(255, 255, 255, 0.1);
}
details:has(:target) {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

details[open] summary::after {
    transform: rotate(90deg);
}

summary {
    font-size: clamp(24px,1.8vw,32px);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 5px 0;
    min-width: 0;
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    margin-left: auto;
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    background-repeat: no-repeat;
}
summary img, p img {
    padding: 4px;
    border-radius: 8px;
    width: 64px;
    height: 64px;
    vertical-align: middle;
    margin-right: 10px;
    left: 15.5px;
    background: rgba(115, 164, 167, 0.15);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
summary img:hover, p img:hover {
    cursor: pointer;
    transform: scale(1.5);
    text-decoration-line: display;
}



p.img-inframe1 {
    position: relative;
    display: inline-flex;
    margin: 16px 10px;
    justify-content: center;
    align-items: center;
}


p.img-inframe1::before {
    content: "";
    position: absolute;
    z-index: 1;
    background-image: url("./media/aged_photograph.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    

    width: 110%;
    height: 110%;
}


.backimgframe {
    position: relative;
    z-index: 2;
    display: block;
    width: 200px;
    height: auto;
    padding: 4px;
    border-radius: 0px;
    background: rgba(34, 197, 94, 0.15);
    transition: transform 0.3s ease;
    background-color: transparent
}

.backimgframe:hover {
    transform: scale(0.9);
}



dialog.imageModal {
    border: none;
    padding: 0;
    background: transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    overflow: hidden;
}

dialog.imageModal img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

dialog.imageModal::backdrop {
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}





footer {
    align-items: center;
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    background: var(--windowscolor);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    padding: 10px 10px;
    flex-basis: 100%;
    flex-shrink: 0;
    /*gap: 15px;*/
}
footer p {
    margin: 0;
    padding: 0;
    border-top: none;
    text-align: center;
    margin-left: 10px;
}
footer p::after {display: none;}
footer img.avatar {
    width: 80px;
    height: 80px;
    margin-left: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
}
footer img.avatar:hover {
    transform: scale(1.3);
}
footer img.pink {
    width: 40px;
    height: 40px;
}
footer img.pink:hover {
    transform: scale(1.3);
}
footer p.created {
    margin-left: auto;
    text-align: center;
}
.pink {filter: invert(0.1) brightness(120%) contrast(100%) hue-rotate(166deg);}
.nocolorb {background: none; border: none; padding: 0;}



@media (max-width: 700px) {
    body > div {
        width: 100%;
    }
}