:root {
    --main-font: 'Nunito', sans-serif;
    --main-blue: 0, 56, 255;
    --upload-icon: url(./media/upload-icon.png);

    --like-profile-icon-clicked: url(./media/like-icon-clicked.png);
    --like-profile-icon-mutual: url(./media/like-icon-mutual.png);
    --love-profile-icon-clicked: url(./media/love-icon-clicked.png);
    --love-profile-icon-mutual: url(./media/love-icon-mutual.png);
    --message-icon-white: url(./media/message-icon-white.png);

    --big-image-side: 40px;
    --small-image-side: 32px;
}

body {
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: "UniChat";
    font-weight: 600;
    margin: 5px 0px;
}

form {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: scroll;
}

form[loading="true"] {
    filter: blur(5px);
}

form::-webkit-scrollbar {
    background-color: transparent !important;
    width: 4px !important;
}

form::-webkit-scrollbar-track {
    background-color: transparent !important;
}

form::-webkit-scrollbar-thumb {
    background-color: #babac0 !important;
    border-radius: 16px !important;
    border: none !important;
}

form::-webkit-scrollbar-button {
    display:none !important;
}


.form-inner {
    position: relative;
    width: calc(60% - 10px);
    max-width: 650px;
    padding: 5px;
    padding-bottom: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
}

.form-row {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 8px;
    margin-bottom: 8px;
}

input[name="name"] {
    border-radius: 8px;
    box-shadow: 0px 0px 1px 0.5px rgba(0, 0, 0, 0.25);
    border: none;
    font-size: 20px;
    font-family: var(--main-font);
    padding: 7px 5px;
    width: calc(100% - 10px);
}

select[name="university"] {
    box-sizing: border-box; /* Ensure the padding is included within the element's width and height */
    border-radius: 8px;
    box-shadow: 0px 0px 1px 0.5px rgba(0, 0, 0, 0.25);
    border: none;
    font-size: 18px;
    font-family: var(--main-font);
    padding: 5px;
    width: calc(100% - 3px);
    min-width: calc(100% - 3px);
    max-width: calc(100% - 3px);
}

textarea {
    resize: none; 
    font-family: var(--main-font); 
    font-size: 18px;
}

textarea:focus, input:focus {
    outline: none;
}

textarea[name="description"] {
    border-radius: 10px; 
    box-shadow: 0px 0px 1px 0.5px rgba(0, 0, 0, 0.25);
    border: none;
    padding: 5px;
    width: calc(100% - 10px);

}

.publicity-toggle-banner-outer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.people-box {
    padding: 5px;
    box-shadow: 0px 0px 1px 0.5px rgba(0, 0, 0, 0.25);
    border: none;
    border-radius: 10px;
    background-color: white;
    width: calc(100% - 12px);
}

.upload-new-category-photo {
    display: flex;
    flex-direction: column;
    box-shadow: 0px 0px 1px 0.5px rgba(0, 0, 0, 0.25);
    border: none;
    border-radius: 10px;
    padding: 5px;
    background-color: white;
    width: calc(100% - 12px);
}

label {
    font-family: "UniChat";
    font-size: 20px;
    font-weight: 500;
}

input[name="people-search"] {
    border-radius: 10px 10px 0px 0px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    width: calc(100% - 10px);
    padding: 5px;
    font-family: var(--main-font); 
    font-size: 18px;
}

.people-display-box {
    position: relative;
    width: 100%;
    height: 200px;
    overflow-y: scroll;
    font-family: var(--main-font);
    color: red;
}

.selected-people-display-box {
    width: 100%;
    max-height: 100px;
    overflow-y: scroll;
}

.people-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-content: flex-start;
}

.people-boxes::-webkit-scrollbar {
    background-color: transparent !important;
    width: 2px !important;
}

.people-boxes::-webkit-scrollbar-track {
    background-color: transparent !important;
}

.people-boxes::-webkit-scrollbar-thumb {
    background-color: #babac0 !important;
    border-radius: 16px !important;
    border: none !important;
}

.people-boxes::-webkit-scrollbar-button {
    display:none !important;
}

.change-setting-inner-banner {
    width: 488px;
    height: 40px;
    padding: 5px;
    box-shadow: 0px 0px 1px 0.5px rgba(0, 0, 0, 0.25);
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 1);
}

.change-setting-inner-banner[type="people"] {
    height: 250px;
    overflow-y: scroll;
    
}

.change-setting-inner-banner[type="message"] {
    width: 90%;
    min-width: 280px;
    
}

.change-setting-inner-banner::-webkit-scrollbar {
    background-color: transparent !important;
    width: 4px !important;
}

.change-setting-inner-banner::-webkit-scrollbar-track {
    background-color: transparent !important;
}

.change-setting-inner-banner::-webkit-scrollbar-thumb {
    background-color: #babac0 !important;
    border-radius: 16px !important;
    border: none !important;
}

.change-setting-inner-banner::-webkit-scrollbar-button {
    display:none !important;
}

.change-settings-inner-banner-title {
    width: 100%;
    text-align: center;
    font-size: 17px;
    font-family: cursive;
    color: rgba(var(--main-blue), 1);
}

.publicity-toggle-banner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publicity-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    min-width: 50%;
    height: 85%;
    width: 50%;
    min-width: 50%;
    font-size: 20px;
    text-align: center;
    border-radius: 5px;
    font-family: "UniChat";
    font-weight: 600;

    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.publicity-choice[chosen="true"] {
    box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.25);
    background-color: 'white';
    color: rgba(var(--main-blue), 1);
}

.publicity-choice[chosen="true"]:hover {
    cursor: default;
}

.publicity-choice[chosen="false"] {
    background-color: rgba(255, 255, 255, 0.3);
    color: gray;
}

