body {
    margin: 0px;
    font-family: "Montserrat";
    overflow-x: hidden;
}

.container {
    display: flex;
    gap: 40px;
    padding-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #f4f4f4;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    box-shadow: 0 5.296551704406738px 11.92px rgba(0, 0, 0, 0.25);
}

a {
    text-decoration: none;
    color: black;
}

a:not(.mail):hover {
    color: #AD163A;
}

.container div:nth-child(5) {
    padding-top: 25px;
    margin-right: 5px;
}

.ideabook {
    background-color: #AD163A;
    border-radius: 5px;
    color: white;
    padding: 8px;
    margin-top: 10px;
    border: none;
    font-weight: 600;
    font-family: "Montserrat";
}

.ideabook:hover {
    background-color: white;
    color: #AD163A;
}

.logo {
    width: 40px;
    position: absolute;
    top: 8px;
    padding: 5px;
    margin-left: 50px;
}

#hamIcon {
    display: none;
    width: 0px;
}

.subscription-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: #fff;
    width: 1000px;
    height: 1000px;
    padding: 20px;
    text-align: center;
}

.subscription-form.active {
    display: block;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.overlay.active {
    display: block;
}


.dropdownContent {
    display: none;
    list-style: none;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    font-size: small;
    z-index: 2;
}

.dropdownItem {
    display: block;
    height: 30px;
}

.dropdownItem:hover {
    background-color: rgb(255, 255, 255);
}

.show-dropdown {
    display: flex;
    flex-direction: column;
    padding: 15px;
    position: absolute;
    background-color: rgb(255, 255, 255);
    height: fit-content;
    width: fit-content;
    list-style: none;
    box-shadow: 0px 0px 10px rgb(168, 167, 167);
    border-radius: 5px;
    margin-top: 10px;
    margin-left: -50px;
}

@media (max-width: 1200px) {
    .container {
        gap: 18px;
    }

    .container div:not(:nth-child(5)) {
        display: none;
    }

    .logo {
        margin-top: 0px;
        margin-left: 50px;
    }

    #hamIcon {
        display: block;
        position: absolute;
        width: 30px;
        margin-top: 10px;
        margin-left: 90%;
        cursor: pointer;
        z-index: 90;
    }

    #textPara {
        display: none;
        cursor: pointer;
        position: absolute;
        margin-top: -500px;
        margin-left: 90%;
        cursor: pointer;
        font-size: large;
    }

    .container.dropdown {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .container.dropdown>div:nth-child(1) {
        margin-top: 40px;
    }

    .container.dropdown div:nth-child(5) p {
        padding: 0px;
        display: none;
    }

    .container.dropdown div:nth-child(5) .logo {
        margin-top: -280px;
    }

    .container.dropdown div:nth-child(5) {
        margin-top: -50px;
    }

    .container.dropdown div:nth-child(9) {
        margin-bottom: 20px;
    }

    .container.dropdown .logo {
        display: block;
        margin-top: -100px;
        z-index: 10;
        margin-left: -20px;
    }

    .container.dropdown div {
        display: block;
        position: relative;
    }

    .container.dropdown #hamIcon {
        display: none;
    }

    .container.dropdown #textPara {
        display: block;
    }

    .dropdownItem li {
        text-align: center;
        padding-bottom: 10px;
    }

    .show-dropdown {
        position: absolute;
        background-color: rgb(255, 255, 255);
        margin-top: -160px;
        margin-left: 120px;
    }
}

footer {
    display: flex;
    justify-content: space-between;
    background-color: #f5f5f5;
    align-items: center;
    padding: 20px;
    gap: 10px;
}

.left {
    margin-left: 5%;
    text-align: left;
}

.right {
    margin-right: 5%;
    text-align: right;
}

.center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center img {
    margin: 0 10px;
}

.right span {
    color: #00b6f4;
}

.right span:hover {
    text-decoration: underline;
}

.icons {
    display: inline;
    width: 20px;
    height: 20px;
    padding: 10px;
}

@media (max-width: 840px) {
    footer {
        flex-direction: column;
        text-align: center;
        font-size: 12px;
    }

    .left,
    .right {
        margin: -10px;
        padding: 0px;
    }

    .left {
        order: 2;
    }

    .right {
        order: 2;
        font-size: 10px;
    }

    .center {
        order: 1;
        padding-top: 5px;
    }

    .icons {
        padding: 0px;
        width: 15px;
    }
}