* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #121212;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1f1f1f;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

header input {
    padding: 10px;
    border-radius: 20px;
    border: none;
    width: 350px;
    outline: none;
    transition: 0.3s;
}

header input:focus {
    box-shadow: 0 0 10px #ff4c4c;
}

header button, .history-button, .home-button {
    padding: 10px 20px;
    border: none;
    background-color: #ff4c4c;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
}

header button:hover, .history-button:hover, .home-button:hover {
    background-color: #e63e3e;
}


main {
    background-color: #1e1e1e;
    padding: 6rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}


.card {
    background-color: #333;
    padding: 1rem;
    border-radius: 10px;
    transition: 0.3s;
    box-shadow: 0px 4px 10px rgba(255, 76, 76, 0.5);
    text-align: center;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    border-radius: 10px;
}

.card h3 {
    margin-top: 10px;
    font-size: 16px;
    color: white;
}


.history-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem 2rem;
    width: 100%;
}

#iframe-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

iframe {
    width: 100%;
    max-width: 900px;
    height: 500px;
    border-radius: 10px;
}

.home-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 24px;
    background-color: #ff4c4c;
    color: white;
    border-radius: 25px;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
}

.home-button:hover {
    background-color: #e63e3e;
    transform: scale(1.1);
}

button {
    cursor: pointer;
    transition: 0.3s;
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
        padding: 1rem;
    }
    .header-left, .header-right {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    header input {
        width: 100%;
    }
    iframe {
        height: 300px;
    }
}