html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body { 
    font-family: 'VT323', monospace, monospace;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/bgweb.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 66%;
    height: 66%;
    border-radius: 20px;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.TitleMain{
    color: white;
    text-align: center;
    align-items: center;
    z-index: 10;
    margin-bottom: 20px;
    position: relative;
    left: auto;
    transform: none;
    top: auto;
}

.TitleMain h1 {
    font-size: 72px; /* Increased from default size */
    margin: 0;
}
.bgimg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../img/bgweb.webp');
    background-size: cover;
    background-position: center;    
    border-radius: 30px;
    z-index: 0;
    
}
.blur { 
    position: absolute;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 0;
        backdrop-filter: blur(8px);
        border-radius: 30px;
}

.cardweb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    height: auto;
    z-index: 1;
}
#czlimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .container {
        overflow: hidden;
        width: 90%;
        height: 90%;
    }
    .TitleMain {
        position: relative; 
        top: auto;
        font-size: 48px; /* Adjusted for smaller screens */
        z-index: 10;
        left: auto;
        transform: none;
        margin-bottom: 15px;
    }
    .TitleMain h1 {
        font-size: 48px; /* Adjusted for smaller screens */
        margin: 0;
    }
    .cardweb {
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        z-index: 1;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 375px) {
    .container {
        width: 95%;
        height: auto;
        max-height: 95vh;
        padding: 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }
    .TitleMain {
        font-size: 28px;
        padding: 10px 20px;

        max-width: 90%;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
        z-index: 10;
        margin-bottom: 15px;
        position: relative;
        left: auto;
        transform: none;
        top: auto;
    }
    .TitleMain h1 {
        font-size: 28px;
        margin: 0;
    }
    .cardweb {
        gap: 10px;
    }
    .cardweb .card {
        width: 14rem !important;
        height: auto !important;
    }
}
@media only screen and (-webkit-min-device-pixel-ratio: 3) {
    .container {
        width: 95%;
        height: auto;
        max-height: 95vh;
        padding: 20px;
        box-sizing: border-box;
        overflow-y: auto;
        /* Safe area insets for notch/dynamic island */
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    .TitleMain {
        font-size: 32px;
        padding: 10px 20px;
        max-width: 90%;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
        z-index: 10;
        margin-bottom: 15px;
        position: relative;
        left: auto;
        transform: none;
        top: auto;
    }
    .TitleMain h1 {
        font-size: 32px;
        margin: 0;
    }
    .cardweb {
        gap: 15px;
        flex-direction: column;
    }
    .cardweb .card {
        width: 16rem !important;
        height: auto !important;
    }
}