@font-face {
    font-family: 'Milligram Macro';
    src: url('font/MilligramMacro-Heavy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Parisienne&family=Poppins:wght@300;400;600;700&family=Arial+Black&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #4E4E4E;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    position: relative; 
    background-color: #FFECEF; 
}

.side-background-area {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    overflow: hidden; 
}

.side-background-area::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(233, 30, 98, 0.479); 
    z-index: 1; 
}

#left-background-area {
    left: 0;
}

#right-background-area {
    right: 0;
    transform: scaleX(-1); 
}

.container {
    position: relative; 
    z-index: 1; 
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px 35px;
    box-shadow: 0 10px 30px rgba(200, 90, 130, 0.25), inset 0 0 10px rgba(255, 255, 255, 0.5);
    width: 100%;
    max-width: 750px;
    text-align: center;
    border: 1px solid rgba(255, 180, 200, 0.4);
    margin: 0 auto;
    overflow: hidden;
}

.fade-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    z-index: 2;
    pointer-events: none;
    background: 
        linear-gradient(to bottom, rgba(255,255,255,0) 20%, #fff 100%),
        url('imgs/fade.jpg') center top/100% auto no-repeat;
    opacity: 0.50;
}

header, .social-links h2, .game-cards h2 {
    z-index: 2;
    position: relative;
}

header h1, header p, .social-links h2 {
    text-shadow: none;
}

header h1 {
    font-family: 'Parisienne', cursive;
    font-size: 4.5em;
    line-height: 1.18;
    margin-bottom: 0.1em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
    background: linear-gradient(to right, #e897c2, #fc79ab);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header p {
    color: #C2185B;
    font-size: 1.15em;
    margin-bottom: 2.5em;
}

.social-links h2, .game-cards h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2.2em;
    margin-bottom: 0.8em;
    padding-bottom: 0.4em;
    display: inline-block;
    border-bottom: 3px solid #F8BBD0;
    background: linear-gradient(to right, #e897c2, #fc79ab);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.social-links h2.no-glow {
    text-shadow: none;
}

.social-links .buttons-container,
.mysterious-link .buttons-container {
    margin-top: 0.8em;
}

.social-button, .slider-button {
    z-index: 2;
    position: relative;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #E91E63;
    padding: 12px 20px;
    margin: 10px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    box-shadow: 0 5px 15px rgba(255, 82, 154, 0.3);
    border: 1px solid #E91E63;
}

.social-button .social-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    filter: brightness(0) saturate(100%) invert(32%) sepia(74%) saturate(4935%) hue-rotate(322deg) brightness(96%) contrast(90%);
}

.social-button.twitter,
.social-button.throne,
.social-button.discord {
    background: transparent;
    color: #E91E63;
    border: 1px solid #E91E63;
    font-size: 1.1em; 
    text-indent: 0; 
    padding: 12px 20px; 
    width: auto; 
    height: auto; 
    box-shadow: 0 5px 15px rgba(255, 82, 154, 0.3);
    background-image: none;
    filter: none;
}

.social-button.twitter .social-icon,
.social-button.throne .social-icon,
.social-button.discord .social-icon {
    filter: brightness(0) saturate(100%) invert(32%) sepia(74%) saturate(4935%) hue-rotate(322deg) brightness(96%) contrast(90%);
}

.social-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 82, 154, 0.4);
    background: linear-gradient(145deg, #ff529a, #e91e63);
    color: white;
    border-color: transparent;
}

.social-button:hover .social-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.puzzle-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.puzzle-button {
    background: linear-gradient(145deg, #f5b1cd, #fc9bbb);
    color: white;
    border-color: transparent;
    text-align: center;
    width: 80%;
    padding: 15px 20px;
    box-sizing: border-box;
}

.puzzle-button:hover {
    background: linear-gradient(145deg, #f084ab, #ff6aa7);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 82, 154, 0.4);
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 25px;
    margin-top: 25px;
}

.card {
    background-color: transparent;
    border-radius: 15px;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.7), 0 8px 25px rgba(255, 105, 180, 0.2);
    overflow: hidden;
    position: relative;
    width: 220px;
    height: 330px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.7), 0 12px 30px rgba(255, 105, 180, 0.3);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.card-text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 20px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.7) 80%, rgba(255, 255, 255, 0) 100%); 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    pointer-events: none;
}

