.navbar {
    background-color: #00115c;
}

#main {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    height: 525px;
    background-image: url(/Images/Projects/KGameX_Projects.svg);
    background-position: top 15px center;
    background-repeat: no-repeat;
    background-size: auto 390px;
}

main {
    margin: 10px 0;
    padding: 0 10px;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.project-card {
    width: 530px;
    height: auto;
    text-align: center;
    background-color: white;
    border-radius: 5px;
    text-wrap: wrap;
    transition: all 0.3s ease-in-out;
    z-index: 10;
}

.project-card img {
    width: 100%;
    height: auto;
    margin-bottom: -4px;
    object-fit: cover;
    border-radius: 5px;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-details {
    width: 80%;
    max-height: 80%;
    position: fixed;
    top: 50%;
    left: 10%;
    padding-top: 10px;
    background-color: #f2f2f2;
    border-radius: 5px;
    z-index: 102;
    transition: all 0.3s ease-in-out;
    transform: translateY(-50%);
    overflow-y: auto;
}

.project-details img {
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.project-details::-webkit-scrollbar-track {
    border-radius: 5px;
}

.opacity-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background-color: #0000007F;
    z-index: 101;
    transition: all 0.3s ease-in-out;
}

.visible {
    visibility: visible;
    opacity: 1;
}

.hidden {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-55%);
}