/* Basic alignment for header elements */
.header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0px;
    background-color: #1c1c1c;
}
.start {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 53%;
    height: 100%;
}
.end {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    height: 100%;
}
.menu-icon-container {
    padding: 10px;
}
.menu-icon {
    cursor: pointer;
    width: 30px;
    height: 18px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.menu-icon span {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #fff;
}
.menu-icon span:nth-child(1) {
    top: 0;
    transition: all 0.3s;
}
.menu-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.menu-icon span:nth-child(3) {
    bottom: 0;
    transition: all 0.3s;
}
.menu-icon.open span:nth-child(1) {
    transform: rotate(44deg) translate(4px, 4.5px);
    transition: all 0.3s;
}
.menu-icon.open span:nth-child(2) {
    opacity: 0;
}
.menu-icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6.5px, -6px);
    transition: all 0.3s;
}
.logo {
    margin-left: 20px;
    margin-bottom: -6px;
    width: 11.2rem;
    height: auto;
}
.search-container {
    flex-grow: 1;
    margin-left: 20px;
}
.menu {
    display: flex;
    align-items: center;
    margin-left: 25px;
}
.menu ul {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu ul li a {
    margin-left: 20px;
    color: #aaa;
    font-size: 16px;
    text-decoration: none;
    font-family: "FontAwesome";
}
.menu ul li a:hover {
    color: #6735ae;
}
.language-switch {
    display: flex;
    margin-left: 10px;
}
.sign-in-btn-container {
    display: flex;
    gap: 25px;
}
.sign-in-btn {
    margin-left: 20px;
}

/* Hamburger Menu */
.hamburger-menu {
    position: absolute;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 10;
    border-radius: 0 0 5px 5px;
}
.hamburger-menu.open {
    max-height: 500px;
}
header.fixed .dropdown-menu {
    position: absolute;
    background-color: #0f0f0f;
    display: block;
    z-index: 10;
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.4s ease-in-out;
    border-radius: 0 0 5px 5px;
}
header.fixed .dropdown-menu.open {
    max-width: 532px;
}
.dropdown-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    width: -webkit-min-content;
    padding: 10px;
}
.dropdown-link.active {
    background-color: #0f0f0f;
}
header.fixed .dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
header.fixed .dropdown-menu ul li a {
    color: #fff;
    padding: 6px 10px;
    display: block;
    text-decoration: none;
    font-size: 14px;
    width: 120px;
}
.dropdown-link:after {
    content: "\23F5";
    font-size: 25px;
    position: absolute;
    right: 10px;
    top: 33%;
    margin-top: -12px;
    z-index: 10;
    color: #242424;
    font-weight: 900;
}
header.fixed .dropdown-menu ul li a:hover {
    background-color: #1c1c1c;
    border-radius: 5px;
}
.hamburger-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hamburger-menu ul li {
    position: relative;
}
.hamburger-menu ul li a {
    color: #fff;
    background-color: #1c1c1c;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
}
.hamburger-menu ul li a:hover{
    background-color: #0f0f0f;
}
.hamburger-menu ul li .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #1c1c1c;
    display: none;
    width: 200px; /* Adjust as needed */
    z-index: 11;
}
.hamburger-menu ul li .dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hamburger-menu ul li .dropdown-menu ul li a {
    color: #fff;
    padding: 10px;
    display: block;
    text-decoration: none;
}
.hamburger-menu ul li .dropdown-menu ul li a:hover {
    background-color: #333;
}
.hamburger-menu ul li.dropdown.active .dropdown-menu {
    display: block;
}

/* Search Bar */
.search-container {
    margin-top: 0px !important;
}
.search-icon-button-header {
    display: none;
}
@media screen and (max-width: 1264px) {
    .search-icon-button-header {
        display: block;
    }
    .search-icon-button-header.fa.fa-search {
        background-color: transparent;
        border: 2px solid transparent;
        color: #aaa;
        font-size: 20px;
    }
    .search-icon-button-header.fa.fa-search:hover {
        color: #6735ae;
    }
}

/* Popup request */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 50;
}
.header-popup {
    display: flex;
    align-items: center;
    background: #141414;
    padding: 0.8rem 1.6rem;
    margin: -20px -20px 20px -20px;
    border-radius: 5px 5px 0px 0px;
}
.header-popup h3 {
    margin: 0;
}
.popup-content {
    background-color: #1c1c1c;
    color: #777; 
    padding: 20px;
    border-radius: 5px;
    width: 350px;
    max-width: 100%;
    position: relative;
}
.popup-content p {
    font-size: 14px;
    padding: 10px 0px 25px 0px;
}
.close-popup {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 25px;
    top: 10px;
    right: 15px;
    margin: 0 0 0 auto;
    cursor: pointer;
}
.close-popup:hover {
    color: #aaa;
}
.imput-submit-btn-container {
    display: flex;
    flex-direction: column;
}
.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .9rem;
    font-size: .8rem;
    font-weight: 400;
    line-height: 1.5;
    color: #aaa;
    background-color: #212121;
    background-clip: padding-box;
    border: 1px solid #303030;
    border-radius: 5px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.input-bar.form-control {
    margin-bottom: 1rem;
}
.submit-btn {
    padding: .5rem 1rem;
    font-size: .9rem;
    line-height: 1.1rem;
    border-radius: .3rem;
    width: 100%;
    color: #fff;
    background-color: #5a2e98;
    border: 1px solid #5a2e98;
}
.submit-btn:hover {
    color: #fff;
    background-color: #6735ae;
    border: 1px solid #6735ae;
}

