﻿    :root {
    --clr-linear: linear-gradient(to right,#00ffff, #6699cc);
    }
    @font-face{
    font-family: playpen;
    src: url(/fonts/playpen-hebrew.ttf)
    }
    * {
    padding: 0;
    margin: 0;
    font-family: playpen, Arial ,Verdana,sans-serif;
    }
    .radio-container {
    direction: ltr;
    display: flex;
    justify-content: right;
    }

    .gender-options {
    margin-left: 0;
    margin-right: 15px;
    margin-top: 0;
    margin-bottom: 0;
    }

    .gender-options.other-radio {
    margin-right: 0;
    }

    .radio-options-label {
    margin-right: 5px;
    }

    .form-box {
    width: 400px;
    height: 540px;
    position: relative;
    margin: 6% auto;
    background: #fff;
    padding: 5px;
    overflow: hidden;
    transition: .5s;
    }

    .button-box {
    width: 140px;
    margin: 35px auto;
    position: relative;
    border-radius: 30px;
    }

    .toggle-btn {
    padding: 10px 30px;
    background: transparent;
    border: 0;
    outline: none;
    position: relative;
    font-size: 25px;
    }

    #btn {
    top: 0;
    left: 0;
    position: absolute;
    width: 200px;
    height: 100%;
    border-radius: 30px;
    font-size: 20px;
    cursor: default;
    }


    .input-group {
    top: 140px;
    width: 300px;
    transition: .5s;
    margin-right: 40px;
    }

    .input-field {
    width: 100%;
    padding: 10px 0;
    margin: 5px 0;
    border-left: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid #999;
    outline: none;
    background: transparent;
    }

    #login input[type=password] {
    margin-bottom: 50px;
    }
    #login{
    margin-right: auto;
    margin-left: auto;
    }
    .submit-btn {
    width: 85%;
    padding: 10px 30px;
    cursor: pointer;
    display: block;
    margin: auto auto 10px auto;
    background: var( --clr-linear);
    border: 0;
    outline: none;
    border-radius: 30px;
    font-size: 18px;
    }

    .checkbox {
    margin: 30px 10px 30px 0;
    }

    .input-span {
    color: #777;
    font-size: 12px;
    bottom: 68px;
    position: absolute;
    }

    #login {
    left: 50px;
    }

    #register {
    left: 450px;
    }

    .gender {
    font-size: 12px;
    color: #777;
    margin-top: 10px;
    margin-bottom: 15px;
    }

    #label-select, #label-month-select, #label-day-select {
    font-size: 12px;
    color: #777;
    padding: 0;
    margin: 0;
    }

    #year {
    width: 55px;
    text-align: center;
    color: #777;
    margin-left: 10px;
    border-radius: 5px;
    }

    #month, #day {
    width: 40px;
    text-align: center;
    color: #777;
    margin-left: 10px;
    border-radius: 5px;
    }

    .F-Lname {
    width: 100%;
    justify-content: space-between;
    display: flex;
    }

    .name {
    width: 45%;
    }

    .l-name {
    width: 45%;
    }

    *, *::before, *::after {
    box-sizing: border-box;
    }

    .modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: 200ms ease-in-out;
    border: 1px solid gray;
    border-radius: 10px;
    z-index: 100;
    background-color: white;
    width: 450px;
    max-width: 70%;
    }

    .modal-container.active {
    transform: translate(-50%, -50%) scale(1);
    }
    .title {
    padding: 10px 15px;
    display: flex;
    justify-content: right;
    align-items: center;
    width: 100%;
    }

    .close-button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-size: 1.25rem;
    font-weight: bold;
    }

    #overlay {
    position: fixed;
    opacity: 0;
    transition: 200ms ease-in-out;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0, .5);
    pointer-events: none;
    }

    #overlay.active {
    pointer-events: all;
    opacity: 1;
    }

    .date-div {
    display: flex;
    align-items: flex-end;
    }

    .homepage-login-button:hover {
    color: #a9d7de;
    }


    .options-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    }

    .menu-item {
    position: relative;
    display: inline-block;
    width: 150px;
    color: #a9d7de;
    }

    .menu-item a {
    color: dimgray;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    width: 300px;
    }

    .homepage-login-button:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    }

    .dropdown {
    position: absolute;
    list-style-type: none;
    background-color: aliceblue;
    padding: 0;
    margin: 0;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .dropdown li a {
    direction: ltr;
    text-align: left;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    width: 225px;
    height: 90px;
    }

    .dropdown li a:hover {
    background-color: #B0C4DE;
    }

    /* base styles */
    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    }


    a:hover {
    font-weight: bold;
    }
    li {
    padding: 5px;
    font-size: 35px
    }
    /* off-screen-menu */
    .off-screen-menu {
    background-color: aliceblue;
    height: 100vh;
    width: 16%;
    max-width: 250px;
    position: fixed;
    top: 0;
    right: -450px;
    display: flex;
    flex-direction: column;
    align-items: inherit;
    justify-content: center;
    text-align: right;
    font-size: 2.2rem;                       /* reduce from 3rem */
    transition: .5s ease;
    z-index: 100;
    }

    .off-screen-menu.active {
    right: 0;
    z-index: 100;
    }
    /* nav */
    .nav {
    padding: 1rem;
    display: flex;
    background-color: aliceblue;
    box-shadow: 0 1px 5px black;
    height: 100px;
    }
    /* ham menu */
    .ham-menu {
    height: 50px;
    width: 40px;
    margin-left: auto;
    position: relative;
    cursor: pointer;
    }

    .ham-menu span {
    height: 5px;
    width: 100%;
    background-color: #a9d7de;
    border-radius: 25px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
    }

    .ham-menu span:nth-child(1) {
    top: 25%;
    }

    .ham-menu span:nth-child(3) {
    top: 75%;
    }

    .ham-menu.active span {
    z-index: 101;
    }

    .ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    }

    .ham-menu.active span:nth-child(2) {
    opacity: 0;
    }

    .ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    }

    h1 {
    text-align: center;
    font-weight: bolder;
    font-size: 45px;
    }

    .subtitle {
    text-align: center;
    font-size: 35px;
    }

    .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 35px;
    }

    .card {
    background: white;
    width: 220px;
    height: 230px;
    margin: 0 25px 0 25px;
    border-radius: 15px;
    box-shadow: 10px;
    transition: transform 0.5s,background-color 0.5s,box-shadow 0.5s, font-size 0.3s
    }

    .card-image {
    height: 150px;
    margin-bottom: 15px;
    background-size: cover;
    border-radius: 15px 15px 0 0;
    }
    .card a {
    color: black;
    }
    /*.card a:hover{
    color:red
    }*/
    .card:hover {
    transform: scale(1.1);
    cursor: pointer;
    background-color: lightslategrey;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    font-size: 22px;
    }

    div h2 {
    text-align: center;
    }

    a:hover div {
    color: black;
    }

    section a div {
    color: black;
    }

    nav div:hover {
    cursor: pointer;
    }

    .homebutton {
    padding: 0;
    padding-top: 20px;
    padding-left: 20px;
    margin: 0;
    top: -7px;
    left: 0;
    position: absolute;
    color: #a9d7de;
    font-size: 40px;
    }

    .homebutton a {
    color: #a9d7de;
    }

    .homepage-login-button {
    padding: 0;
    padding-top: 20px;
    padding-left: 20px;
    margin: 0;
    top: -7px;
    left: 70px;
    position: absolute;
    color: #a9d7de;
    font-size: 40px;
    cursor: pointer;
    }

    .homepage-login-button a {
    color: #a9d7de;
    }
    .menu-items{
    margin-top: 15px;
    margin-bottom: 15px;
    }
    .menu-items a i {
    color: #a9d7de;
    margin: 10px 0;
    }
    .menu-items a {
    color: #a9d7de;
    }
    .menu-items:hover {
    background-color: whitesmoke;
    font-weight: bold;
    cursor: pointer;
    }

    .none-yet {
    transform: scale(0);
    z-index: -500000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* Adjusting both positioning and scaling */
    }

    .none-yet.active {
    transform: translate(-50%, -50%) scale(1);
    z-index: 25;
    height: 250px;
    width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    }

    #myDialog {
    margin: auto;
    width: 740px;
    height: 500px;
    z-index: 1000;
    justify-self: center;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    }

    .all {
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: -1;
    }

    #myDbtn {
    position: absolute;
    left: 0;
    background: white;
    font-size: 30px;
    width: 30px;
    height: 30px;
    border: none;
    outline: none;
    background-color: hsl(0, 0%, 80%);
    border-radius: 10px;
    }

    #myDbtn:hover {
    cursor: pointer;
    background-color: hsl(0, 0%, 90%);
    }

    #myDbtn:active {
    background-color: hsl(0, 0%, 95%);
    }

    .modalH1 {
    text-align: center;
    font-size: 35px;
    direction: rtl;
    }

    .btnSection {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    }

    .modalSection button {
    width: 100px;
    color: white;
    height: 50px;
    font-size: 15px;
    border-radius: 5px;
    background-color: #121111;
    border: 2px hsl(0, 21%, 2%);
    margin-top: 30px;
    margin-bottom: 35px;
    }

    .modalSection button:hover {
    cursor: pointer;
    background-color: hsl(0, 3%, 17%);
    }

    .modalSection button:active {
    background-color: hsl(0, 3%, 27%);
    }

    .serverComment {
    color: red;
    text-align: center;
    }

    .profile-cont {
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    }

    .profileContainer {
    width: 500px;
    padding: 20px;
    background-color: #eeeeee;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .profileDiv, .profileContainer div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px; /* Space between inputs */
    margin-bottom: 15px; /* Space between rows */
    }

    .profileLabel {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #333;
    }


    .changeBtn {
    display: block;
    margin: 0 auto; /* Center the button */
    padding: 10px 20px;
    background-color: #a9d7de;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    }

    .changeBtn:hover {
    background-color: #94a5ff;
    }

    .profileTextInput {
    width: 200px; /* Adjust the width of the text input */
    border-top: none;
    border-right: none;
    border-left: none;
    background: none;
    }

    .profileDate {
    width: 50px;
    text-align: center;
    color: #777;
    margin-left: 10px;
    border-radius: 5px;
    }

    .dialogContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh; /* full viewport height */
    width: 100vw; /* full viewport width */
    z-index: 9999; /* make sure it is on top of other elements */
    pointer-events: none; /* allow clicks to pass through */
    }

    dialog {
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    pointer-events: auto; /* enable clicks inside the dialog */
    }
    .options-menu .dropdown {
    will-change: opacity, transform;
    top: calc(100% + 6px); /* small gap so showing the dropdown doesn't collide with the trigger */
    }

    /* Reset large global LI/font-size for the dropdown only */
    .options-menu .dropdown li {
    padding: 0;
    font-size: 30px; /* reasonable size for menu items */
    box-sizing: border-box;
    }

    /* Make dropdown anchors stable: explicit line-height, no weight change on hover */
    .options-menu .dropdown li a {
    direction: ltr;
    text-align: left;
    padding: 10px 15px;
    display: block;
    width: 225px;
    height: 75px; /* remove fixed 90px height to avoid layout jumps */
    line-height: 1.3; /* consistent vertical spacing */
    font-weight: 400; /* keep normal weight by default */
    transition: background-color 150ms ease, color 150ms ease;
    box-sizing: border-box;
    }

    /* Prevent global a:hover bold from affecting dropdown layout */
    .options-menu .dropdown li a:hover {
    background-color: #B0C4DE;
    font-weight: 400; /* explicitly keep normal weight on hover */
    }

    /* Keep the profile trigger layout stable (icon area) */
    .homepage-login-button > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    line-height: 1;
    }

    /* רקע כהה שמכסה את המסך */
    .custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* חצי שקוף */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px); /* אפקט טשטוש לרקע */
    }

    /* הקופסה עצמה */
    .custom-modal-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-out;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* אייקון */
    .modal-icon i {
    font-size: 50px;
    color: #ff6b6b; /* צבע אדום עדין */
    margin-bottom: 15px;
    }

    .custom-modal-box h3 {
    margin: 10px 0;
    color: #333;
    font-size: 22px;
    }

    .custom-modal-box p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    }

    /* כפתורים */
    .modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    }

    .modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    }

    .modal-buttons button:hover {
    transform: scale(1.05);
    }

    .btn-exit-yes {
    background-color: #ff6b6b;
    color: white;
    }

    .btn-exit-no {
    background-color: #e0e0e0;
    color: #333;
    }

    @keyframes fadeIn {
    from {
    opacity: 0;
    transform: translateY(-20px);
    }

    to {
    opacity: 1;
    transform: translateY(0);
    }
    }

    /* ===== off-screen menu spacing & sizing fix ===== */
    /* Place items at the top (not vertically centered) and reduce font size to match nav */
    .off-screen-menu {
    justify-content: flex-start !important; /* was centered, causing large gap */
    padding-top: 64px;                       /* adjust to align under the hamburger/X */
    text-align: right;
    font-size: 1.6rem;                       /* reduce from 3rem */
    box-sizing: border-box;
    }

    /* Make the UL layout predictable inside the panel */
    .off-screen-menu ul {
    width: 100%;
    padding: 0 12px; /* horizontal inset */
    margin: 0;
    }

    /* Normalize menu item spacing */
    .off-screen-menu .menu-items,
    .off-screen-menu li {
    display: block;
    padding: 10px 0;
    margin: 0;
    font-size: inherit;
    line-height: 1.2;
    }
    .off-screen-menu .menu-items a,
    .off-screen-menu li a {
    display: block;
    padding: 8px 12px;
    color: inherit;
    text-decoration: none;
    }