/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    direction: rtl;
    text-align: right; /* Align text to the right */
}

/* Style the body */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.logo {
    font-size:40px;
    text-align:center;
    margin-top:10px;
}
.application_name {
    font-size:24px;
    text-align:center;
    font-weight: bold;
    color:#007BFF;
    margin-bottom:30px;
}

.invite {
    font-size:24px;
    text-align:center;
    margin-bottom:30px;
}
.invite_subtitle {
    font-size:20px;
    text-align:center;
    margin-bottom:30px;
}

/* Style the container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Style the heading */
h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color:#007BFF;
}

h2 {
    font-size:24px;
}

h3 {
    font-size:20px;
    font-weight:normal;
}
/* Style the form */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style the label */
label {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Style the phone number input */
input[type="tel"] {
    font-size: 32px; /* Increase the font size for the phone number */
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
}

/* Style the verification code input container */
.verification-code-container {
    display: flex;
    justify-content: center;
}

/* Style the verification code input */
.verification-code {
    width: 200px;
    height: 80px;
    font-size: 48px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Style the Submit button */
button {
    font-size: 18px;
    padding: 5px 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* for main */
.nice_input {
    border: none;
    outline: none; /* Remove the outline when focused */
}


/* Add a border when focused */
.nice_input:focus:not([readonly]), .nice_input[value='']:not([readonly]) {
    border: 1px solid #ccc;
}
        .groups > div {            
            background-color: #fff;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            padding: 10px;
            margin-bottom: 20px; /* Add margin between group cards */
        }

        .group-header {
            display: flex;
            cursor:pointer;
        }

        .profile {
            display: flex;
        }

        .menu {
            margin-right: auto;

            width:50px;
            height:24px;
            background-image: radial-gradient(circle at 10px center, black 2px, transparent 3px) ;
            background-size: 100% 33.33%;
        }
        .menu nav {
            z-index:1001;
            width:fit-content;
            min-width:200px;
            transform:translate(100%,0) translate(-20px,0);
            background-color:#eee;
            visibility: hidden;
            padding: 20px;           /* Padding inside the box */
            background-color: #fff;  /* White background */
            border: 1px solid #ccc;  /* Optional: A light border */
            border-radius: 8px;      /* Rounded corners */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), /* Horizontal and vertical offset, blur, and color */
                       0 2px 4px rgba(0, 0, 0, 0.06); /* You can layer multiple shadows for a more nuanced effect */

        }

        .menu  nav:active,
        .menu:focus  nav {
            visibility: visible;
        }

        .menu nav ul {
            list-style: none;
            padding:0px;
        }
        .menu nav li {
            padding:5px;
            text-align:left;
            font-size:24px;
        }
        .menu nav li:hover {
            background-color: #ddd;
        }

        .group-card {
            transition: transform 0.2s ease;
            z-index:1;
        }
        .group-card[collapsed='true'] {
            cursor: pointer;
        }
        .group-card:hover {
            transform: scale(1.05);
        }

        .user-card {
            transition: transform 0.2s ease;
            z-index:1;
        }
        .user-card:hover {
            transform: scale(1.05);
        }

        .group-name {
            font-size: 24px;
            font-family: Arial, sans-serif;
            margin-bottom: 20px;
            border: none;
            outline: none; /* Remove the outline when focused */
            cursor: pointer;

        }
        .group-name:focus:not([readonly]), .group-name[value='']:not([readonly]) {
            border: 1px solid #ccc;
            cursor: text;
        }

        .status {
            font-size: 24px;
            position:relative; top:3px
        }

        .status[score='-1']::before { content: '🟡'; filter:saturate(0); }
        .status[score='0']::before  { content: '🔴'; }
        .status[score='5']::before  { content: '🟡'; }
        .status[score='10']::before { content: '🟢'; }

        .group-card .group-header .status {
            cursor: pointer;
        }
        .group-card .group-header .status::after { 
            border-style: solid;
            border-width: 5px 5px 0 0;
            border-color: #ffffffee;
            content: '';
            display: inline-block;
            height: 6px;
            left: 18px;
            position: relative;
            top: 10px;
            transform: rotate(-45deg);
            vertical-align: top;
            width: 6px;
        }
        .user-card .status{
            margin-left:10px;
        }
        .group-card[collapsed='true'] .group-header .status::after {
            transform: rotate(135deg);
            top: 8px;
        }
        [collapsed='true'] [showIf='collapsed']{
            transition: max-height 0.1s 0.1s ease-in-out; /* expanding */
            overflow:scroll;
            max-height: 100px;

        }

        [collapsed='false'] [showIf='collapsed'] {
            transition: max-height 0.1s  ease-in-out; /* collapsing */
            max-height: 0; 
            overflow:hidden; 
        }

        [collapsed='false'] [showIf='expanded']{
            transition: max-height 1s ease-in-out; /* expanding */
            max-height: 1000px;
            overflow:scroll;
        }

        [collapsed='true'] [showIf='expanded'] {
            transition: max-height 0.1s ease-in-out; /* collapsing */
            max-height: 0; 
            overflow:hidden;
        }

        .indent {
            padding-right:20px;
        }
        /*
        .group-card ul {
            list-style: none;
            padding: 0;
        }

        .group-card li {
            font-size: 18px;
            margin-bottom: 10px;
            margin-right:20px;
        } */

        .last-seen {
            font-size: 16px;
            color: grey;
            padding-right:30px;
        }
        .last-seen[is_ok='False'] {
            color: darkred;
        }
        .last-seen[is_ok='True']::before  { content: "👍 "; filter: brightness(84%) hue-rotate(75deg) saturate(0%) sepia(0%);}
        .last-seen[is_ok='False']::before { content: "👎 "; filter: brightness(64%) hue-rotate(290deg) saturate(96%) sepia(0%);color: darkred;}


.center-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* This will center the text in your headings and buttons */
}

.center-buttons button {
    margin: 10px; /* Optional: to provide some space between the buttons */
    padding: 10px;
    min-width:100px;
    text-align:center;
    font-size:24px;
}

/*        .group-card > div { position:absolute;}*/
        
/* Style for the thumbs container */
.thumbs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

/* Style for each thumb */
.thumb {
    text-align: center;
    cursor:pointer;
}

/* Style for the circle around the thumb */
.circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30vw; /* Adjust the size of the circle */
    max-width:350px;
    height: 30vw; /* Adjust the size of the circle */
    max-height:350px;
    background-color: #ccc; /* Circle background color */
    border-radius: 50%; /* Make it circular */
    margin: 10px; /* Adjust the margin as needed */
}
 .circle:hover {
            transform: scale(1.05);
        }

