body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}
.container {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.quiz-item {
    width: calc(25% - 20px); /* Adjust to fit 4 items per row */
    margin: 10px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.quiz-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}
.quiz-item .details {
    text-align: center;
}
.quiz-item .details h2 {
    margin: 10px 0;
    font-size: 1.2em;
    font-weight: bold;
}
.quiz-item .details p {
    margin: 5px 0;
    font-size: 0.9em;
}
.start-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.start-btn:hover {
    background-color: #45a049;
}
.copy-link-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
}
.profile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.profile img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}
.profile span {
    font-size: 0.9em;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .quiz-item {
        width: calc(33.33% - 20px); /* Adjust to fit 3 items per row */
    }
}
@media (max-width: 900px) {
    .quiz-item {
        width: calc(50% - 20px); /* Adjust to fit 2 items per row */
    }
}
@media (max-width: 600px) {
    .quiz-item {
        width: calc(100% - 20px); /* Adjust to fit 1 item per row */
    }
}
