:root {
    --main-width: 61vw;
    --color: #654417;
    --link-color: #A58264;
}

#hero {
    display: block;
}

#books {
    display: block;
}

#about {
    display: block;
}

#updates {
    display: block;
}

#contact {
    display: block;
}

body {
    direction: rtl;
    font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color);
    font-size: 16px;
    background-color: #FFF8EE;
}


a {
    color: var(--link-color);
    text-decoration: underline;
    font-weight: 500;
}

a:hover {
    color: var(--color);
    ;
}

#backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color);
    opacity: 0.5;
    z-index: 10;
    display: none;
}

#backdrop.visible {
    display: block;
}

.button {
    color: white;
    padding: 15px;
    border: 1px solid white;
    border-radius: 11px;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;

}

.button:hover {
    opacity: 1;
    transform: translateY(-2px);
}

a.button-wrap {
    text-decoration: none;
}

/* Navigation */
.nav-container {
    background-color: #FFF8EE;
    height: 76px;
    position: relative;
}

.nav-left {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding-top: 38px;
}

.nav-right {
    position: absolute;
    top: 0;
    right: 0;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-image {
    max-width: 74%;
    margin-top: 8px;
}

.hamburger-menu {
    display: none;
}

/* Sections */
section {
    min-height: 100px;
    margin-bottom: 60px;
    /* background-color: #FFF8EE; */
}

.section-title {
    font-size: 34px;
    font-weight: 200;
    text-align: center;
}

.section-subtitle {
    font-size: 22px;
    font-weight: 200;
    text-align: center;
}

.section-separator {
    height: 15px;
}

/* Hero Section */
#hero {
    margin-bottom: 0;
}

.hero-container {
    width: 100%;
    height: 487px;
    background-image: url('images/top-banner.png');
    background-size: contain;
    background-position: top right;
    background-repeat: no-repeat;
}

.hero-icons {
    padding: 20px;
}

.hero-icons img {
    transition: all 200ms ease-in-out
}

.hero-icons img:hover {
    transform: rotate(25deg);
}

.hero-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
}

.updates-button,
.hero-button {
    background: linear-gradient(135deg, #DB7FA5 0%, #A16ED9 100%);
    box-shadow: 0 4px 15px rgba(219, 127, 165, 0.3);
}

.updates-button:hover,
.hero-button:hover {
    box-shadow: 0 6px 20px rgba(219, 127, 165, 0.4);
}

/* Books Section */
.books-container {
    background-color: #fff;
    padding: 40px;
}

.books-container .book-button {
    background: #CCAF89;
    color: #fff;
    margin-top: 8px;
    opacity: 1;
}

.books-container .book-button:hover {
    opacity: 0.8;
}

.books-grid {
    display: flex;
    width: var(--main-width);
    margin: 0 auto;
    justify-content: center;
    gap: 80px;
    margin-top: 44px;
}

.book-card {
    display: flex;
    flex-direction: column;
    max-width: 350px;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.book-card h4 {
    font-weight: 200;
    font-size: 24px;
}

.book-card p strong {
    font-weight: 500;
}

.book-back {
    cursor: pointer;
    color: var(--link-color);
    text-decoration: underline;
    font-weight: 500;
}

.book-back:hover {
    color: var(--color);
    ;
}

.order-links {
    display: none;
    margin-top: 16px;
}

.order-links.visible {
    display: block;
}

.order-links-container {
    display: flex;
    gap: 16px;
}

.order-link {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 101px;
}

.dialog {
    border-radius: 16px;
    border: solid 1px var(--link-color)
}

.dialog .close {
    padding: 16px;
}

.dialog .close span {
    color: var(--color);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out;
}

.dialog .close span:hover {
    opacity: 1;
}

.dialog img {
    max-height: 90vh;
}

.dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

/* dialog {
    border: solid 1px pink;
    --duration: 0.34s;
    transition: translate var(--duration) ease-in-out,
        scale var(--duration) ease-in-out,
        filter var(--duration) ease-in-out,
        display var(--duration) ease-in-out allow-discrete;

}

dialog[open] {
    translate: 0 0;
    scale: 1;
    filter: blur(0);

    @starting-style {
        translate: 0 8vh;

        scale: 1.15;

        filter: blur(8px);

    }
}

dialog:not([open]) {
    translate: 0 -8vh;

    scale: 1.15;
    filter: blur(8px);
} */

/* About Section */

.about-container {
    width: 65vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.nekuda {
    background-color: #FFFFFF;
    border-radius: 50%;
    width: 370px;
    height: 370px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    padding: 40px 60px;
    line-height: 1.5;
}

.about-inbar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    right: -40px;
    line-height: 1.5;
}

.about-inbar .title {
    font-size: 20px;
    font-weight: 400;
}

.about-inbar img {
    width: 104px;
}

/* Updates Section */
.updates-container {
    background-color: #FFFFFF;
    width: 65vw;
    margin: 0 auto;
    padding: 16px 0;
    border-radius: 10px;
}

.parparim-container {
    position: relative;
    width: 309px;
    margin: 0 auto;
}

.parparim-container img {
    max-width: 60px;
}

.form {
    width: 420px;
    margin: 0 auto;
    padding-bottom: 24px;

}

.form-input-group {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: center;
    margin-top: 16px;
}

.form input {
    padding: 16px 20px;
    border: 1px solid #939190;
    border-radius: 11px;
    transition: border-color 0.3s ease;
    flex: 1;
    text-align: right;
    direction: rtl;
    background-color: #F3F2F3;
    color: #939190;
}

.form .message {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.form .message.hide {
    display: none;
}

.form .message.error {
    color: red;
}

.form .message.success {
    color: #A16ED9;
}

.material-symbols-outlined.join-icon {
    font-size: 20px;
}

/* Contact Section */
.contact-container {
    width: 65vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.contact-container img {
    margin-bottom: 8px;
}

/* Footer */
footer {
    width: 65vw;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

.separator {
    border-top: solid 1px #939190;
    height: 1px;
    margin: 8px 0;
}

/* .footer-container {
    border-top: solid 1px #939190;
    padding-top: 16px;
    font-weight: 100;
} */