
/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "EB Garamond", serif !important;
}

body {
    background-color: #f4f4f4; 
    color: #333;
}

h1 {
    font-size: 60px;
    font-weight: bold;
    animation: zoomIn 1.5s ease-in-out;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


.blue {
    color: #00AEEF;
    text-shadow: 6px 6px 6px rgba(0, 0, 0, 0.3);
}

.orange {
    color: #f37b4a;
    text-shadow: 6px 6px 6px rgba(0, 0, 0, 0.3);
}


/* Main Image Section */
.main-img {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-img img {
    width: 100%;
    height: auto;
    display: block;
   
}

/* Content Container (Algosphere Logo + Text) */
.content-container {
    position: absolute;
    top: 50%;
    left: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transform: translateY(-50%);
    z-index: 2;
}


.text-container {
    text-align: center;
    font-size: 50px;
    
}

.text-container span {
    font-size: 2.2em;  
    font-weight: 800;
    color: #f37b4a; 
    text-align: center;;
}


/* Button Styling */
.algo-button {
    background-color: #f37b4a;
    color: white;
    border: none;
    font-size: 30px;  
    padding: 10px 30px;  
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    margin-top: 20px;
    display: block;
    text-align: center;
}

.algo-button:hover {
    background-color: #f37b4a;
    transform: scale(1.1);
}


.algo-container {
    background-color: #f37b4a !important;
}

/* Algorithm Cards Section */
.algo-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px 20px;
    margin-top: -5px; 
    background-color: #f37b4a;
}


.algo-card {
    width: 300px;
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.algo-card img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}

.algo-title {
    background: #2c1a4d;
    color: #f37b4a;
    font-size: 18px;
    padding: 10px;
    font-weight: bold;
    border-radius: 0 0 10px 10px;
}

.algo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
}

#dropdown-img{
    height: 300px;
    width: 250px;
}

/* Dropdown Menu */
.icon {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: url('Images/list-color.png') no-repeat center;
    background-size: cover;
    cursor: pointer;
    z-index: 1000;
}

.dropdown {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100%;
    background: #f3d9a4;
    border-radius: 8px;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
}

.dropdown.show {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
}

.close-btn:hover {
    color: #ff4d4d;
}

.dropdown h3 {
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin-bottom: 15px;
}

.algobox {
    font-family: "EB Garamond", serif !important;
    font-size: large;
    position: relative;
    background: white;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transition: background 0.3s;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.algobox:hover {
    background: #f0f0f0;
}

.algobox b {
    display: block;
    font-size: 16px;
}

.selection-circle {
    position: absolute;
    left: 245px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid;
    background-color: transparent;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 1024px) {
    .content-container {
        left: 3%;
        transform: translateY(-45%);
    }
    .text-container {
        font-size: 40px;
    }
    .text-container span {
        font-size: 1.8em;
    }
    .algo-button {
        font-size: 24px;
        padding: 8px 24px;
    }
}

@media screen and (max-width: 768px) {
    .content-container {
        left: 2%;
        transform: translateY(-40%);
    }
    h1 {
        font-size: 50px;
    }
    .text-container {
        font-size: 35px;
    }
    .text-container span {
        font-size: 1.6em;
    }
    .algo-button {
        font-size: 20px;
        padding: 8px 20px;
    }
}

@media screen and (max-width: 480px) {
    .content-container {
        left: 1%;
        transform: translateY(-35%);
        gap: 10px;
    }
    h1 {
        font-size: 40px;
    }
    .text-container {
        font-size: 28px;
    }
    .text-container span {
        font-size: 1.4em;
    }
    .algo-button {
        display: none;
        font-size: 20px;
        padding: 6px 16px;
    }
}

@media screen and (max-width: 400px) {
    .content-container {
        left: 1%;
        transform: translateY(-35%);
        gap: 10px;
    }
    h1 {
        font-size: 30px;
    }
    .text-container {
        font-size: 20px;
    }
    .text-container span {
        font-size: 1.4em;
    }
    .algo-button {
        display: none;
    }
}