/* Blinking cursor effect */
@keyframes blink {
    0% {
        opacity: 1;
    }
    49% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    99% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

h1::after {
    content: "|"; /* Add a blinking cursor */
    display: inline-block;
    margin-left: -10px;
    animation: blink 1s infinite; /* Blinking animation */
    color: rgb(28, 231, 10); /* Match the text color */
}

body {
    background: url('images/bckgr.png') no-repeat center center fixed;
    background-size: cover;
    background-color: rgb(21, 21, 21);
    color: rgb(28, 231, 10);
    font-family: 'Courier New','georgia', serif;
    font-size: 1.2em;
}

h1, h2 {
    justify-content: center;
    text-align: center;
    font-size: 3em;
    margin: 10px;

}

h2 {
    font-size: 1.3em;
}

a {
    color: rgb(255, 207, 105);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: rgb(255, 245, 210);
}

.project {
    background-color: rgb(24, 24, 24);
    padding: 20px;
    margin: 20px auto; /* Center the project container */
    box-shadow: 5px 5px 10px 0px rgb(12, 12, 12);
    width: 100%; /* Use a percentage for responsive design */
    max-width: 1000px; /* Set a maximum width */
    height: auto; /* Allow height to adjust dynamically */
    box-sizing: border-box; /* Ensure padding is included in width/height */
}

.project-header {
    text-align: center;
    font-size: 1.8em;
    margin: 15px;
    font-weight: bold;
}

.project-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.project-body-aoc {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 0.8fr 0.8fr;
    gap: 10px;
    margin-bottom: 20px;
}

.project-image {
    display: flex;
    flex-direction: column; /* Stack images in a single column */
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    gap: 10px; /* Add spacing between images */
}

.project-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block; /* Ensure the image doesn't overflow */
}

.project-text {
    display: flex;
    margin: auto;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.projext-text p {
    width: 100%;
    box-sizing: border-box; 
    margin:  0;
}

.project-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.project-footer a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.project-footer a img:hover {
    transform: scale(1.1);
}

.project-tags {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-group {
    border: 2px solid #555;
    margin: 20px auto;
    padding: 10px;
    background-color: rgb(42, 41, 41, 0.5);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 1000px;
}

.project-group-header:hover {
    background-color: rgb(44, 44, 44);
}

.project-group-body {
    display: block; /* Initially visible */
    margin-top: 10px;
}

.project-group-header {
    cursor: pointer;
    padding: 10px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}


.tag {
    padding: 5px 10px;
    font-size: 0.9em;
    font-weight: bold;
    color: white;
    text-shadow: none;
}

.tag.csharp {
    background-color: #178600;
}

.tag.unity {
    background-color: #222c37; 
}

.tag.pcg {
    background-color: #be4317; 
}

.tag.group {
    background-color: #2e0e43; 
}

.tag.group-sole {
    background-color: #5a1e81; 
}

.tag.python {
    background-color: #4027ae;
}

.tag.cpp {
    background-color: #716864; 
}

.tag.shader {
    background: linear-gradient(45deg, #8c3c7f, #307b8e);
}

.tag.nn {
    background: linear-gradient(45deg, #373737, #525e77);
}