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

html {
    background: #1f1f1f;
}

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    color: rbg(25, 25, 25);
    color: var(--color-text);
    background-color: #1f1f1f;
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Color schemes */
.dnft {
    --color-text: white;
    --color-background: #1f1f1f;
    --color-link: white;
    --color-link-hover: #acacac;
}

/* Fade effect */
.js body {
    opacity: 0;
    transition: opacity 0.3s;
}

.js body.render {
    opacity: 1;
}

a {
    text-decoration: none;
    color: #5d93d8;
    color: var(--color-link);
    outline: none;
}


a:hover,

a:focus {
    color: #423c2b;
    color: var(--color-link-hover);
    outline: none;
}

.hidden {
    position: absolute;
    overflow: hidden;
    width: 0;
    height: 0;
    pointer-events: none;
}

.icon {
    display: block;
    width: 1.5em;
    height: 1.5em;
    margin: 0 auto;
    fill: currentColor;
}

main {
    position: relative;
    width: 100%;
}

.content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0 auto;
    padding: 3em 2em;
}

.content--fixed {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    display: grid;
    align-content: space-between;
    width: 100%;
    max-width: none;
    height: 100vh;
    padding: 1.5em;
    pointer-events: none;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto auto 4em;
    grid-template-areas: 'header ...' '... ...' 'github demos';
}

.content--fixed a {
    pointer-events: auto;
}


.codrops-header {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    align-items: center;
    align-self: start;
    grid-area: header;
    justify-self: start;
}

.codrops-header__title {
    font-size: 18px;
    font-weight: normal;
    margin: 0;
}

/* Top Navigation Style */
.codrops-links {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0 1em 0 0;
    text-align: center;
    white-space: nowrap;
}


.codrops-icon {
    display: inline-block;
    margin: 0.15em;
    padding: 0.25em;
}

/* Common styles for the menus */
.menu {
    position: relative;
    z-index: 10;
}

.menu__item {
    line-height: 1;
    position: relative;
    display: block;
    margin: 1em 0;
    outline: none;
}

.menu__item-name,
.menu__item-label {
    position: relative;
    display: inline-block;
}

.menu__item-name {
    font-size: 1.25em;
}

.menu__item-label {
    margin: 0 0 0 0.5em;
}

@media screen and (max-width: 50em) {

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

    .content {
        height: auto;
        min-height: 0;
        padding-bottom: 10em;
    }

    .content--fixed {
        position: relative;
        z-index: 1000;
        display: block;
        padding: 0.85em;
    }

    .codrops-header__title {
        padding-bottom: 0.25em;
        text-align: center;
    }


}

.popup {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
}

.popup-content {
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 25px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 700px;
    max-height: 50vh; 
    overflow-y: auto; 
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 100;
    transform: translate(-50%, -50%);
}


.popup-content h2 {
    margin-top: 0;
    text-align: center;
}

.popup-content button {
    background-color: #1f1f1f;
    color: #ffffff;
    padding: 10px 20px;
    border: 2px solid #ffffff;
    border-radius: 25px;
    cursor: pointer;
}

.popup-content button:hover {
    background-color: #acacac;
}

.popup-content ul {
    text-align: left;
}

@media (max-width: 768px) {
    .popup-content {
        width: 90%;
        padding: 15px;
        border-radius: 15px;
    }

    .popup-content h2 {
        font-size: 1.2rem;
    }

    .popup-content button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}


.popup-content::-webkit-scrollbar {
    width: 8px;             
}

.popup-content::-webkit-scrollbar-track {
    background: #1f1f1f;    
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4); 
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7); 
}


.popup-content {
    scrollbar-width: thin;                  
    scrollbar-color: rgba(255, 255, 255, 0.4) #1f1f1f; 
}
