body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1em 0;
    text-align: center;
}

section {
    padding: 20px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 94%;
    max-width: 1080px;
}

.card-container {
    display: flex;
    justify-content: space-around;
}

.card {
    width: 45%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

@media (max-width: 768px) {
    section {
        padding: 20px 15px;
        width: 85%;
    }
    .card-container {
        flex-direction: column;
    }

    .card {
        padding: 20px 5px;
        width: 96%;
        margin-bottom: 15px;
    }
}

#quiz-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#quiz-form input[type="email"] {
    margin: 10px 0;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#quiz-form input[type="text"] {
    margin: 10px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 50%;
}

@media only screen and (min-width: 668px) {
    #quiz-form input[type="text"] {
        margin: 10px 0 10px 15%;
        padding: 8px;
        border-radius: 5px;
        border: 1px solid #ccc;
        width: 50%;
    }
}

#quiz-form button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#quiz-questions {
    margin-bottom: 20px;
}

.question {
    margin-bottom: 15px;
}

.question p {
    font-weight: bold;
    margin-bottom: 5px;
}

.question label {
    display: block;
    margin-bottom: 5px;
}

#results {
    text-align: center;
}

footer {
    text-align: center;
    padding: 1em 0;
    background-color: #333;
    color: #fff;
}

.calculating-message {
    font-size: 1.2em;
    font-style: italic;
    color: #777;
    margin-top: 10px;
    text-align:center;
}

.next-button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.flip-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.resource-card {
    width: 300px;
    height: 200px;
    margin: 10px;
    perspective: 1000px;
}

.resource-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.2s;
    transform-style: preserve-3d;
}

.resource-card:hover .resource-card-inner {
    transform: rotateY(180deg);
}

.resource-card-front, .resource-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.resource-card-front {
    background-color: #bbb;
    color: black;
    height: 200px;
    overflow: hidden;
}

.resource-card-front h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.resource-card-back {
    background-color: #2980b9;
    color: white;
    transform: rotateY(180deg);
    text-align: center;
    height: 200px;
    overflow: auto;
    padding: 0px;
}

.center {
    text-align:center;
}

.niche-button {
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
    margin-right: 20px;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px 20px 40px 20px;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 15%; opacity: 1}
}

/* The Close Button */
.close-button {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#modal-content-plan {
    padding: 10px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#quiz-progress {
    width: 80%;
    margin: 10px auto;
    display: none; /* Hidden initially, JS will show */
}

.progress-bar {
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 10px;
    width: 100%;
}

.progress {
    background-color: #4caf50;
    height: 10px;
    border-radius: 5px;
    width: 0%; /* Updated by JS */
}

.right {
    float: right;
    margin-right: 20px;
}

.lower {
    margin-bottom: 20px;
}
}