.card-title {
    font-family: 'Milligram Macro', sans-serif;
    font-size: 1.8em; 
    font-weight: normal; 
    text-shadow: none;
    background: linear-gradient(to right, #f0abcf, #fc79ab);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.game-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.game-slider-container {
    overflow: hidden;
    width: calc(100% - 100px);
    margin: 0 10px;
    position: relative;
    padding: 10px 0 90px 0;
}

.game-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    flex-wrap: nowrap; 
}

.game-slider .card {
    flex: 0 0 220px;
    height: 330px;
    margin: 0 10px;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out, opacity 0.4s ease-in-out;
    border-radius: 15px;
    cursor: pointer;
    transform: scale(0.9);
    opacity: 0.7;
}

.game-slider .card.focused {
    transform: scale(1.12);
    opacity: 1;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.7), 0 18px 45px rgba(233, 30, 99, 0.35);
}

.slider-button {
    background: rgba(255, 255, 255, 0.7);
    color: #E91E63;
    border: 1px solid rgba(255, 105, 180, 0.5);
    padding: 10px 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3em;
    transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 10px rgba(255,128,171,0.3);
    flex-shrink: 0;
}

.slider-button:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.9);
    color: #C2185B;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(255,128,171,0.4);
}

.slider-button:disabled {
    background-color: rgba(224, 224, 224, 0.5);
    color: #BDBDBD;
    cursor: not-allowed;
    box-shadow: none;
    border-color: rgba(189, 189, 189, 0.4);
}

.card p {
    color: #4E4E4E;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 1.2em;
}

@media (max-width: 768px) {
    .side-background-area {
        display: none; 
    }
    .container {
        width: 95%;
        padding: 20px;
    }
    header h1 {
        font-size: 3em;
    }
    .social-links h2, .game-cards h2 {
        font-size: 1.8em;
    }
    .social-button {
        padding: 12px 22px;
        font-size: 1em;
        margin: 8px;
    }

    .card { 
        width: calc(100% - 20px); 
        margin-bottom: 20px;
    }

    .game-slider-container {
        overflow: visible; 
        width: 100%;
        padding: 0; 
        margin: 0;
    }

    .game-slider {
        flex-wrap: wrap; 
        justify-content: space-around; 
        transition: none; 
        transform: none !important; 
        gap: 0; 
    }

    
    .game-slider > .card-link {
        flex: 0 0 calc(50% - 20px); 
        max-width: 220px; 
        margin: 10px; 
        height: 330px; 
        display: block; 
        text-decoration: none; 
        color: inherit; 
    }

    
    .game-slider .card {
        width: 100%; 
        height: 100%; 
        margin: 0; 
        transform: scale(1) !important; 
        opacity: 1 !important;       
        
    }

    .game-slider .card.focused {
        
        
        
        box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.7), 0 8px 25px rgba(255, 105, 180, 0.2);
    }

    .slider-button { 
        display: none;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.5em;
    }
    header p {
        font-size: 1.05em;
    }
    .social-links h2, .game-cards h2 {
        font-size: 1.6em;
    }
    .social-button {
        padding: 10px 18px;
        font-size: 0.95em;
    }

    .card p {
        font-size: 0.85em;
    }

    
    .game-slider > .card-link {
        flex: 0 0 calc(100% - 20px); 
        max-width: 300px; 
        margin: 10px auto; 
    }

    
}

.card-link .card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.7), 0 12px 30px rgba(255, 105, 180, 0.35);
}

.game-slider .card-link .card.focused {
    transform: scale(1.12);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.7), 0 18px 45px rgba(233, 30, 99, 0.35);
}