body {
    background-color: #e6e7ec;
    margin: 0;
    padding: 0;
}

.indexContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 90vh;
}


/* Container for the algorithm cards */
.algosContainer {
    display: flex;
    justify-content: space-around;
    margin: 10px auto;
    width: 80%;
    gap: 20px;
}

/* Style individual algorithm cards */
.algoContainer {
    background: aliceblue;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    width: 30%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    text-align: center;

}

.algoContainer:hover {
    transform: translateY(-10px);
}

#algoName {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    color: #86b9e8;
}

.algoContainer:hover #titleOfAlgorCard span {
    animation: scatter 1.75s infinite;
}

#titleOfAlgorCard {
    font-size: 25px;
    font-family: 'Dancing Script', cursive;
    /*font-family: 'Alef', sans-serif;*/
}

#titleOfAlgorCard span {
     display: inline-block;
     position: relative;
     /*animation: scatter 1.75s infinite;*/
    animation: none;
}


.algoContainer:hover #titleOfAlgorCard span:nth-child(5n+1) {
    animation-delay: 0.3s;
}

.algoContainer:hover #titleOfAlgorCard span:nth-child(5n+2) {
    animation-delay: 0.4s;
}

.algoContainer:hover #titleOfAlgorCard span:nth-child(5n+3) {
    animation-delay: 0.5s;
}

.algoContainer:hover #titleOfAlgorCard span:nth-child(5n+4) {
    animation-delay: 0.6s;
}

.algoContainer:hover #titleOfAlgorCard span:nth-child(5n+0) {
    animation-delay: 0.7s;
}


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


p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
    text-align: center;
    font-family: 'Dancing Script', cursive;
}


.learnMoreBtn {
    background: #86b9e8;
    color:  white;
    cursor: pointer;
    width: 8em;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    /*font-family: 'Dancing Script', cursive;*/
    font-family: 'Alef', sans-serif;
    font-weight: bold;
    padding: 6px;
    transition: background-color 0.3s;
}


.learnMoreBtn:hover {
    background-color: #075985;
}


/* Style the form of choosing the algorithm and the Try button */
h2 {
    text-align: center;
    font-size: 1.8em;
    color: #333;
    font-family: 'Dancing Script', cursive;
    margin-bottom: 0;
}

form {
    text-align: center;
    color: #333;
}

label, select  {
    display: block;
    margin: 10px auto;
    font-size: 1.2em;
    font-family: 'Dancing Script', cursive;
    color: #333;
}


select {
    width: 10em;
    height: 2.5em;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}


/* Styles for the try button */
button#tryButton {
    position: relative;
    width: 200px;
    height: 50px;
    font-weight: bold;
    background: #86b9e8;
    text-align: center;
    color: #fff;
    border: 3px solid #86b9e8;
    transition: all .35s;
    cursor: pointer;
    margin-bottom: 100px;
    font-family: 'Dancing Script', cursive;
    font-size: 20px;
    overflow: hidden; /* Ensure that the arrow animation does not overflow the button */
}

button#tryButton:hover {
    background: white;
    color: #86b9e8;
}

/* Arrow styles */
.arrow {
    position: absolute;
    top: 60%;
    right: 30px; /* Adjust position as needed */
    transform: translateY(-50%) rotate(90deg);
    pointer-events: none; /* Ensure arrow doesn’t block button interactions */
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 5px solid #86b9e8;
    border-left: 5px solid #86b9e8;
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(30px, 30px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(-30px, -30px);
    }
}




