@import url('base.css');

/* General Styles */
a {
    text-decoration: none;
}

body {
    background: #fff url('../images/BGImg.png') center no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* Common Icon Style for All Blocks */
.icon-inline {
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    vertical-align: middle;
}

/* Main Title */
.main-title {
    font-family: 'Irish Grover', cursive;
    color: #E73232;
    font-size: 4em;
}

/* Subtitle */
.subtitle {
    font-family: 'Pixelify Sans', sans-serif;
    color: #474747;
    margin-bottom: 50px;
    margin: 30px auto;
    padding-bottom: 40px;
    max-width: 80%;
    font-size: 1.88em;
}

/* Video Blocks Container */
.video-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Allows flexible resizing */
    gap: 30px;
    justify-items: center;
    padding: 0 20px;
}

/* Individual Video Block */
.video-block {
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    transition: transform 0.3s ease-in-out; /* Smooth scaling effect */
    
    & a > img {
        width: 100%;
        height: auto;
    }
}


/* Video Description */
.video-description {
    font-size: 1em;
    color: #727272;
    margin: 0;
    max-width: 400px;
}

/* Video Info (for titles and icons within each block) */
.video-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Video Title Styles */
.video-title {
    margin: 0;
    display: inline-block;
    font-size: 1.5em;
}


/* Responsive Design */

/* For screens 1817px or smaller (3 columns) */
@media screen and (max-width: 1870px) {
    .video-blocks {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* For screens 1700px or smaller */
@media screen and (max-width: 1700px) {
    .main-title {
        font-size: 3.5em;
    }
    .subtitle {
        font-size: 1.7em;
    }
}

/* For screens 1400px or smaller (2 columns) */
@media screen and (max-width: 1400px) {
    .video-blocks {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For screens 1280px or smaller */
@media screen and (max-width: 1280px) {
    .main-title {
        font-size: 2.8em;
    }
    .subtitle {
        font-size: 1.28em;
    }
}

/* For screens 950px or smaller (1 column) */
@media screen and (max-width: 950px) {
    .video-blocks {
        grid-template-columns: 1fr;
    }
}

/* For screens 870px or smaller */
@media screen and (max-width: 870px) {
    .main-title {
        font-size: 2em;
    }
    .subtitle {
        font-size: 1.0em;
        max-width: 460px;
        text-align: center;
    }
}


@media screen and (max-width: 480px) {
    .video-block {
        border-radius: 0;
    }
}