body, html{
    max-width: 2400px;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: inherit;
    font-family: 'Nexa';
}

h1{
    font-size: 2em;
    line-height: 1.2em;
}

.learn-more{
    margin-left: 15px;
    width: 200px;
    height: 50px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Nexa', sans-serif;
    border: none;
    cursor: pointer;
    background: linear-gradient(rgb(111, 121, 255), rgb(152, 108, 255));
    border-radius: 20px;
    transition: all 300ms ease-in-out;

}

.learn-more:hover{
    transform: translateY(-5px);
    box-shadow: 0 5px 15px 3px rgba(0, 0, 0, 0.2);
}

/* ===================
What is ISEF?
===================== */
.what_is_isef {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    padding: 15px;
}


.isef_text{
    position: relative;
    width: 100%;
    padding: 15px;
}

.isef_text h1 {
    font-size: 2.25rem;
    padding: 20px 15px 0px 15px;
}

.isef_text p {
    padding: 20px 15px;
    line-height: 1.3rem;
}

.isef_hero{
    display: grid;
    align-content: center;
}

.block{
    display: none;
    width: 150px;
    height: 110px;
    background: rgb(55, 61, 145);
    grid-column: 2 / span 2;
    grid-row: 1 / span 2;
}

.isef_hero img{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    grid-column: 1 / span 2;
    grid-row: 2 / span 2;
}

@media screen and (min-width: 420px) {
    .isef_text h1 {
        font-size: 2.5rem;
    }

    .isef_text p {
        line-height: 1.5rem;
        font-size: 1.125rem;
    }
}

@media screen and (min-width: 600px) {
    .isef_hero img{
        height: 380px;
        width: 480px;
        grid-column: 1 / span 2;
        grid-row: 2 / span 2;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        flex-wrap: wrap;
        padding: 20px;
        background-image: url("https://xdhacks.org/static/images/bg5.3 (2).png");
        background-size: 100% 100%;
    }
}

@media screen and (min-width: 850px) {
    .block {
        display: block;
    }

    .isef_hero img {
        height: 253px;
        width: 320px;
    }

    .isef_text{
        width: 40%;
    }

    .what_is_isef {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        padding: 20px;
        background-image: url("https://xdhacks.org/static/images/bg5.3 (2).png");
        background-size: 100% 100%;
    }
}

@media screen and (min-width: 1024px) {
    .block {
        width: 300px;
        height: 220px;
    }
}

/* ===================
Our Event
===================== */
.our_event{
    padding: 0px 15px 30px 15px;
    background-image: url("https://xdhacks.org/static/images/bg1.1.png");
}

.our_event_header{
    position: relative;
    text-align: left;
    padding: 0px 15px 15px 15px;
    left: 50%;
    transform: translateX(-50%);
}

.our_event_header h1 {
    padding: 20px 0px;
}

.our_event_header p {
    line-height: 1.3rem;
    padding: 0px 0px 15px 0px;
}

.our_event_flex{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;

}

.events{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 10px 0px;
}

.events p {
    width: 260px;
    padding-top: 10px;
}

.events img{
    width: 200px;
    height: 200px;
    box-shadow: 0 5px 15px 3px rgba(0, 0, 0, 0.4);
    animation: float 3s infinite ease-in-out;
    transition: all 300ms ease-in-out;
}

.events img:hover{
    box-shadow: 0 5px 15px 3px rgba(136, 93, 255, 0.4);
}

@media screen and (min-width: 420px) {
    .our_event_header h1 {
        font-size: 2.5rem;
    }

    .our_event_header p {
        line-height: 1.5rem;
        font-size: 1.125rem;
    }

    .our_event_flex{
        margin-top: 30px;
    }

    .events p {
        margin-top: .5rem;
        width: 300px;
        font-size: 1.2rem;
    }

    .events img{
        width: 300px;
        height: 300px;
    }
}

@media screen and (min-width: 600px) {
    .our_event{
        padding: 15px 15px 40px 15px;
        background-image: url("https://xdhacks.org/static/images/bg1.1.png");
        background-size: 100% 100%;
    }

    .events p{
        width: 400px;
    }

    .events img{
        width: 320px;
        height: 320px;
        box-shadow: 0 5px 15px 3px rgba(0, 0, 0, 0.4);
        margin: 10px;
        animation: float 3s infinite ease-in-out;
        transition: all 300ms ease-in-out;
    }
}

