.skill_buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.skill_button {
    width: 15dvw;
    height: 15dvh;
    border: 1px solid rgb(230, 151, 6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: white;
    background: none;
    transition: 0.3s;
}

.skill_button:hover {
    background-color: rgba(223, 137, 7, 0.151);
    transition: 0.3s;
}

.skill_img {
    width: 60%;
    height: 60%;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.php { background-image: url(/icons/skills/php.png); }
.html { background-image: url(/icons/skills/html.png); }
.cs { background-image: url(/icons/skills/c-sharp.png); }
.css { background-image: url(/icons/skills/css-3.png); }
.js { background-image: url(/icons//skills/js.png); }
.git { background-image: url(/icons/skills/social.png); }
.py { background-image: url(/icons/skills/python.png);}
.github { background-image: url(/icons/skills/github.png);}
.dotnet { background-image: url(/icons/skills/Microsoft_.NET_logo.svg.png);}
.nginx { background-image: url(/icons/skills/nginx.png);}
.docker { background-image: url(/icons/skills/docker.png);}
.composer { background-image: url(/icons/skills/Logo-composer-transparent.png);}
.clonezilla { background-image: url(/icons/skills/CZLogo2.png);}
.mysql { background-image: url(/icons/skills/mysql.png);}
.sqlite { background-image: url(/icons/skills/SQLite370.svg.png);}
.tux { background-image: url(/icons/skills/linux.png);}
.debian { background-image: url(/icons/skills/debian.png);}
.mint { background-image: url(/icons/skills/badgemint.svg);}
.ubuntu { background-image: url(/icons/skills/ubuntu.png);}
.fedora { background-image: url(/icons/skills/Fedora_logo_\(2021\).svg.png);}
.windows { background-image: url(/icons/skills/windows.png);}
.vsc { background-image: url(/icons/skills/Visual_Studio_Code_1.35_icon.svg.png);}
.vs { background-image: url(/icons/skills/Visual_Studio_Icon_2026.svg.png);}
.unity { background-image: url(/icons/skills/Unity_Technologies_logo.svg.png);}
.jetbrains { background-image: url(/icons/skills/JetBrains_company_logo.svg.png);}
.rider { background-image: url(/icons/skills/JetBrains_Rider_Icon.svg.png);}
.firefox { background-image: url(/icons/skills/Firefox_logo\,_2019.svg.png);}
.figma { background-image: url(/icons/skills/Figma-logo.svg.png);}
.photoshop { background-image: url(/icons/skills/Adobe_Photoshop_CC_icon.svg.png);}
.premierepro { background-image: url(/icons/skills/Adobe_Premiere_Pro_CC_icon.svg.png);}
.aftereffects { background-image: url(/icons/skills/Adobe_After_Effects_CC_icon.svg.png);}
.adobeillustrator { background-image: url(/icons/skills/Adobe_Illustrator_CC_icon.svg.png);}
.adobexd { background-image: url(/icons/skills/Adobe_XD_CC_icon.svg.png);}

/* content */

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.stars p {
    font-weight: 750;
}

.stars span {
    font-size: larger;
}

.content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    display: flex;
    flex-direction: row; 
    gap: 2rem;
    width: 70dvw;
    max-width: 1000px;
    height: auto;
    min-height: 500px;
    background: #1c1c1c;
    border-radius: 32px;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.content.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.content_text_wrapper {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    padding-top: 1rem;
}

.content h2 {
    background-color: rgb(230, 151, 6);
    color: #000000;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    width: fit-content;
}

.text_block {
    background-color: #2b2b2b;
    border-radius: 24px;
    padding: 1.5rem;
    height: 100%;
    margin-top: 0;
}

.content p {
    color: #a0a0a0;
    line-height: 1.6;
    font-size: 1.225rem;
    margin: 0;
    text-align: left;
}

.content p a {
    color: rgb(230, 151, 6);
}

.close_button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close_content_button:hover {
    opacity: 1;
    background-color: rgba(255,255,255,0.1);
}

.content-section .skill_buttons {
    justify-content: center;
}

.flaticons {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.2) !important;
    text-align: right;
    margin-top: 3rem;
    margin-bottom: 0;
    width: 100%;
    font-family: Arial, sans-serif;
}

.flaticons a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.flaticons a:hover {
    color: rgb(230, 151, 6);
    text-decoration: underline;
}

@media (max-width: 800px) {
    .cards_container {
        flex-direction: column;
        padding-bottom: 2rem;
    }

    .card {
        width: 60dvw;
        height: 30dvh;
    }

    .content {
        flex-direction: column;
        width: 90dvw;
        height: 85dvh;
        overflow-y: auto;
    }
    
    .content_image {
        min-height: 200px;
        flex: none;
    }
    
    .content h2 {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .skill_button {
        width: 23dvw;
    }
}