/*Principal Body*/
* {
    margin: 0;
    padding: 0;
}

body {
    background: #FFF;
}

/*Dialogue*/
#dialogue-box {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 440px;
    max-width: 90%;
    background: #F0E9D2;
    border: 4px solid #2C2C2A;
    border-radius: 8px;
    padding: 4px;
    font-family: 'Courier New', monospace;
    z-index: 100;
}
.dialogue-inner {
    border: 2px solid #A32D2D;
    border-radius: 5px;
    padding: 14px 16px;
}
#dialogue-text {
    color: #2C2C2A;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
.dialogue-hint {
    text-align: right;
    color: #888780;
    font-size: 12px;
    margin-top: 12px;
}
.dialogue-hint span {
    background: #A32D2D;
    color: #FCEBEB;
    padding: 2px 8px;
    border-radius: 3px;
}
.dialogue-hint .arrow {
    background: none;
    color: #A32D2D;
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/*Box Popup*/
#project-popup {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    font-family: 'Courier New', monospace;
}
.popup-box {
    width: 380px;
    max-width: 90%;
    background: #26262A;
    border: 3px solid #F0E9D2;
    border-radius: 4px;
}
.popup-header {
    background: #A32D2D;
    border-bottom: 3px solid #F0E9D2;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#popup-title {
    color: #FCEBEB;
    font-size: 15px;
}
.popup-close {
    color: #F7C1C1;
    font-size: 14px;
    cursor: pointer;
}
.popup-body {
    padding: 14px;
}
#popup-description {
    color: #D3D1C7;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 12px;
}
.popup-section-label {
    color: #888780;
    font-size: 10px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.popup-tags span {
    color: #FCEBEB;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 2px;
    background: #791F1F;
}
.popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
#popup-private {
    display: none;
    background: #412402;
    color: #FAC775;
    border: 2px solid #BA7517;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 11px;
    text-align: center;
    margin-top: 14px;
    line-height: 1.4;
}
.popup-btn {
    flex: 1; text-align: center; padding: 8px;
    border: 2px solid #F0E9D2; border-radius: 3px;
    font-size: 11px; text-decoration: none; cursor: pointer;
}
.popup-btn-github {
    background: #26262A;
    color: #F0E9D2;
}
.popup-btn-demo {
    background: #E24B4A;
    color: #501313;
}
#credits-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 150;
    width: 40px;
    height: 40px;
    background: #26262A;
    border: 2px solid #F0E9D2;
    border-radius: 50%;
    color: #F0E9D2;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .1s ease, background .15s ease;
}
#credits-btn:hover {
    background: #A32D2D;
    transform: scale(1.08);
}