:root {
    font-size: 62.5%;
    /* 1rem = 10px */
    --primary: #374f8a;
    /*#798BA7;*/
}

@media (max-width: 600px) {
    :root {
        font-size: 50%;
        /* 1rem = 8px */
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
}

html {
    height: 100%;
    overflow: auto;
}

body {
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.6rem;
    background: #fff;
    background-image: url(../img/bg.jpg);
    background-repeat: repeat;
    color: var(--primary);
    position: relative;
    overflow-x: hidden;

}

.bassad {
    font-size: 14px;
    text-align: right;
    margin: 0;
}

.floral-1 {
    position: absolute;
    top: 0;
    left: -15rem;

    max-width: 100%;
    opacity: 0.2;
    /* display: none; */
}

.floral-2 {
    position: absolute;
    bottom: 0;
    right: 0rem;
    transform: translateX(20rem);
    max-width: 100%;
    opacity: 0.2;
    text-align: right;
    /* display: none; */

}

.passuk {
    width: 100%;

    img {
        margin: auto;
    }
}

.small {
    font-size: 2.4rem;
}

.children {
    font-size: 1.2rem;
    display: block;
    line-height: 1rem;
}

#my_audio {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
}

#content_home {
    display: none;
}

#content_he,
#content_fr {
    display: none;
}

.audio_control.visible,
#content_fr.visible,
#content_he.visible,
#content_home.visible {
    display: block;
}

.audio_control {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: #ffffff;
    border: 1px solid var(--primary);
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    background-image: url(../img/speaker-high.svg);
    background-size: 2rem 2rem;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -999999px;
    display: none;
}

.audio_control.muted {
    background-image: url(../img/speaker-none.svg);
}

.audio_control:hover {
    background-color: var(--primary);
}


#content_fr.visible .fr {


    .floral-1 {
        opacity: 1;
        left: 0rem;
        transform: scale(1.3);
        animation: fadeRightEntrance 1s 0.3s forwards;
    }

    .floral-2 {
        opacity: 1;
        right: 0rem;
        transform: scale(1.3);
        animation: fadeLeftEntrance 1s 0.3s forwards;
    }

    .container {
        font-family: "Tangerine", cursive;
        font-weight: 400;
        font-style: normal;
        font-size: 4rem;
        opacity: 0;
        animation: fadeInEntrance 1s 0.8s forwards;
    }

    .separator {
        margin: 3rem auto;

    }

    .w_names {

        font-family: "Mea Culpa", cursive;
        font-weight: 400;
        font-style: normal;
        margin: 2rem 0;
    }

    .big {
        font-size: 6rem;
    }

    .parents {
        font-size: 3rem;
        margin-bottom: 2rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

form {
    position: relative;
}

#content_he.visible .he {
    font-family: "Bona Nova", serif;
    font-weight: 400;
    font-style: normal;
    direction: rtl;

    #form {
        text-align: right;
    }

    .floral-1 {
        opacity: 1;
        bottom: 0;
        top: auto;
        left: 0rem;
        transform: scale(1.3);
        animation: fadeRightEntrance 1s 0.3s forwards;
    }

    .floral-2 {
        opacity: 1;
        right: 0rem;
        bottom: auto;
        top: 0;
        transform: scale(1.3);
        animation: fadeLeftEntrance 1s 0.3s forwards;
    }

    .container {

        font-size: 3rem;
        opacity: 0;
        animation: fadeInEntrance 1s 0.8s forwards;
        margin: 3rem auto 6rem auto;
    }



    .w_names {


        font-weight: 700;
        font-style: normal;
        margin: 2rem 0;
    }

    .big {
        font-size: 5rem;
    }

    .parents {
        font-size: 2rem;
        margin-bottom: 2rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@keyframes fadeRightEntrance {
    to {
        opacity: 0.8;
        transform: scale(1) translateX(-20rem);
    }

}

@keyframes fadeLeftEntrance {
    to {
        opacity: 0.8;
        transform: scale(1) translateX(20rem);
    }
}

@keyframes fadeInEntrance {
    to {
        opacity: 1;
    }
}

.ea-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    z-index: 2;

    img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 250px;
        height: 250px;
    }
}

