html {
    background-color: black;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    position: relative;
}

#bg-layer {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 100%;
    background-image: url('background1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.main-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2rem, min(5vw, 5vh), 4rem);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding-top: 25px;
    line-height: 1;
    text-align: center;
}

.subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1.2rem, min(3vw, 3vh), 2rem);
    font-weight: 300;
    font-style: italic;
    color: white;
    text-transform: uppercase;
    margin-top: 5px;
    margin-bottom: clamp(10px, 4vh, 30px);
}

.crystal-window {
    width: 90%;
    max-width: 600px;
    max-height: 600px;
    flex: 1;
    margin-bottom: 10px;
    padding: 10px 0;
    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.row {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.row:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-container {
    width: 15%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.5rem, 4vh, 3rem);
}

.title-container {
    width: 85%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    line-height: 1.3;
}

.paper-title {
    font-weight: 700;
    font-size: clamp(0.9rem, min(2.5vw, 2.5vh), 1.4rem);
    margin-bottom: 4px;
}

.paper-authors {
    font-size: clamp(0.7rem, min(2vw, 2vh), 1.1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: none;
}

.paper-authors .author-name {
    font-style: italic;
}

.mobile-label {
    display: none;
}

@media (max-width: 500px) {

    body {
        justify-content: center;
    }

    .main-title,
    .subtitle {
        display: none;
    }

    .crystal-window {
        height: 80vh;
        max-height: 500px;
        min-height: 250px;
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
        margin: 0;
    }

    .mobile-label {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        font-family: 'Anton', sans-serif;
        font-size: clamp(2rem, 8vw, 4rem);
        line-height: 1.1;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        z-index: 10;
    }

    .row {
        position: absolute;
        width: 50px;
        height: 50px;
        top: 50%;
        right: 35%;
        margin-top: -25px;
        margin-right: -25px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        justify-content: center;
        flex: none;
    }

    .title-container {
        display: none;
    }

    .icon-container {
        width: 100%;
        font-size: 1.4rem;
    }

    .row:nth-child(2) {
        top: 15%;
        right: 42%;
        transform: none;
    }

    .row:nth-child(3) {
        top: 15%;
        right: 8%;
        transform: none;
    }

    .row:nth-child(4) {
        top: 50%;
        right: 25%;
        transform: none;
    }

    .row:nth-child(5) {
        top: 85%;
        right: 42%;
        transform: none;
    }

    .row:nth-child(6) {
        top: 85%;
        right: 8%;
        transform: none;
    }
}

@media (max-width: 300px) {
    .row {
        display: none;
    }

    .mobile-label {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

#corner-logo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: clamp(40px, 7.5vw, 75px);
    height: auto;
    z-index: 100;
    pointer-events: none;
    flex: none;
}

@media (max-width: 500px),
(max-height: 500px) {
    #corner-logo {
        display: none;
    }
}

#version-display {
    position: fixed;
    top: 10px;
    left: 10px;
    color: red;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    z-index: 200;
}

#version-display.visible {
    opacity: 1;
}