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

html {
color-scheme: light dark;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none;
text-size-adjust: none;
hanging-punctuation: first allow-end last;
height: 100%;
width: 100%;
}

ul,
ol,
dl {
list-style-position: inside;
}

ul,
ol,
dl {
    padding-inline-start: 1lh;
}

body {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background-color: #eee;
    color: #555;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #ccc;
    margin-bottom: 1rem;
}

footer {
    background-color: #aaaaaa;
    color: #707070;
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid #ccc;
}

main h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.projects_grid {
    padding: 1rem;
    max-width: 1200px;
    margin: 2rem auto;
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
}

.project {
    background-color: #fff;
    color: #555;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    width: 25%;
    min-width: 250px;
    max-width: 400px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project:has(.copy-button:hover) {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stats span {
    font-family: 'Courier New', Courier, monospace;
    color: greenyellow;
    background-color: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 0.2rem;
    font-weight: bold;
}

.copy-button {
    background-color: #b8b8b8;
    color: #707070;
    padding: 0.5rem 1rem;
    border-radius: 0.2rem;
    float: right;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.copy-button:hover {
    background-color: #a9a9a9;
}

.copy-button:active {
    background-color: #a2ba72;
    color: #25621b;
}


.top_pages {
    font-size: 0.9rem;
    line-height: 1.25;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.top_pages[open] {
    opacity: 1;
}

.top_pages li {
    font-family: 'Courier New', Courier, monospace;
}