.publicity-choice[chosen="false"]:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.5);
}

.no-hover:hover {
    cursor: not-allowed !important;   
}

.add-new-category-error-message[show="false"] + .upload-new-category-photo {
    margin-top: 25px;
}

.add-new-category-error-message[show="true"] + .upload-new-category-photo {
    margin-top: 11px;
}

.upload-new-category-photo-span {
    width: 90%;
    font-size: 17px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    position: relative;
    left: calc(5% - 1px);
}

.new-category-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    margin-left: calc(50% - 30px);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.possible-backgrounds-banner {
    position: relative;
    margin-top: 40px;
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 5%;
    padding-right: 5%;
}

.default-background {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.default-background:hover {
    cursor: pointer;
}

.default-background[chosen="false"] {
    border: 1px solid transparent;
}

.default-background[chosen="true"] {
    border: 1px solid rgba(var(--main-blue), 0.8);
    box-shadow: 0px 0px 3px 1px rgba(var(--main-blue), 0.25);
}

.select-your-own {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.select-your-own[chosen="false"] {
    border: 1px solid rgba(var(--main-blue), 0.2);
}

.select-your-own-icon {
    position: relative;
    width: 25px;
    height: 25px;
    background: var(--upload-icon) no-repeat center center / contain;
    content: var(--upload-icon);
    z-index: 2;
}

.select-your-own-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
    outline: none;
    border: none;
}

.add-new-category-submit-button-container {
    width: 100%;
    margin-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.create-group-button {
    width: 150px;
    background-color: rgba(var(--main-blue), 1);
    color: white;
    font-family: var(--main-font);
    font-size: 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    margin-top: 30px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.create-group-button:hover {
    cursor: pointer;
    background-color: transparent;
    color: rgba(var(--main-blue), 1);
    border: 1px solid rgba(var(--main-blue), 1);
}


.user {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2px;
    border-radius: 10px;
    height: 41px;
    margin: 3px;

    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.user:hover {
    cursor: pointer;
}

.user[selected="true"] {
    background-color: rgba(var(--main-blue), 0.8);
}

.user[selected="true"] > .name {
    color: white;
}

.user[selected="false"] {
    background-color: white;
    border: 0.5px solid black;
}

.user-horizontal {
    width: var(--big-image-side);
    height: var(--small-image-side);
}

.user-vertical {
    height: var(--big-image-side);
    width: var(--small-image-side);
}

.name {
    font-family: "UniChat";
    font-size: 17px;
    color: black;
    margin: 3px;
}

.load-more-button[display="true"] {
    font-family: var(--main-font);
    font-size: 14px;
    border: 0.5px solid rgba(var(--main-blue), 1);
    border-radius: 10px;
    background-color: white;
    color: rgba(var(--main-blue), 1);
    margin-left: calc(50% - 40px);
    margin-top: 20px;

    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.load-more-button[display="true"]:hover {
    cursor: pointer;
    color: white;
    border: 0.5px solid transparent;
    background-color: rgba(var(--main-blue), 1);
}

.load-more-button[display="false"] {
    display: none;
}


/* @media screen and (max-width: 1100px) {
    .form-row {
        flex-direction: column;
        justify-content: flex-start;
        margin-top: 8px;
        margin-bottom: 8px;
    }

    input[name="name"] {
        width: calc(100% - 10px);
    }

    select[name="university"] {
        width: calc(100% - 3px);
        min-width: calc(100% - 3px);
        max-width: calc(100% - 3px);
    }
    
    textarea[name="description"] {
        width: calc(100% - 10px);

    }

    .publicity-toggle-banner-outer {
        align-items: center;
    }

    .people-box {
        width: calc(100% - 12px);
    }
    
    .upload-new-category-photo {
        width: calc(100% - 12px);
    }
} */

@media screen and (max-width: 1000px) {
    .form-inner {
        padding-bottom: 60px;
        height: auto;
    }
}


@media screen and (max-width: 800px) {
    .form-inner {
        width: calc(80% - 10px);
    }
}

@media screen and (max-width: 600px) {
    .form-inner {
        width: calc(98% - 10px);
    }

    header > .title-profile {
        font-size: 30px;
    }

    form {
        top: 67px;
    }
}


/* Loader: -------------------------- */

.lds-roller[display="false"] {
    display: none;
}

.lds-roller, .lds-roller div, .lds-roller div:after {
    box-sizing: border-box;
}

.lds-roller {
    display: inline-block;
    position: absolute;
    left: calc(50% - 15px);
    top: 0;
    width: 30px;
    height: 30px;
}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 15px 15px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 2.7px; /* Adjusted for proportional scaling */
    height: 2.7px;
    border-radius: 50%;
    background: rgba(var(--main-blue), 1);
    margin: -1.35px 0 0 -1.35px; /* Adjusted for proportional scaling */
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 23.484px;
    left: 23.484px;
}

.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 25.392px;
    left: 21px;
}

.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 26.591px;
    left: 18.105px;
}

.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 27px;
    left: 15px;
}

.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 26.591px;
    left: 11.895px;
}

.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 25.392px;
    left: 9px;
}

.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 23.484px;
    left: 6.516px;
}

.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 21px;
    left: 4.608px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Create Group Loader: ------------------ */
.loader[show = "true"] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: absolute;
    top: calc(50% - 24px);
    left: calc(50% - 24px);
    z-index: 4;
    animation: rotate 1s linear infinite
}

.loader[show = "true"]::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 3px solid rgba(var(--main-blue), 1);
    animation: prixClipFix 2s linear infinite ;
}

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

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

.people-box-message {
    width: 100%;
    text-align: center;
    font-family: var(--main-font);
    font-size: 13px;
    color: black;
}