@import "common.css";

.project-page{
    font-family:Arial, Helvetica, sans-serif;
    max-width: var(--proj-maxw);
    margin: 20px auto;
    color: var(--light);
    position: relative;
    z-index: 1;
}

.breadcrumb {
    color: #cd5c11;
}

.breadcrumb-inner {
    color: white;
}

.imagew {
    max-width: 300px;
}

.content-flex {
    display: flex;
    margin-bottom: 50px;
    gap: 22px;
}

@media screen and (max-width: 950px){
    .content-flex {
        flex-direction: column;
    }
}

.content-component-left {
    display: flex;
    flex: 2;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.content-component-left .image-container{
    width: 300px;
    height: auto;
}

.content-component-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.content-image-component {
    text-align: center;
}

.image-container {
    padding: 5px;
    width: 800px;
    height: 400px;
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    box-shadow: 0 0 10px rgba(227, 102, 19, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.image-container-slider {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    padding: 5px;
    width: 800px;
    height: 400px;
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    box-shadow: 0 0 10px rgba(227, 102, 19, 0.4);
    transition: all 0.2s;
}

@keyframes slide {
    0% { transform: translateX(0px)}
    100% { transform: translateX(-550px)}
}

.image-container-slider img {
    animation: slide 15s linear infinite alternate;
    height: 400px;
    border: 1px solid #cd5c11;
    interactivity: inert;
}

.image-container:hover {
    transform: scale(1.02);
    filter: grayscale(0.5) brightness(0.8);
}

.tech-slider {
    overflow: hidden;
    width: 500px;
    background: rgb(255 255 255 / 0.05);
    border: 1px solid rgba(255, 126, 35, 0.3);
    border-radius: 12px;
    padding: 20px 0;
}

.tech-track {
    display: flex;
    width: calc(250px * 3 * 2);
    animation: scroll 10s linear infinite;
}

.tech-track:hover {
    animation-play-state: paused;
}

.tech-item {
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tech-item img {
    height: 50px;
    transition: 0.3s;
}

.tech-item:hover img {
    filter: grayscale(1) brightness(1.5);
}

@keyframes scroll {
    0% {transform: translateX(0); }
    100% {transform: translateX(calc(-250px * 3)); }
}

@keyframes border {
    0% {border: 1px solid rgba(255,126,35,0.1); }
    25% {border: 1px solid rgba(255,126,35,0.2);}
    100% {border: 1px solid rgba(255, 126, 35, 0.3);}
}

#lightbox {
    padding: 0;
    border: 2px solid rgba(255, 126, 35, 0.5);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.9);
    max-width: 90vw;
    max-height: 90vh;
    outline: none;
    overflow: hidden;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#lightbox[open] {
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.45, 0.64, 1);
}

#lightbox::backdrop {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 1.6s ease-out;
}

#lightbox[open]::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

#lightbox img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

#close-lightbox {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ff7e23;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.terminal-container {
    width: 100%;
    max-width: 900px;
    height: auto;
    transition: max-width 0.5s ease;
    margin: 0 auto;
}

.terminal-header {
    background: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 126, 35, 0.2);
}

.dots {
    display: flex;
    gap: 8px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

#current-game-title {
    color: #ff7e23;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 126, 35, 0.5);
}

.terminal-screen {
    position: relative;
    height: 800px;
    width: 100%;
}

#game-frame {
    width: 100%;
    height: 100%;
    border: none;
}