/* external mneu */
.language-switch {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}
#language-switch-EN {
    border-radius: 5px 0 0 5px;
    border-right-width: 1px !important;
    border: 2px solid #171717;
}
#language-switch-JP {
    border-radius: 0 5px 5px 0;
    border-left-width: 1px !important;
    border: 2px solid #171717;
}
.language-switch>button {
    padding: 0 4px;
    font-weight: 600;
    background-color: #292929;
    color: #aaa;
    cursor: pointer;
    height: 21px;
    line-height: 21px;
    box-sizing: content-box;
    display: inline-block;
    border-right-width: 0;
    transition: all .2s;
}
.language-switch>button:hover {
    background-color: #6735ae;
}
.language-switch>button.active {
    color: #1c1c1c;
    background-color: #aaa;
}
.header-search-popup {
    display: none;
}
.menu-mobile {
    display: none;
}
#sign-in-btn::after {
    content: 'Sign in';
}

/* Popup styles sign in */
.popup {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}
.popup-content-sign-in {
    display: flex;
    background-color: #1c1c1c;
    margin: auto;
    padding: 20px;
    width: 600px;
    height: 450px;
    max-width: 90%;
    border-radius: 5px;
    position: relative;
    color: #aaa;
}
.close-popup-sign-in {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 25px;
    top: 10px;
    right: 15px;
    color: #777;
    cursor: pointer;

}
.close-popup-sign-in:hover, .close-popup-sign-in:focus {
    color: #aaa;
    text-decoration: none;
    cursor: pointer;
}
.popup-body-sign-in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.popup-image-sign-in {
    margin-bottom: 20px;
}
.popup-image-sign-in img {
    max-width: 100%;
    height: auto;
}
.icon-sign-in-imput {
    padding-right: 5px;
    padding-left: 10px;
    position: absolute;
    line-height: 3rem;
    width: 3rem;
    color: #666;
    font-size: 15px;
}
#popup-form-content-sign-in h2 {
    margin-top: 0;
    color: #fff;
}
#popup-form-content-sign-in p.subtitle {
    color: #777;
    margin-bottom: 20px;
    font-size: 14px;
}
#popup-form-content-sign-in form {
    width: 100%;
}
#popup-form-content-sign-in form .form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    border-radius: 5px;
}
#popup-form-content-sign-in form .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
}
#popup-form-content-sign-in form .form-group input {
    width: 100%;
    padding: 10px 10px 10px 30px;
    background-color: #212121;
    border: 1px solid #303030;
    border-radius: 5px;
    color: #aaa;
    font-size: 14px;
}
#popup-form-content-sign-in form .form-group input::placeholder {
    color: #666;
}
#popup-form-content-sign-in form .form-group input:focus {
    outline: none;
    border: 1px solid #4a4a4a;
}
#popup-form-content-sign-in form .btn-primary {
    width: 100%;
    padding: 10px;
    background-color: #5a2e98;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
#popup-form-content-sign-in form .btn-primary:hover {
    background-color: #6735ae;
}
#popup-form-content-sign-in .text-link {
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
}
#popup-form-content-sign-in .text-link:hover {
    color: #6735ae;
}
#register-link {
    color: #5a2e98 !important;
}
#sign-in-link {
    color: #5a2e98 !important;
}
#register-link:hover {
    color: #6735ae !important;
}
#sign-in-link:hover {
    color: #6735ae !important;
}
#popup-form-content-sign-in .bottom-text {
    font-size: 0.85rem;
    margin-top: 20px;
    text-align: center;
}

/* Desktop Style 1600px */
@media screen and (max-width: 1600px) {
    .menu ul li a {
        font-size: 14px;
    }
    .start {
        width: 48%;
    }
    .hamburger-menu ul li a {
        font-size: 15px;
    }
}
@media screen and (max-width: 1264px) {
    #search-bar-desktop {
        display: none;
    }
    .start {
        width: auto;
        display: flex;
        justify-content: flex-start;
    }
    .header-search-popup {
        display: none;
        background-color: transparent;
        height: 50px;
    }
    .menu ul {
        gap: 15px;
    }
}

/* Tablet Style */
@media screen and (max-width: 895px) {
    .menu {
        display: none;
    }
    .menu-mobile {
        display: block;
    }
    .end {
        flex-grow: 0;
    }
    .logo {
        margin-bottom: -8px;
        width: 10rem;
        height: auto;
    }
    .search-icon-button-header.fa.fa-search:hover {
        color: #aaa;
    }
    .popup-content-sign-in {
        display: block;
        width: 100%;
        height: 65vh;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    .popup-body-sign-in {
        grid-template-columns: 1fr;
        height: 100%;
    }
    .popup-image-sign-in {
        display: none;
    }
}

/* Mobile Style */
@media screen and (max-width: 550px) {
    .menu-icon {
        width: 20px;
        height: 17.6px;
    }
    .menu-icon span {
        height: 2.5px;
    }
    .logo {
        margin-left: 7px;
        margin-bottom: -6px;
        width: 7.5rem;
        height: auto;
    }
    .search-popup {
        width: 100.3%;
    }
    .search-icon-button-header.fa.fa-search {
        font-size: 16px;
    }
    .sign-in-btn-container {
        gap: 15px;
    }
    #sign-in-btn::after {
        content: 'Sign in';
    }
    .dropdown-columns {
        grid-template-columns: 1fr;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 418px;
        width: 150px;
    }
    .hamburger-menu ul li a {
        font-size: 12px;
    }
    header.fixed .dropdown-menu ul li a {
        color: #fff;
        padding: 6px 10px;
        display: block;
        text-decoration: none;
        font-size: 12px;
        width: fit-content;
    }
    header.fixed {
        background: #1c1c1c;
        margin-top: 0;
        position: relative;
    }
}

@media screen and (max-width: 355px) {
    .dropdown-columns {
        grid-template-columns: 1fr;
    }
}