:root {
    --main-blue: 0, 56, 255;
    --uni-chat-main-font: "Nunito Sans", serif;
    --groups-left-position: 0%;
    --swipe-left-groups: url(./media/swipe-left-groups.png);
    --swipe-right-groups: url(./media/swipe-right-groups.png);
    --check-icon: url(./media/check.png);
}

.background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
    background-color: white;
    z-index: 0;
}

.search-bar {
    position: fixed;
    top: 90px;
    left: 20%;
    width: calc(60% - 20px);
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0px 0px 4px 2px rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 10px;
    font-size: 20px;
    line-height: 40px;
    padding: 10px;

    box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.15);
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
}

.search-bar:focus {
    outline-color: black;
    outline-width: 1px;
}

.group-explore-container {
    position: fixed;
    width: 400px;
    max-width: 400px;
    top: 150px;
    height: calc(100% - 200px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
}

@media screen and (max-width: 300px) {
    .group-explore-container {
        width: 100%;
        min-width: unset;
    }
}

.groups-explore-main {
    position: relative;
    width: 95%;
    height: calc(100% - 25px);
    min-width: 95%;
    max-width: 95%;
    margin-left: 2.5%;
    margin-right: 2.5%;
    left: var(--groups-left-position);
}

.group-info {
    height: calc(100% - 50px);
    border-radius: 20px;
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.25);
    background-color: white;
}

.group-details {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.groups-class-pic-container {
    position: relative;
    margin-top: 5px;
    width: calc(100% - 10px);
    height: 250px;
    border-radius: 15px;
    box-shadow: 0px 0px 2px 0.5px rgba(0, 0, 0, 0.25);
}

.privacy-box {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: white;
    padding: 5px;
    font-family: var(--uni-chat-main-font);
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.25);
    font-size: 16px;
}

.Public {
    color: rgba(var(--main-blue), 1);
}

.Private {
    color: red;
}

.groups-class-pic {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.group-main-details {
    position: relative;
    width: 100%;
    font-family: var(--uni-chat-main-font);
}

.group-name {
    width: 100%;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    color: black;
}

.group-university {
    width: 100%;
    text-align: center;
    font-size: 18px;
    color: rgba(var(--main-blue));
    font-weight: bold;
}

.group-created {
    width: 100%;
    text-align: center;
    font-size: 18px;
    color: black;
}

.group-members {
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.8);
}

.group-description {
    display: flex;
    flex-direction: column;
    position: relative;
    width: calc(100% - 12px);
    padding: 5px;
    margin-top: 2px;
    min-height: calc(100% - 390px);
    height: calc(100% - 390px);
    font-family: var(--uni-chat-main-font);
    font-size: 16px;
    line-height: calc(1.5 * 1em);
    max-height: calc(100% - 390px);
    overflow-y: scroll;
}

.group-description::-webkit-scrollbar {
    background-color: transparent !important;
    width: 4px !important;
}

.group-description::-webkit-scrollbar-track {
    background-color: transparent !important;
}

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

.group-description::-webkit-scrollbar-button {
    display:none !important;
}

.transition-0_5 {
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.group-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 2px;
}

.groups-explore-post-button {
    width: 100px;
    height: 30px;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--uni-chat-main-font);
    font-weight: 300;
    font-size: 17px;
    z-index: 10;
    left: unset;
    bottom: unset;
}

.groups-explore-post-button[joined="false"] {
    background-color: rgba(var(--main-blue), 0.8);
    color: white;
    border: 1px solid transparent;
    background: rgba(var(--main-blue), 0.8);
    content: none;
}

.groups-explore-post-button[joined="true"] {
    border: 0.5px solid black !important;
    background-color: transparent !important;
    color: black;
    background: transparent !important;
    content: none;
}

.groups-explore-post-button[joined="true"]:hover {
    cursor: pointer;
}

.arrows-container {
    width: calc(40% + 80px);
    min-width: 500px;
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: calc(50% - 20px);
    z-index: 3;
}

.arrows-container > button[show="false"] {
    opacity: 0;
}

.left-arrow {
    width: 40px;
    height: 40px;
    background: var(--swipe-left-groups) no-repeat center center / contain;
    content: var(--swipe-left-groups);
    outline: none;
    border: none;
}

.right-arrow {
    width: 40px;
    height: 40px;
    background: var(--swipe-right-groups) no-repeat center center / contain;
    content: var(--swipe-right-groups);
    outline: none;
    border: none;
}


.flex-column-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.all-caught-up-ring {
    transform: rotate(-90deg);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 10px;

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

.all-caught-up-ring__circle {
    fill: none;
    /* border: 0.5px solid black; */
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 10;
}

.all-caught-up-ring__circle__progress {
    fill: none;
    stroke: rgba(var(--main-blue), 1);
    stroke-width: 10;
    stroke-dasharray: 283.53; /* C = 2*pi*r = 90*pi ~ 283.53 */
    stroke-dashoffset: 283.53;
    stroke-linecap: round;

    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
    scrollbar-width: none;
}

.all-caught-up-check {
    background: var(--check-icon) no-repeat center center / contain;
    content: var(--check-icon);
    width: 50px;
    height: 50px;
    position: absolute;
    left: calc(50% - 25px);
    top: calc(50% - 25px);
    z-index: 10;
    transform: rotate(90deg);
}

.all-caught-up-complete-message {
    position: relative;
    margin-top: 10px;
    font-size: 19px;
    font-weight: bold;
    font-family: var(--uni-chat-main-font);
    text-align: center;
}

@media screen and (max-width: 1000px) {
    .search-bar {
        width: 85%;
        left: 7.5%;
    }

    .arrows-container {
        top: calc(50% - 50px);
    }

    .group-explore-container {
        top: 80px;
    }

    .search-bar {
        top: 20px;
    }

}

@media screen and (max-width: 500px) {

    .search-bar {
        width: 95%;
        left: 2.5%;
    }

    .arrows-container {
        width: 100%;
        min-width: unset;
    }

    .left-arrow {
        width: 50px;
        height: 50px;
    }
    
    .right-arrow {
        width: 50px;
        height: 50px;
    }

    .group-explore-container {
        width: 99%;
        min-width: unset;
    }

}

@media screen and (min-width: 500px) {

    .arrows-container > button[show="true"]:hover {
        cursor: pointer;
        opacity: 0.4;
    }

    .groups-explore-post-button[joined="false"]:hover {
        border: 0.5px solid black;
        background-color: transparent;
        color: black;
        cursor: pointer;
    }
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
}