.thumb[is_ok='True'] .circle { background-color: #cdc }
.thumb[is_ok='False'] .circle { background-color: #dcc }


.thumb[is_ok='True'] .circle::after {
    content:"👍";
    font-size: clamp(5px, 13vw, 200px); /* Adjust the size of the icon */
    margin-top:-2vw;
}
.thumb[is_ok='True']::after {
    content:"כן";
    font-size: clamp(5px, 13vw, 200px);; /* Adjust the size of the icon */
}
.thumb[is_ok='False'] .circle::after {
    content:"👎";
    margin-top:2vw;
    font-size: clamp(5px, 13vw, 200px);; /* Adjust the size of the icon */
}
.thumb[is_ok='False']::after {
    content:"לא";
    font-size: clamp(5px, 13vw, 200px);; /* Adjust the size of the icon */
}



@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}



.contacts {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Darken the background */
    z-index: 9999; /* Sit on top */
    transition: zoom 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.contacts-content {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
}
#contactsTextarea {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 80px;
    font-size: 24px;
}
.contacts .center-buttons {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0px;
}
.contacts[hide] {
    display:none;
    zoom:0;
    opacity:0;
}

.spinner {
    border: 20px solid rgba(255, 255, 255, 0.3);
    border-top: 20px solid #007bff;
    border-radius: 50%;
    width: 100px; /* Adjust the spinner size as needed */
    height: 100px; /* Adjust the spinner size as needed */
    animation: spin 2s linear infinite;
    top: calc(50% - 50px);
    left: calc(50% - 50px);
    position: absolute;
    transform: translate(-56%,-50%);
}
.contacts:not([spinner]) .spinner {
    display: none;
}
.contacts[spinner] .contacts-content {
    filter: brightness(0.5);
}
.contacts:not([analyzed]) button[type=submit] {
    display:none;
}
/* Add a loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

