@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';
}

body {
    background-color: var(--backgroundcolor);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column;
}

div {
    max-width: 600px;
    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;
}

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%;
}

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[open] summary::after {
    transform: rotate(90deg);
}

summary {
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 5px 0;
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    margin-left: auto;
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    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;
}
summary img, p img {
    padding: 4px;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
    background: rgba(34, 197, 94, 0.15);
    transition: transform 0.3s ease;
    /*border: 1px solid rgba(34, 197, 94, 0.3);*/
}
summary img:hover, p img:hover {
    cursor: pointer;
    transform: scale(1.5);
    text-decoration-line: display;
}

.noactive {
    filter: grayscale(100%);
    opacity: 0.5;
    background: linear-gradient(to left, rgba(200, 200, 200, 0.5), transparent);
    pointer-events: none;
    cursor: not-allowed;
    border-radius: 10px;
}
.noactive span {
    margin-left: auto;
    padding-right: 15px;
    background-image: linear-gradient(to right, rgb(116, 200, 239), rgb(116, 110, 239));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
    filter: invert(100%);
    transition: transform 0.3s ease;
}
.noactive span:hover {
    transform: scale(1.5);
}
.warning {
    color: rgba(255, 255, 100, 0.7);
    background: linear-gradient(to left, rgba(229, 255, 0, 0.1), transparent);
    cursor: pointer;
    border-radius: 10px;
}
.warning span {
    margin-left: auto;
    padding-right: 15px;
    transition: transform 0.3s ease;
}
.warning span:hover {
    transform: scale(1.5);
}


footer {
    max-width: 600px;
    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;
}
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.2);
}
footer p.created {
    margin-left: 160px;
}