*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    height: 100%;
    overflow-y: hidden;
}

body {
    background-image: url('../images/bg-wood.jpg');
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.main {
    max-width: 1200px;
    width: 90%;
    height: 100%;
    margin: 0 auto;
    padding: 4% 20px;

    background-image: url('../images/home.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;

    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.ebook-form__title {
    font-family: 'Gveret Levin AlefAlefAlef';
    font-size: clamp(20px, 16vw, 120px);
    color: #d50000;
}

.ebook-form__subtitle {
    color: #d50000;
    margin-bottom: 10%;
}

.books {
    width: 200px;
}

.books .book {
    cursor: pointer;
}

.books .book input[type="checkbox"] {
    display: none;
}

.books .book img {
    width: 100%;
}

.books .slick-list {
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.books .slick-prev:before, 
.books .slick-next:before {
    color: #000000;
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    row-gap: 10px;
    flex-wrap: wrap;
}

.buttons .button {
    display: inline-block;
    padding: 10px 30px;
    background-color: #F57D3C;
    border-radius: 999px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 300ms ease-in-out;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.buttons .button:hover {
    transform: scale(1.05);
}

.buttons .button input[type="checkbox"] {
    /* Green tick */
    width: 20px;
    height: 20px;
    accent-color: #4CAF50;
}

@media (max-width: 768px) {
    .main {
        width: 100%;
    }

    .buttons .button {
        padding: 8px 20px;
        font-size: 14px;
    }

    .buttons .button input[type="checkbox"] {
        /* Green tick */
        width: 15px;
        height: 15px;
        accent-color: #4CAF50;
    }
}

/* Main Nav */
.main-nav {
    position: fixed;
    top: 10%;
    left: 0;
    width: 60px;
    height: auto;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}


.main-nav li {}

.main-nav a {
    display: block;
    background: green;
    color: #fff;
    padding: 10px;
    line-height: 1;
    border-radius: 0 10px 10px 0;
    transition: all 300ms ease-in-out;
}

.main-nav a:hover {
    transform: translateX(4px) scale(1.02);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.main-nav svg {
    --width: 40px;
    width: var(--width);
    height: var(--width);
    line-height: 1;
}


@media (max-width: 768px) {
    .main-nav {
        width: 40px;
    }
    
    .main-nav a {
        padding: 5px;
        border-radius: 0 5px 5px 0;
    }

    .main-nav a:hover {
        transform: translateX(2px) scale(1.02);
    }

    .main-nav svg {
        --width: 30px;
        width: var(--width);
        height: var(--width);
        line-height: 1;
    }
}


/* Ebook page */
.ebook {
    position: relative;

    max-width: 1200px;
    width: 90%;
    height: auto;
    margin: 0 auto;

    display: flex;
    justify-content: center;
    align-items: center;
}

.ebook img {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.ebook .play {
    position: absolute;
    bottom: 2%;
    left: 0;
    right: 0;
    z-index: 99999;
    margin-left: auto;
    margin-right: auto;
    width: 80px;
    height: 80px;
    border-radius: 100%;
    border: none;
    backdrop-filter: blur(24px);
    background: #ffffffb5;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.ebook .play svg {
    --size: 50px;
    width: var(--size);
    height: var(--size);
    color: #b71c1c;
    padding-left: 3px;
}