.EA-floral {
    animation: flip 1s ease-in-out forwards;

}

.ea {
    opacity: 0;
    animation: fadeIn 0.7s 1s linear forwards;
}

@keyframes flip {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scaleX(1);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scaleX(-1);
    }

}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

.separator {
    margin: 5rem auto 3rem auto;
    width: 50%;
}

.container {
    background-color: rgba(255, 255, 255, 0.7);

    padding: 2rem;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    /* height: 100%; */
    z-index: 3;
    width: 90%;
    max-width: 750px;
    margin: 3rem auto 3rem auto;
}

.ctas {
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    z-index: 3;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.7s 1.5s linear forwards;

    .btn {
        transform: translateY(250px);
    }
}

.btn {
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.6rem;
    background-color: #ffffff8f;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-align: center;
    flex: 1;
    cursor: pointer;


    &:hover {
        background-color: var(--primary);
        color: #ffffff;
    }
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;

    &:hover {
        background-color: white;
        color: var(--primary);
    }
}

.btn-submit {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;

    .loader {
        width: 30px;
        color: #ffffff;
    }
}

.btn-submit:hover .loader {
    color: var(--primary);
}

[type="submit"] {
    max-width: 200px;
    margin: auto;
}

.logo {
    width: 200px;
    margin: 0rem auto 1rem auto;
}

form {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.6rem;
    /* margin-top: 5rem; */
    text-align: left;
}

form {
    #nbr {
        opacity: 0;
        visibility: hidden;
    }

    p {
        margin-bottom: 1rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    g {
        display: flex;

        gap: 0.5rem;


    }

    textarea {
        text-decoration: none;
        padding: 1rem 2rem;
        border-radius: 5px;
        max-width: 300px;

        font-size: 1rem;
        border: 2px solid var(--primary);
        color: var(--primary);
        text-align: initial;
    }

    [type="text"] {
        max-width: 300px;
        width: 50%;
        text-decoration: none;
        padding: 1rem 2rem;
        border-radius: 5px;
        /* font-weight: bold; */
        font-size: 1.6rem;
        border: 2px solid var(--primary);
        color: var(--primary);
        text-align: center;
        font-size: 1rem;

    }

    [type="radio"]:checked+label {
        background-color: var(--primary);
        color: #fff;
        border: 2px solid var(--primary);
    }


    [type="radio"] {
        opacity: 0;
        visibility: hidden;
        width: 0;
    }
}

.waze_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin: 0 auto;
    padding: 0rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.6rem;
    border: 2px solid var(--primary);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--primary);
    transition: all 0.3s ease;
}

.waze_button:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.waze_icon {
    width: 3rem;
    height: 3rem;

}

.loader_wrapper {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff8f;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}

.loader_wrapper.visible {
    display: flex;
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 100px;
    aspect-ratio: 1;
    color: var(--primary);
    background:
        radial-gradient(circle at 60% 65%, currentColor 62%, #0000 65%) top left,
        radial-gradient(circle at 40% 65%, currentColor 62%, #0000 65%) top right,
        linear-gradient(to bottom left, currentColor 42%, #0000 43%) bottom left,
        linear-gradient(to bottom right, currentColor 42%, #0000 43%) bottom right;
    background-size: 50% 50%;
    background-repeat: no-repeat;
    position: relative;
}

.loader:after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    opacity: 0.4;
    animation: l3 1s infinite;
}

@keyframes l3 {
    to {
        transform: scale(1.8);
        opacity: 0
    }
}

.past {
    text-align: center;
    font-size: 1.2rem;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    margin: 3rem 0;
}

#name {
    text-align: initial;
}

.calendar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;

    a {
        text-decoration: none;
        color: var(--primary);
        font-size: 1rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        font-family: Arial, Helvetica, sans-serif;
    }

    img {
        width: 3rem;
        height: 3rem;
        vertical-align: middle;
        margin-right: 0.5rem;
    }
}