/* vars and stuff */
:root {
    --bg-dark: #1E1F22;
    --bg-primary: #2B2D30;
    --bg-secondary: #393B40;
    --bg-tertiary: #4E5157;
    --text-primary: #e0e0e0;
    --text-white: #ffffff;
    --accent: #898C92;
    --shadow: 0px 8px 28px -5px rgba(6, 6, 8, 0.6);
}

a {
    text-decoration: none;
    color: unset;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

/* base styles */
body {
    background: var(--bg-dark) fixed center/100% 100%;
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
}

h1 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;

}

/* bg circlez */
#circle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    clip: rect(0, auto, auto, 0);
}

.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(45px);
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* main content */
.content {
    width: min(900px, 90%);
    margin: 2rem auto 1.5rem auto;
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--bg-secondary);
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* projects */

.project {
    display: none;
    width: 100%;
}

.project.active {
    display: block;
}

/* slider */
.slider {
    width: min(600px, 90%);
    border: 1px solid var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    height: auto;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative; 
}


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

/* controls */

.project-list {
    margin-bottom: 1rem;
    display: flex;
}

.project-button {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem;
    font-size: 1rem;
}

.project-button:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-button:active {
    transform: translateY(2px);
    box-shadow: none;
}




.slider-controls-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

.prev-button, .next-button {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    color: var(--text-white);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
}

.prev-button:hover, .next-button:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.prev-button:active, .next-button:active {
    transform: translateY(2px);
    box-shadow: none;
}

.dots {
    margin: auto;
    display: flex;
    column-gap: 0.5rem;
    row-gap: 1rem;
    flex-wrap: wrap;
    width: min(600px, 90%);
    align-items: center;
    justify-content: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot.active { background: var(--accent); }
.dot:hover { filter: brightness(120%); transform: scale(1.2);}




.slider-controls-top {
    margin: 0 auto 1rem auto;
    height: 30px;
    width: min(600px, 90%);
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.autoscroll-controls {
    height: 100%;
    display: flex;
    border: 1px solid var(--bg-tertiary);
    border-radius: 15px;
    overflow: hidden;
}

.autoscroll-controls button {
    border: none;
    border-right: 1px solid var(--bg-tertiary);
    height: 100%;
    width: 100%;
    min-width: 50px;
    background: var(--bg-secondary);
    color: var(--text-white);
    transition: all 0.2s ease;
}

.autoscroll-controls button:last-child {
  border-right: none;
}

.autoscroll-controls button:hover {
    background: var(--bg-tertiary);
    cursor: pointer;
}

.autoscroll-controls button.active {
    background: var(--bg-primary);
}

.direction-control {
    height: 100%;
}


.direction-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 15px;
    height: 100%;
    min-width: 40px;
    color: var(--text-white);
    transition: all 0.2s ease;
}

.direction-toggle:hover {
    background: var(--bg-tertiary);
    cursor: pointer;
}


/* description */

.image-description-container {
    width: min(600px, 90%);
    margin: 1rem auto;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.description-box {
    min-height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.description-box p {
    margin: 0;
}

.description-box-header {
    padding-top: 0.3rem;
    width: 100%;
    height: 30%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.7rem;
    opacity: 0.7;
}

.description-box-content {
    padding-top: 0.2rem;
    padding-bottom: 0.5rem;
    width: 100%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#current-note {
    margin: 0;
    color: var(--text-primary);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    text-align: center;
    width: 100%;
}

#current-date {
    margin: 0;
    color: var(--text-primary);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    text-align: center;
    width: 100%;
}

#current-pixel-count {
    margin: 0;
    color: var(--text-primary);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    text-align: center;
    width: 100%;
}


/* footer */

.site-footer {
    text-align: center;
    color: var(--text-primary);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.site-footer:hover {
    opacity: 1;
}

.site-footer strong {
    color: var(--text-white);
    font-weight: 600;
}


/* counter */

.slide-counter {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-white);
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.counter-separator {
    margin: 0 0.2rem;
    opacity: 0.7;
}

.total-slides {
    opacity: 0.7;
}


/* contributors */

.contributor-box {
    min-height: 60px;
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 15px;
    width: min(600px, 90%);
    margin: 1rem auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
}

.contributor {
    min-height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
    word-break: break-word;
    transition: all 0.1s ease;
}

.contributor:hover {
    transform: scale(1.02);
}



.elite-contributor {
    min-height: 40px;
    background: linear-gradient(var(--bg-secondary) 0%, #3e3446 100%);
    border: 1px solid #825792;
    box-shadow: 0 0 15px rgba(255, 100, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
    word-break: break-word;
    transition: all 0.1s ease;
}

.elite-contributor:hover {
    transform: scale(1.02);
}




/* main page stuff */

.link-button-box {
    min-height: 60px;
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 15px;
    width: min(600px, 90%);
    margin: 1rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 0.5rem;
    padding: 0.5rem;
}

.link-button {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.2rem;
    font-size: 1rem;
    gap: 1rem;
}

.link-button:hover {
    background: var(--bg-tertiary);
    transform: scale(1.03);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.link-button:active {
    transform: translateY(2px);
    box-shadow: none;
}

#link-button-discord {
    background: #5865F2;
    border: 1px solid #727EF2;
}

#link-button-discord:hover {
    background: #727EF2;
}

#link-button-reddit {
    background: #FF5700;
    border: 1px solid #FF6B2B;
}

#link-button-reddit:hover {
    background: #FF6B2B;
}

#link-button-wplace {
    background: #D3EAC0;
    border: 1px solid #f4ffe7;
    color: var(--bg-dark);
}

#link-button-wplace:hover {
    background: #f4ffe7;
    transform: scale(1.02);
}

#link-button-youtube {
    background: #FF0033;
    border: 1px solid #fc4050;
}

#link-button-youtube:hover {
    background: #fc4050;
}

/* responsiveness stuff */
@media (max-width: 900px) {
    .content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .slider {
        width: 95%;
    }
    
    .slider-controls-bottom {
        gap: 0.75rem;
    }
    
    .prev-button, .next-button {
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1rem;
        margin: 0.5rem auto;
    }
    
    .slider-controls-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {
    .contributor-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .contributor-box {
        grid-template-columns: 1fr;
    }
}