#generation-modal-window {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.generation-modal {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--second-color);
    border: 2px solid var(--base-border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
    min-width: 300px;
    max-width: 450px;
    width: 80%;
    color: white;
}

.close-modal {
    cursor: pointer;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: -1px;
    right: 6px;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--button-color);
    text-decoration: none;
    cursor: pointer;
}

.generation-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    /*height: 100%;*/
}

.generation-title {
    font-size: 1.375rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
    width: 100%;
}

.generation-description {
    font-size: 1.125rem;
    width: 100%;
}

.generation-description a {
    color: var(--button-color);
    text-decoration: none;
    border-bottom: 1px solid var(--button-color);
}

.generation-progress-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: start;
    row-gap: 35px;
}

.generation-item {
    display: flex;
    justify-content: start;
    align-items: center;
    column-gap: 10px;
    position: relative;
}

.generation-item p {
    font-size: 1.25rem;
    margin: 0;
}

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: gray;
    z-index: 2;
}

.line {
    height: 45px;
    background-color: grey;
    position: absolute;
    top: 25px;
    left: 9px;
    width: 2px;
    z-index: 1;
    transition: background-color 1s;
}

.generation-item:last-child .line {
    display: none;
}

.active {
    animation: pulse 1s infinite;
    background: yellow;
}

.completed {
    background-color: var(--button-color);
}

.errored {
    background-color: #e41749;
}

#demo-link {
    font-size: 1.125rem;
    text-align: center;
    text-decoration: none;
    color: white;
    border: 2px solid var(--button-color);
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    display: none;
}

#demo-link:hover {
    background-color: var(--button-color);
    color: black;
    transition: 0.4s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.error-message-wrapper {
    display: none;
    font-size: 1.125rem;
    text-align: center;
    color: white;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    background-color: #e41749;
}

.success-generation {
    background-color: #2a9d8f;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 500px) {
    .generation-title {
        font-size: 1.25rem;
    }
    .generation-item p {
        font-size: 1.125rem;
    }
}