/* Modal Background */
#edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal Content */
#edit-modal-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    max-height: 80%;
    overflow-y: auto;
    width: 60%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Close Button */
#close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: red;
}

.table-light td {
    font-weight: bold; padding: 10px; width: calc(50% - 10px); border-bottom: 1px solid #ccc;
}

/* Modal Body */
#modal-body {
    display: flex;
    flex: 1;
    gap: 20px;
}

/* Left Side Styles */
#left-side {
    flex: 1;
    border-right: 1px solid #ddd;
    padding-right: 20px;
}

#left-side h2 {
    color: black;
    margin-bottom: 20px;
}

#left-side label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

#card-name {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
    font-size: 16px;
}

#left-side-button {
    width: 30%;
    padding: 10px;
    background-color: #51bd1c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

#left-side-button:hover {
    background-color: #3a8b13;
}

/* Right Side Styles */
#right-side {
    flex: 1;
    padding-left: 20px;
}

#right-side h3 {
    color: black;
    margin-bottom: 20px;
}

#image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#card-image {
    max-height: 400px;
    width: auto;
    border-radius: 8px;
}

#card-image-upload {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
    font-size: 16px;
}

/* More Options Button */
#more-options {
    display: flex;
    justify-content: center;
    padding-top: 30px;
}

#toggle-hidden-element {
    width: 40%;
    padding: 10px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

#toggle-hidden-element:hover {
    background-color: #333333;
}

/* Hidden Element Styles */
#hidden-element {
    display: none;
    transition: all 0.5s ease;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 14px;
    background-color: #f9f9f9;
}

#hidden-element h3 {
    font-size: 22px;
    text-align: center;
    color: black;
    padding-bottom: 14px;
}

#additional-actions {
    display: flex;
    gap: 20px;
}

#edit-person-one, #edit-person-two {
    flex: 1;
}

#edit-person-one h2, #edit-person-two h2 {
    font-size: 18px;
    color: black;
    margin-bottom: 10px;
}

#edit-person-one label, #edit-person-two label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

#nameOne, #nameTwo, #bioOne, #bioTwo {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
    font-size: 16px;
}

#save-additional-actions button {
    width: 120px;
    padding: 10px;
    background-color: #51bd1c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

#save-additional-actions button:hover {
    background-color: #3a8b13;
}

/* Additional Form Styles */
#additional-form h4 {
    margin-bottom: 10px;
    color: black;
}

#teamTransfer {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
    font-size: 16px;
}

#dropComment {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
    font-size: 16px;
}

#submit-container button {
    width: 180px;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
    transition: background-color 0.3s ease;

}

#submit-container button:hover {
    background-color: #0056b3;
}

#delete-container button {
    width: 100px;
    padding: 10px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
}

/* Modal Responsive */
@media (max-width: 768px) {
    #edit-modal-content {
        width: 80%;
    }

    #modal-body {
        flex-direction: column;
        gap: 0;
    }

    #left-side, #right-side {
        padding-right: 0;
        padding-left: 0;
        border-right: none;
    }

    #toggle-hidden-element {
        width: 100%;
    }
}

        /* Donation Modal Background */
    #donation-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

/* Modal Content */
#modal-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    max-height: 80%;
    overflow-y: auto;
    width: 40%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Close Button */
#close-donation-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: red;
}

/* Modal Header */
#modal-main-content h2 {
    margin-top: 0;
    text-align: center;
    font-size: 24px;
    color: black;
    padding-bottom: 20px;
}

/* Donation Details Section */
#donation-details {
    display: flex;
    justify-content: space-between;
}

/* Inputs and Select */
#add-donation-amount,
#add-donation-type,
#add-donation-votes,
#add-donation-about,
#add-donation-firstname,
#add-donation-lastname {
    width: calc(50% - 10px);
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
    font-size: 16px;
}

#add-donation-firstname {
    width: calc(50% - 10px);
}

#add-donation-lastname {
    width: calc(50% - 10px);
}

#add-donation-votes {
    width: calc(33% - 10px);
}

#add-donation-amount {
    width: calc(33% - 10px);
}

#add-donation-type {
    width: calc(33% - 10px);
}

/* Textarea */
#add-donation-about {
    width: 100%;
    margin-top: 10px;
    resize: none;
}

/* Submit Button */
#submit-container {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-left: 20px;
}

#add-tickets-votes input {
    width: calc(50% - 10px);
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
}

#add-tickets-votes button {
    padding: 10px 20px;
    background-color: green;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#add-tickets-votes button:hover {
    background-color: #2b542c;
}