@media screen and (min-width: 850px) {
    .our_event_header {
        width: 75%;
    }

    .our_event_flex{
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
        flex-direction: unset;
    }

    .events{
        width: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .events img{
        width: 320px;
        height: 320px;
        box-shadow: 0 5px 15px 3px rgba(0, 0, 0, 0.4);
        margin: 10px;
        animation: float 3s infinite ease-in-out;
        transition: all 300ms ease-in-out;
    }

    .events p{
        width: 400px;
    }

    .events img:hover{
        box-shadow: 0 5px 15px 3px rgba(136, 93, 255, 0.4);
    }
}


@keyframes float {
    0%{
        transform: translateY(-5px);
    }
    50%{
        transform: translateY(5px);
    }
    100%{
        transform: translateY(-5px);
    }
}

@keyframes float2 {
    0%{
        transform: translateY(-5px) scale(0.9);

    }
    50%{
        transform: translateY(5px) scale(0.8);
    }
    100%{
        transform: translateY(-5px) scale(0.9);
    }
}

/* ===================
About Us
===================== */
.about_us{
    background: #9D9FFF;
    padding: 20px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.about_us_header{
    text-align: center;
    width: 100%;
    padding: 5px;
}

.about_us_header h1 {
    font-size: 2rem;
    padding: 20px 0px 0px 0px;
}

.about_us_header p {
    padding: 20px 0px;
    line-height: 1.3rem;
}

@media screen and (min-width: 420px) {
    .about_us_header h1 {
        font-size: 2.5rem;
    }

    .about_us_header p {
        line-height: 1.5rem;
        font-size: 1.125rem;
    }
}

@media screen and (min-width: 850px) {
    .about_us {
        padding: 30px 50px;
        flex-wrap: nowrap;
    }

    .about_us_header {
        padding: 0px 20px;
    }
}

@media screen and (min-widtH: 1024px) {
    .about_us {
        padding: 0% 10%;
    }

    .about_us_header {
        padding: 0px 60px;
    }

    .image-grid {
        --num-cols: 4;
        --row-height: 300px;
    }
}

.image-grid {
    width: 100%;
    --gap: 16px;
    --num-cols: 2;
    --row-height: 200px;

    box-sizing: border-box;
    padding: var(--gap);

    display: grid;
    grid-template-columns: repeat(var(--num-cols), 1fr);
    grid-auto-rows: var(--row-height);
    gap: var(--gap);
}

.image-grid > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-grid-col-2 {
    grid-column: span 2;
}

.image-grid-row-2 {
    grid-row: span 2;
}

/* ===================
Schedule
===================== */
.isef_schedule_div{
    background-image: url("https://xdhacks.org/static/images/bg2.3\ \(1\).png"), url("https://xdhacks.org/static/images/bg5.2.png");
    background-repeat: no-repeat;
    background-position: top, bottom;
    background-size: 100% 50%, 100% 50%;
    padding: 50px 0px;
}

.schedule{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.schedule_header{
    text-align: center;
    padding: 10px 0px 30px 0px;
    margin: 0;
}

.schedule_header h1 {
    font-size: 2rem;
}

.section_1, .section_2{
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.section_inner {
    width: 90%;
}

.section_inner div {
    margin: 10px 0px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px 3px rgba(0, 0, 0, 0.2);
    transition: all 300ms ease-in-out;
    border-radius: 10px;
}

.section_inner div strong {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

.section_inner div:hover{
    transform: translateY(-5px);
    box-shadow: 0 5px 15px 3px rgba(132, 123, 255, 0.2);
}

.section_inner_2 {
    width: 90%;
}

.section_inner_2 div {
    margin: 10px 0px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px 3px rgba(0, 0, 0, 0.2);
    transition: all 300ms ease-in-out;
    border-radius: 10px;
}

.section_image img{
    width: 400px;
    height: 400px;
}

.section_image_2 img{
    width: 500px;
    height: 500px;
    transform: translateX(100px);
}

.section_image {
    display: none;
    width: 400px;
}

.section_image_2{
    display: none;
    width: 400px;
}


@media screen and (min-width: 420px) {
    .schedule_header h1 {
        font-size: 2.5rem;
    }

    .schedule_header p {
        line-height: 1.25rem;
        font-size: 1.125rem;
    }
}

@media screen and (min-width: 600px) {
    .section_1, .section_2{
        width: 90%;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }

    .section_inner div {
        width: 90%;
        height: 100px;
        font-size: larger;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 10px;
        box-shadow: 0 5px 15px 3px rgba(0, 0, 0, 0.2);
        transition: all 300ms ease-in-out;
        border-radius: 10px;
    }

    .section_inner div:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px 3px rgba(132, 123, 255, 0.2);
    }

    .section_inner_2 div {
        width: 90%;
        height: 100px;
        font-size: larger;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 10px;
        box-shadow: 0 5px 15px 3px rgba(0, 0, 0, 0.2);
        transition: all 300ms ease-in-out;
        border-radius: 10px;
    }

    .section_inner_2 div:hover {
        cursor: pointer;
        transform: translateY(-5px);
        box-shadow: 0 5px 15px 3px rgba(132, 123, 255, 0.2);
    }

    .isef_schedule_div2 {
        margin-top: 0px;
    }

    .schedule_header {
        padding: 50px 0px;
    }
}

@media screen and (min-width: 850px) {
    .section_2 {
        margin-top: 50px;
        flex-direction: row-reverse;
    }

    .section_image, .section_image_2{
        display:flex;
        justify-content: center;
        align-items: center;
        animation: float2 5s infinite ease-in-out;
        transition: all 500ms ease-in-out;
    }

    .section_inner, .section_inner_2 {
        width: 40%;
    }
}

@media screen and (min-width: 1080px) {
    .isef_schedule_div {
        padding: 50px 0px 80px 0px;
    }
}


   /* About  .about_xd{
    background-image: url("https://xdhacks.org/static/images/bg2.3\ \(1\).png");
    background-size: 100% 800px;
    margin: 0;
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
 }

 .about_inner{
     width: 87%;
     display: flex;
     justify-content: space-evenly;
     align-items: center;
     background: rgba( 255, 255, 255, 0.25 );
     box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
     backdrop-filter: blur( 4px );
     -webkit-backdrop-filter: blur( 4px );
     border-radius: 10px;
     border: 1px solid rgba( 255, 255, 255, 0.18 );
 }

 .circle, .circle2{
     width: 200px;
     height: 200px;
     position: absolute;
     background: rgba( 255, 255, 255, 0.25 );
     box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
     backdrop-filter: blur( 4px );
     -webkit-backdrop-filter: blur( 4px );
     border-radius: 100%;
     border: 1px solid rgba( 255, 255, 255, 0.18 );
     animation: float2 5s infinite ease-in-out;
     transition: all 500ms ease-in-out;
 }

 .circle{
     z-index: 2;
     left: 0%;
     top: 80%;
 }

 .circle2{
    z-index: 2;
     right: 5%;
     top: -20%;
 }

 */