@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    background-color: #f3f4f6;
    color: #4b5563;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

.gradient-text {
    background-image: linear-gradient(to right, #1ecb6d, #35ddd5);
    -webkit-background-clip: text;
    color: transparent;
}



.container {
    margin: 0 auto;
    padding: 0 1rem;
}


.hcontainer {
    margin: 0 auto;
    padding: 0 1rem;
    font-size: xx-large;

}

.searchcontainer {
    border: 2px solid #2563eb;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    animation: searchcontainerglow 2s infinite ease, backgroundcolorrotate 10s infinite ease;
    margin-left: 10%;
    margin-right: 10%;
    display: flex;
    min-height: 15vh;
    flex-direction: column;
    justify-content: center;
    max-width: 64%;
    min-width: 59%;
}

@keyframes backgroundcolorrotate {
    0% {
        background-color: #f4efef;
    }

    25% {
        background-color: #f0f3ef;
    }

    50% {
        background-color: #f3eff5;
    }

    75% {
        background-color: #e9eff7;
    }

    100% {
        background-color: #f4efef;
    }
}

@keyframes searchcontainerglow {
    0% {
        box-shadow: 0 0 20px 0 rgba(37, 99, 235, 0.7);
        background-color: #f7eded;
    }

    50% {
        box-shadow: 0 0 25px 0 rgba(37, 99, 240, 0.85);
        background-color: #edf3f7;

    }

    100% {
        box-shadow: 0 0 20px 0 rgba(37, 99, 235, 0.7);
        background-color: #f7eded;

    }
}

.searchcontainer p {
    margin: 7px;
}

.searchcontainer h2 {
    margin: 0;
    font-size: 2.5em;
    background-image: linear-gradient(to right, #a956d1, #81a5e7);
    -webkit-background-clip: text;
    color: transparent;
}






.main-content {
    text-align: center;
    padding-left: 10vw;
    padding-right: 10vw;
    width: 80vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content input[type="text"] {
    width: 50%;
    min-height: 20px;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    color: #4b5563;
    outline: none;
    transition: width 0.3s ease, box-shadow 0.1s ease;

}

.main-content input[type="text"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 4px 0 rgba(37, 99, 240, 0.8);
    width: 52%;
}

.inputButton {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 80px;
    width: 10%;
    transition: width 0.3s ease, min-width 0.3s ease, height 0.3s ease, font-size 0.3s ease;
    height: 37px;
}



.inputButton:hover {
    width: 13%;
    min-width: 96px;
    height: 46px;
    font-size: 17px;
    animation: buttonpulse 2s infinite ease;

}

@keyframes buttonpulse {
    0% {
        box-shadow: 0 0 20px 0 rgba(37, 99, 235, 0.7);
    }

    50% {
        box-shadow: 0 0 25px 0 rgba(37, 99, 240, 0.9);
    }

    100% {
        box-shadow: 0 0 20px 0 rgba(37, 99, 235, 0.7);
    }
}


.footer {
    color: #3e80fa;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.footer ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
}

.footer ul li {
    margin: 0 0.5rem;
}

.footer ul li a {
    color: #3e80fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: rgb(58, 99, 169);
}


@media screen and (max-width: 768px) {
    .hcontainer {
        font-size: x-large;
    }

    .searchcontainer h2 {
        font-size: 1.4em;
    }

    .searchcontainer p {
        font-size: .8em;
    }

    .searchcontainer .forminputs {
        margin-top: 5%;
    }

    .searchcontainer {
        margin-left: 0%;
        margin-right: 0%;
        max-width: 100%;

    }

    .infocontainer1 {
        flex-direction: column !important;

    }

    .ef1 {
        width: 100% !important;
    }

    #image1 {
        width: 100% !important;
    }

    .infocontainer2 {
        flex-direction: column !important;

    }

    #image2 {
        width: 100% !important;
    }

    .sliderofrecents {}



    .recenttournaments {
        max-width: 100% !important;
        margin-left: 5% !important;
        margin-right: 5% !important;
    }

    button.slideleft,
    button.slideright {
        display: none !important;
    }
}

@media screen and (max-width: 1300px) {
    .recentevent {
        width: 50% !important;
        margin-bottom: 8%;
    }

    .slideright {
        margin-bottom: 4%;
        margin-left: 4%;
    }

    .slideleft {
        margin-bottom: 4%;
        margin-right: 4%;
    }
}

.infocontainer1 {
    margin-top: 5%;
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin-left: 10%;
    margin-right: 10%;
    display: flex;
    min-height: 15vh;
    flex-direction: row;
    justify-content: center;
    max-width: 64%;
    min-width: 59%;

}

.infocontainer2 {
    margin-top: 5%;
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin-left: 10%;
    margin-right: 10%;
    display: flex;
    min-height: 15vh;
    flex-direction: row-reverse;
    justify-content: center;
    max-width: 64%;
    min-width: 59%;

}

#image1 {
    width: 50%;
}

#image2 {
    width: 50%;
}

.ef1 {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 50%;
}

.introtext {
    display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.bunchoftextstuff {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 70%;
    max-width: 340px;
}

.recenttournaments {
    margin-top: 2%;
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin-left: 10%;
    margin-right: 10%;
    display: flex;
    min-height: 15vh;
    flex-direction: column;
    justify-content: center;
    max-width: 64%;
    min-width: 59%;
}

.rectournamentsintrotext {
    margin-left: 7% !important;
    text-align: left;
    display: block;
    font-size: 2.4em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
    -webkit-background-clip: text;
    background-image: linear-gradient(to right, #1ecb6d, #35ddd5);
    color: transparent;
    width: fit-content;
}

.slidercontainer {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.sliderofrecents {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    scroll-snap-type: x mandatory;

}

.recentevent {
    cursor: pointer;
    flex: 0 0 auto;
    width: 25%;
    margin-left: 4%;
    margin-right: 4%;
    border: 2px solid #2563eb;
    border-radius: 10px;
    aspect-ratio: 1/.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #eef1f3;

}
.recentevent:hover{
    background-image: linear-gradient(to right, #35ddd5, #1ecb6d);
    color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

}

.recenteventname {
    margin-left: 1em;
    margin-right: 1em;
}

button.slideleft,
button.slideright {
    background-color: #6dd8a6;
    border: none;
    color: white;
    font-size: 1.5em;
    padding: 0.5em;
    cursor: pointer;
    top: 50%;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button.slideleft {
    left: 10px;
}

button.slideright {
    right: 10px;
}

button.slideleft:hover,
button.slideright:hover {
    background-color: #62c897;
}

.buttonsandslider {
    display: flex;
    align-items: center;
}