#submit-donation {
    padding: 10px 20px;
    background-color: green;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#submit-donation:hover {
    background-color: #0056b3;
}

/* Modal Responsive */
@media (max-width: 768px) {
    #modal-content {
        width: 80%;
    }

    #add-donation-amount,
    #add-donation-type {
        width: calc(100% - 10px);
    }
}

        /* Modal Background */
    #add-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

/* Modal Content */
#add-modal-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    max-height: 80%;
    overflow-y: auto;
    width: 60%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Close Button */
#close-add-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: red;
}

/* Modal Body */
#add-modal-body {
    display: flex;
    flex: 1;
}

/* Left Side Styles */
#left-add-side {
    flex: 1;
    padding-right: 20px;
}

#add-team-header h1 {
    text-align: center;
    padding-bottom: 50px;
    font-weight: bold;
    color: black;
}

#add-team-details {
    display: flex;
    gap: 20px;
}

#add-person-one, #add-person-two {
    flex: 1;
}

#add-person-one h2, #add-person-two h2 {
    color: black;
    margin-bottom: 20px;
}

#add-person-one label, #add-person-two label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

#addOne, #addTwo, #bioAddOne, #bioAddTwo {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
    font-size: 16px;
}

#add-button-container {
    padding-bottom: 20px;
    text-align: center;
}

#add-team-button {
    display: block;
    width: 120px;
    padding: 10px;
    background-color: #51bd1c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px auto;
}

#add-team-button:hover {
    background-color: #3a8b13;
}

/* Modal Responsive */
@media (max-width: 768px) {
    #add-modal-content {
        width: 80%;
    }

    #add-team-details {
        flex-direction: column;
    }

    #left-add-side {
        padding-right: 0;
    }
}

#wpfooter {display: none;}
.draggable-box {
    margin: 10px;
    padding: 10px;
    cursor: move;
    float: left;
}
.noDragBox {
    margin: 10px;
    padding: 10px;
    float: left;
}
.ui-state-highlight {
    height: 100px;
    line-height: 1.2em;
    background-color: #ccc;
    border: 1px dashed #ddd;
}
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darkens the background by 70% */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    left:50%;
    top:50%;
    animation: rotate 1s linear infinite;
    display: inline-block;
}
.loader::before , .loader::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid #FFF;
    animation: prixClipFix 2s linear infinite ;
}
.loader::after{
    inset: 8px;
    transform: rotate3d(90, 90, 0, 180deg );
    border-color: #FF3D00;
}

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

@keyframes prixClipFix {
    0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
    50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
    75%, 100%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert h4 {
    margin-top: 0;
    color: inherit;
}

.alert .alert-link {
    font-weight: bold;
}

.alert > p,
.alert > ul {
    margin-bottom: 0;
}

.alert > p + p {
    margin-top: 5px;
}

.alert-dismissable,
.alert-dismissible {
    padding-right: 35px;
}

.alert-dismissable .close,
.alert-dismissible .close {
    position: relative;
    top: -2px;
    right: -21px;
    color: inherit;
}

.alert-success {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}

.alert-success hr {
    border-top-color: #c9e2b3;
}

.alert-success .alert-link {
    color: #2b542c;
}

.alert-info {
    background-color: #d9edf7;
    border-color: #bce8f1;
    color: #31708f;
}

.alert-info hr {
    border-top-color: #a6e1ec;
}

.alert-info .alert-link {
    color: #245269;
}

.alert-warning {
    background-color: #fcf8e3;
    border-color: #faebcc;
    color: #8a6d3b;
}

.alert-warning hr {
    border-top-color: #f7e1b5;
}

.alert-warning .alert-link {
    color: #66512c;
}

.alert-danger {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

.alert-danger hr {
    border-top-color: #e4b9c0;
}

.alert-danger .alert-link {
    color: #843534;
}

.btn{
    margin-right: 0.07rem;
    margin-left: 0.07rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    cursor: pointer;
    -webkit-appearance: button;
    text-transform: none;
    overflow: visible;
    outline: none;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0069d9;
}

input:invalid {
    border-color: red;
}

.input-group {
    display: table;
    border-collapse: collapse;
    width: 100%;
}

.input-group > * {
    display: table-cell;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.input-group-icon {
    background-color: #eee;
    color: #777;
    padding: 0 12px;
}

.input-group-area {
    width: 100%;
}

.input-group input {
    border: 0;
    display: block;
    width: 100%;
    padding: 8px;
}