@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;800&display=swap');

.left-side {
    width: 60%;
    margin-right: 20px;
    height: 100vh;
    overflow-y: auto;
    background: #ddd;
    padding: 20px;
    border-radius: 10px;
}

.right-side {
    width: 35%;
    background-color: transparent;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    padding-left: 135vh;
    margin-top: -105vh;
}

.container {
    margin-bottom: 20px;
}

.container h2{
    text-align: center;
}

.pre {
    background-color: #CE1126;
    color: white;
}

.post {
    background-color: #00BF63;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

td {
    padding: 10px;
    text-align: center;
}

#requirementsTable thead th, #copyTable thead th {
    position: sticky;
    top: 0;
    background-color: #f1f1f1;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 20px;
}

.add-btn, .remove-last-btn {
    background: #CE1126;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
    width: 25%;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    box-shadow:
        rgba(45, 35, 66, 0.2) 0 2px 4px,
        rgba(45, 35, 66, 0.15) 0 7px 13px -3px,
        #CE1126 0 -3px 0 inset;
    margin-left: 20px;
}

.add-btn {
    margin-left: 60px;
}

.remove-btn {
    background: gray;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    pointer-events: auto;
}

.greyed-out {
    color: #ccc;
}

.greyed-out td:not(:first-child) {
    color: #ccc;
}

/* Scrollable Table Container for Tables */
.scrollable-table-container {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

input::placeholder {
    font-family: 'Manrope', sans-serif;
}

.input-row div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-row input {
    width: 48%;
    font-family: 'Manrope', sans-serif;
}

.content2 {
    width: 60%;
    margin: auto;
}

.heading {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: black;
}

.row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    white-space: nowrap;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    background-color: transparent;
}

.top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.up-to {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: -5px;
    color: black;
}

.arrow {
    font-size: 60px;
    font-weight: bold;
    line-height: 1;
}

.green-arrow::before {
    content: "▼";
    color: #00FF00;
}

.red-arrow::before {
    content: "▲";
    color: #FF0000;
}

.percentage {
    font-size: 50px;
    font-weight: bold;
}

.green {
    color: #00FF00;
}

.red {
    color: #FF0000;
}

.subtext {
    font-size: 15px;
    font-weight: bold;
    color: black;
}

.cta {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #CE1126;
    color: white;
    font-weight: bold;
    font-family: 'Manrope', sans-serif;
    text-decoration: none;
    border-radius: 5px;
    margin-left: 80px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

.cta:hover {
    transform: scale(1.1);
    background: #CE1126;
    color: white;
}

.remove-btn {
    background: #545454;
    border: none;
    padding: 7px 7px;
    border-radius: 5px;
    cursor: pointer;
}

.remove-btn:hover {
    background: #CE1126;
    transition: 0.5s;
}

/* Modal background */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
    font-family: Arial, sans-serif;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.warning-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.modal-header h2 {
    font-size: 24px;
    color: #f39c12;
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

.modal-text {
    font-size: 18px;
    color: #333;
    text-align: left;
    margin-bottom: 30px;
    font-family: 'Manrope', sans-serif;
}

.modal-actions {
    display: flex;
    justify-content: space-around;
}

.modal-btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* Yes Button Styles */
.yes-btn {
    background-color: #4CAF50;
    color: white;
}

.yes-btn:hover {
    background-color: #45a049;
}

/* No Button Styles */
.no-btn {
    background-color: #f44336;
    color: white;
}

.no-btn:hover {
    background-color: #e53935;
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-btn:hover {
    color: black;
    text-decoration: none;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    .left-side {
        width: 100%;
        margin-right: 0;
        padding: 10px;
    }

    .right-side {
        width: 100%;
        padding-left: 0;
        margin-top: 0;
    }

    .add-btn, .remove-last-btn {
        width: 48%; /* Adjust button size */
        margin-left: 10px;
    }

    .remove-btn {
        width: 100%;
        padding: 10px;
    }

    .input-row {
        flex-direction: column; /* Stack input fields vertically */
        align-items: stretch;
    }

    .input-row input {
        width: 100%; /* Make input fields take full width */
    }

    .cta {
        margin-left: 0;
        display: block;
        width: 100%;
    }

    .content2 {
        width: 90%;
    }

    .row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .item {
        width: 80%; /* Adjust item width */
    }
}

@media screen and (max-width: 480px) {
    .heading {
        font-size: 20px;
    }

    .percentage {
        font-size: 40px;
    }

    .item {
        width: 100%;
    }

    .top {
        flex-direction: column;
        align-items: flex-start;
    }

    .green-arrow, .red-arrow {
        font-size: 40px;
    }

    .cta {
        padding: 10px 20px;
    }
}
