@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: Inter;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

#root,
#__next {
    isolation: isolate;
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}

body {
    margin: 0;
    /* background-color: #171722; */
}

body.no-scroll {
    overflow: hidden;
}

.header-container {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
    margin-top: 30px;
}

.header {
    max-width: 1200px;
    height: 70px;
    display: flex;
    margin: 0 auto;
    padding: 5px 40px;
    border-radius: 10px;
    background-color: #171722;

    .logo {
        width: 30%;
        height: 100%;
        display: flex;
        align-items: center;


        img {
            width: 150px;
            height: 50px;
        }
    }

    .details {
        width: 50%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        color: white;

        a {
            margin-right: 20px;
            text-decoration: none;
            color: white;
            transition: all 0.3s ease;

            &:hover {
                color: #CF983E;
            }
        }

        i {
            color: #CF983E;
        }

    }

    .buttons {
        width: 40%;
        height: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;

        a {
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .login {
            color: white;
            border: 1px solid #CF983E;
            padding: 5px 20px;
            border-radius: 5px;
            margin-right: 10px;

            &:hover {
                color: #CF983E;
            }
        }

        .apply {
            background-color: #CF983E;
            color: #171722;
            padding: 5px 20px;
            border-radius: 5px;
            border: 1px solid #CF983E;

            &:hover {
                color: white;
            }
        }
    }

    .font-icon {
        width: 5%;
        height: 100%;
        display: none;
        justify-content: center;
        align-items: center;

        i {
            color: #CF983E;
            font-size: 24px;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
    }

    .font-icon i.fa-times {
        transform: rotate(180deg);
    }
}

.dropdown {
    width: 100%;
    position: fixed;
    top: 70px;
    left: 0;
    background-color: #171722;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 40px;
    transition: max-height 0.5s ease, padding 0.3s ease, opacity 0.3s ease;
    z-index: 100;

    a {
        text-decoration: none;
    }

    .details {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;

        a {
            margin-bottom: 30px;
            text-decoration: none;
            color: white;
            transition: all 0.3s ease;

            &:hover {
                color: #CF983E;
            }
        }

        i {
            color: #CF983E;
        }

    }

    .buttons {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 30px;

        a {
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .login {
            color: white;
            border: 1px solid #CF983E;
            padding: 5px 20px;
            border-radius: 5px;

            &:hover {
                color: #CF983E;
            }
        }

        .apply {
            background-color: #CF983E;
            color: #171722;
            padding: 5px 20px;
            border-radius: 5px;
            border: 1px solid #CF983E;

            &:hover {
                color: white;
            }
        }
    }
}

.dropdown.open {
    max-height: 500px;
    opacity: 1;
    padding: 20px 40px;
}

.overlay {
    position: fixed;
    top: 70px; 
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 90;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}