@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --bottom-border-position: 700px;
}

body {
    font-family: 'Press Start 2P', cursive;
    background: black;
    color: #00ff00;
    position: relative;
    min-height: 300vh;
    overflow-x: hidden;
    margin: 0;
    padding-top: 20px;
    box-sizing: border-box;
}

body::after {
    content: '';
    position: absolute;
    bottom: calc(100% - var(--bottom-border-position));
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 5;
}

.bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/mainbg.png') center/cover no-repeat;
    filter: blur(3px);
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.main-content-container {
    z-index: 2;
    max-width: 700px;
    margin: 20px auto 30px auto;
    background: black;
    padding: 30px;
    border: 4px solid #ff00ff;
    border-radius: 10px;
    box-shadow: 0 0 20px #ff00ff;
    text-align: center;
    position: relative;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
}

.title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 15px;
    text-shadow: 2px 2px #ff00ff;
}

.description {
    font-size: 14px;
    margin: 10px 0 20px;
    color: #ffcc00;
    text-shadow: 1px 1px #ff00ff;
}

.social-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.social-links a {
    position: absolute;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: black;
    border: 3px solid #ff00ff;
    border-radius: 10px;
    box-shadow: 0 0 10px #ff00ff;
    text-align: center;
    font-size: 10px;
    color: #00ff00;
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
    z-index: 11;
    transition: transform 0.2s;
    box-sizing: border-box;
}

.social-links a img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.social-links a:hover {
    transform: scale(1.2);
    background: #ff00ff;
    box-shadow: 0 0 15px #ff00ff;
}

.social-links a::after {
    content: attr(data-text);
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ffcc00;
    padding: 10px;
    border-radius: 5px;
    width: 250px;
    text-align: center;
    font-size: 12px;
    font-family: 'Press Start 2P', cursive;
    border: 2px solid #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.social-links a:hover::after {
    opacity: 1;
}

.static-button {
    background: black;
    color: #00ff00;
    font-size: 12px;
    font-family: 'Press Start 2P', cursive;
    padding: 10px 15px;
    border: 3px solid #ff00ff;
    border-radius: 5px;
    cursor: pointer;
    text-shadow: 1px 1px #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
    transition: all 0.3s ease;
}

.static-button:hover {
    background: #ff00ff;
    color: black;
    box-shadow: 0 0 15px #ff00ff;
    transform: scale(1.1);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.video-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    position: relative;
}

.video-frame {
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 450px;
    border: none;
}

.close-video {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 50%;
    z-index: 1001;
}

.age-check {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-check-content {
    background: rgba(25, 25, 25, 0.95);
    border: 2px solid #ffffff20;
    padding: 40px 50px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 25px #000000aa;
    z-index: 10000;
}

.age-check-content .title {
    font-size: 2rem;
    margin-bottom: 25px;
    color: white;
}

.age-check .button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.age-check .static-button {
    background-color: #00aaff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.age-check .static-button:hover {
    background-color: #007799;
}

#lower-sections {
    margin-top: 400px;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;

    max-width: 700px;
    margin-left: 50px;
    margin-right: auto;

    padding: 0 20px;
    margin-bottom: 50px;
    position: relative;
    overflow: visible;
}

.lower-sections-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#lower-sections .main-content-container {
    margin: 0;
    text-align: left;
    width: 100%;
}

.side-image-wrapper {
    position: absolute;
    left: 1200px;
    bottom: -150px;
    width: 550px;
    height: auto;
    background: transparent;
    border: 0px solid #ff00ff;
    border-radius: 0px;
    box-shadow: 0 0 0px #ff00ff;
    overflow: hidden;
    z-index: 4;
}

.side-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 40px;
    text-shadow: 2px 2px #ff00ff;
    color: #00ff00;
}

.section-image-placeholder {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 30px;
    width: 150px;
    height: 150px;
    background: transparent;
    border: 0px dashed #ff00ff;
    border-radius: 8px;
    overflow: hidden;
}

.section-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-content {
    font-size: 14px;
    color: #ffcc00;
    text-shadow: 1px 1px #ff00ff;
    margin-bottom: 20px;
    text-align: center;
}

.text-wrapper {
    margin-right: 190px;
}

#lower-sections .section-content {
    text-align: left;
}

.full-width-showcase {
    width: 100%;
    padding: 30px 0;
    box-sizing: border-box;
    margin: 0 0 30px 0;
    background: black;
    border-top: 4px solid #ff00ff;
    border-bottom: 4px solid #ff00ff;
    box-shadow: none;
    text-align: center;
    z-index: 3;
    position: relative;
    overflow: visible;
}

