#upload-photo-modal {
    position:fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: var(--background-color);
    border: 2px solid var(--main-border-color);   
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 40px 0;
    overflow-y: auto;
    scrollbar-width: none !important;
}

#upload-photo-modal .modal-content,
#upload-photo-modal-content {
    position: relative;
    padding: 20px;
    background: var(--main-content-color);
    border: 2px solid var(--main-border-color);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.upload-photo-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.profile-photo-default, .upload-player-photo-default {
    top: -18px;
    left: -14px;
    color: var(--main-content-color);
    font-size: clamp(8.5rem, 40vw, 9.5rem) !important;
    opacity: 1;
    font-variation-settings: "FILL" 1;
    background: rgba(0, 0, 0, 0.3);
    border: solid 1px var(--text-color);
    border-radius: 15px;
    margin: 0 0 20px 0;
}

.upload-photo-modal-content img {
    width: 100px;
    height: auto;
    max-width: 200px;
    border: solid 2px var(--text-color);
    border-radius: 10px;
    margin-bottom: 20px;
}

#upload-photo-form {
    width: 100%;
}

.add-photo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.button-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.fake-file-select {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
    background: var(--background-color);
    border: solid 1px var(--main-border-color);
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 5px;
}

.custom-file-label {
    display: inline-block;
    padding: 3px 6px;
    cursor: pointer;
    background: var(--main-content-color);
    border-radius: 4px;
    border: 1px solid var(--sub-content-color);
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
}

#file-chosen {
    display: inline-block;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 5px;
    opacity: 0.7;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
}

.add-photo-wrapper button {
    position: relative;
    top: -7px;
    width: 37px !important;
    height: 37px !important;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    padding: 0px 10px !important;
}

.add-photo-wrapper button span {
    position: relative;
    top: 1px;
    left: -5px;
}

#upload-photo-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: -5px;
    background-color: var(--background-color);
    border: 1px solid var(--main-border-color);
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    border-radius: 5px;
}

#upload-photo-form button, #upload-photo-close {
    width: 100%;
    padding: 10px;
    background-color: var(--sub-content-color);
    color: var(--text-color);
    font-weight: bold;
    border: solid 1px var(--background-color);
    border-radius: 5px;
    cursor: pointer;
}

.cropper-drag-box {
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 2px var(--main-border-color);
    background-color: var(--background-color);
}

#cropper-confirm {
    width: 50%;
    padding: 10px;
    margin: 15px;
    background-color: var(--sub-content-color);
    color: var(--text-color);
    font-weight: bold;
    border: solid 1px var(--background-color);
    border-radius: 5px;
    cursor: pointer;
}