/* styles.css */
body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background: radial-gradient(circle at center, #141414, #000);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.main-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px; /* Default gap for mobile/tablet */
    width: 100%;
    max-width: 1600px; /* Increased max-width for larger screens */
    margin: 20px 0;
}

.content {
    position: relative;
    z-index: 1;
    text-align: left;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: linear-gradient(138deg, rgba(182, 182, 182, 0.1), rgba(255,255,255,0));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    box-sizing: border-box;
}

.content img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.content .flex {
    display: grid;
    width: 100%;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.content .flex :nth-child(1) {
    text-align: left;
}

.content .flex :nth-child(2), .content .flex :nth-child(3) {
    text-align: left;
    position: relative;
    font-size: small;
}

video {
    width: 100%;
    max-width: 700px; /* Slightly larger max-width for video */
    height: auto;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (min-width: 1200px) {
    .main-container {
        gap: 60px; /* Increased gap for large screens */
    }
    
    .content {
        max-width: 650px; /* Slightly larger content area */
    }
    
    video {
        max-width: 750px; /* Larger video on big screens */
    }
}

@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        align-items: center;
        gap: 40px; /* Medium gap for tablet sizes */
    }
    
    .content, video {
        max-width: 90%;
    }
    
    .content .flex {
        grid-template-columns: 1fr;
    }
    
    .content button {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-container {
        gap: 30px; /* Smaller gap for mobile */
    }
    
    .content {
        padding: 20px;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .content .flex {
        display: flex;
        flex-direction: column;
    }
}

/* Button styles remain the same */
.content button {
    background-color: #27e2e2;
    border: none;
    color: rgb(238, 238, 238);
    padding: 12px 18px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font: inherit;
    margin-top: 10px;
    width: 100%;
    max-width: 200px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content button:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.content button:active {
    background-color: #1c898d; 
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.mathcraft-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.credits {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 0.9rem;
}