.showcase-items-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;

    width: 80vw;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0;
}

.showcase-item {
    background: #1a1a1a;
    border: 3px solid #ff00ff;
    border-radius: 10px;
    box-shadow: none;
    padding: 20px;
    width: calc((100% - (2 * 40px)) / 3);
    min-width: 300px;
    height: 480px;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px #ff00ff;
}

.showcase-image-placeholder {
    width: 100%;
    height: 220px;
    position: relative;
    background: #0d0d0d;
    border: 2px solid #ff00ff;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
    cursor: pointer;
}

.showcase-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-title {
    font-size: 20px;
    color: #00ff00;
    margin-top: 15px;
    margin-bottom: 10px;
    text-shadow: 1px 1px #00ff00;
    flex-shrink: 0;
}

.showcase-description {
    font-size: 12px;
    color: #ffcc00;
    line-height: 1.2;
    text-shadow: 0.5px 0.5px #ff00ff;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

@media (max-width: 900px) {
    .main-content-container {
        margin: 80px auto 30px auto;
    }
    #lower-sections {
        margin-left: auto;
        margin-right: auto;
        padding: 0 10px;
        gap: 20px;
    }
    .full-width-showcase {
        padding: 30px 0;
        margin: 0 auto 30px auto;
    }

    .lower-sections-wrapper {
        width: 100%;
        max-width: 700px;
    }

    .side-image-wrapper {
        position: relative;
        width: 90%;
        height: auto;
        max-width: 600px;
        margin: 20px auto;
        right: auto;
        bottom: auto;
        transform: none;
    }

    .showcase-items-container {
        width: 90vw;
        padding: 0 10px;
        justify-content: space-around;
        gap: 20px;
    }
    .showcase-item {
        width: calc((100% - 20px) / 2);
        height: 400px;
        min-width: unset;
    }
    .showcase-image-placeholder {
        height: 180px;
    }
    .showcase-title {
        font-size: 18px;
    }
    .showcase-description {
        font-size: 13px;
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 600px) {
    .showcase-items-container {
        width: 95vw;
        padding: 0 5px;
        gap: 15px;
    }
    .showcase-item {
        width: 95%;
        max-width: 400px;
        height: auto;
        margin: 0 auto;
    }
    .showcase-image-placeholder {
        height: 150px;
    }
    .showcase-title {
        font-size: 16px;
    }
    .showcase-description {
        font-size: 12px;
        -webkit-line-clamp: 6;
    }
}

.footer-content-container {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 50px auto 0 auto;
    padding: 20px;
    text-align: left;
    color: #00ff00;
    font-size: 12px;
}

.footer-text-left {
    text-shadow: 1px 1px #ff00ff;
}

@media (max-width: 450px) {

    .main-content-container {
        padding: 20px;
    }
    
    #lower-sections {
        margin: 40px auto;
        padding: 0 10px;
    }
    
    .text-wrapper {
        margin-right: 0;
    }
    
    .section-image-placeholder {
        position: static;
        transform: none;
        margin: 20px auto;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 20px;
    }

    .section-content {
        text-align: center;
    }
    
    .side-image-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 20px auto;
        max-width: 300px;
    }
}

/* --- NEW STYLES FOR MPC STATUS MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: black;
    padding: 40px;
    border: 4px solid #ff00ff;
    border-radius: 10px;
    box-shadow: 0 0 25px #ff00ff;
    text-align: center;
    position: relative;
    max-width: 90%;
    width: 500px;
}

.modal-content .modal-title {
    font-size: 22px;
    text-shadow: 2px 2px #ff00ff;
    margin-bottom: 25px;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: 2px solid white;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1001;
}

#mpc-status-details {
    font-size: 14px;
    line-height: 1.6;
    color: #00ff00;
}

#mpc-status-details .status-live {
    color: #ff3333;
    font-weight: bold;
    text-shadow: 1px 1px #ff00ff;
}

#mpc-status-details .status-offline {
    color: #888;
}

#mpc-status-details .status-label {
    color: #ffcc00;
}

#mpc-status-details .status-filename {
    color: #fff;
    word-break: break-all;
}

/* Styles for the new image modal */
.image-modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: center;
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal-content img {
    max-width: 80vw;
    max-height: 80vh;
    display: block;
    margin: 0;
    border: 4px solid #ff00ff;
    border-radius: 10px;
    box-shadow: 0 0 25px #ff00ff;
}

.image-modal-content .close-modal-btn {
    position: absolute;
    top: -20px;
    right: -20px;
}

.hidden-links {
    display: none;
}