/* SETTINGS */

:root {
    --gradient-opacity: 0.3;
}
::selection {
    background-color: #9a82a2;
    color: white;
}

/* BACKGROUND */

:root { --gradient-x: 0%; --gradient-y: 50%; }
#background {
    z-index: -1;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(153, 162, 255, var(--gradient-opacity));
    background-image: 
        radial-gradient(at calc(37% + var(--gradient-x)) calc(71% + var(--gradient-y)), hsla(284,91%,61%,var(--gradient-opacity1)) 0px, transparent 50%),
        radial-gradient(at calc(83% + var(--gradient-x)) calc(3% + var(--gradient-y)), hsla(328,83%,66%,var(--gradient-opacity2)) 0px, transparent 50%),
        radial-gradient(at calc(38% + var(--gradient-x)) calc(42% + var(--gradient-y)), hsla(213,89%,70%,var(--gradient-opacity1)) 0px, transparent 50%),
        radial-gradient(at calc(7% + var(--gradient-x)) calc(51% + var(--gradient-y)), hsla(279,71%,79%,var(--gradient-opacity2)) 0px, transparent 50%),
        radial-gradient(at calc(72% + var(--gradient-x)) calc(4% + var(--gradient-y)), hsla(141,83%,60%,var(--gradient-opacity1)) 0px, transparent 50%),
        radial-gradient(at calc(75% + var(--gradient-x)) calc(6% + var(--gradient-y)), hsla(245,60%,66%,var(--gradient-opacity2)) 0px, transparent 50%),
        radial-gradient(at calc(24% + var(--gradient-x)) calc(53% + var(--gradient-y)), hsla(59,73%,71%,var(--gradient-opacity1)) 0px, transparent 50%);
}
#grain { width: 100%; height: 100%; }
body {
    background-color: rgb(44, 62, 80);
}

/* CONTAINER */
.container {
    position: relative;
    width: min(960px, 100% - 40px);
    margin: 0 auto;
    padding-top: 30px;
    z-index: 0;
    container-type: inline-size;
}

img {
    width: 100%;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* TAGBAR */
#tagbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    margin-top: 2cqw;
    /* margin-bottom: 5cqw; */
}

#tagbar span {
    flex: 1;
    text-align: center;
    font-size: 1.5cqw;
    color: white;
    font-family: 'Arial', sans-serif;
    cursor: pointer;
    padding: 1.5cqw 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
#tagbar span:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #4d5c82;
}
#tagbar span:active {
    background-color: white;
    color: #4d5c82;
}

/* ROWS */
.row {
    display: flex;
    background-color: white;
    padding: 0 2cqw 0 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2cqw;
    height: 12.5cqw;
    border-radius: 0.5cqw;
    transition: all 0.3s ease;
    cursor: pointer;
}
.row:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}
.row-img {
    flex: 0 0 auto;
    height: 12.5cqw;
    overflow: hidden;
    border-radius: 0.5cqw 0 0 0.5cqw;
}
.row-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.row-content {
    flex-grow: 1;
    font-family: 'Arial', sans-serif;
    padding: 2.4cqw 3.1cqw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.row-content h3 {
    font-size: 1.8cqw;
    font-weight: 500;
    color: #333;
    padding: 0;
    margin: 0;
}
.row-content p {
    font-size: 1.5cqw;
    line-height: 1.5;
    color: #666;
    padding: 0;
    margin: 0;
}

h2 {
    color: white;
    font-size: 2.5cqw;
    font-weight: 500;
    font-family: 'Arial', sans-serif;
    padding: 0;
    margin: 4cqw 0 2cqw 0;
}