* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #fff8ea, #eee1c6);
    margin: 0;
    color: #3b2f2a;
    text-align: center;
    line-height: 1.6;
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    position: relative;
}

.left-side {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#logo img {
    height: 70px;
    width: auto;
}

#profile-menu img {
    height: 70px;
    width: auto;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-icon {
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 6px;
    z-index: 1;
}

.profile-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

#profile-menu {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#profile-menu .dropdown {
    top: 100%;
    margin-top: 5px;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 8px;
    min-width: 150px;
    text-align: left;
}

.dropdown a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-family: 'Handlee', cursive;
}

.dropdown a:hover {
    background: #f5f5f5;
}

#profile-menu:hover .dropdown {
    display: block;
}

#login-register {
    position: static;
    font-size: 1.2rem;
    text-align: left;
    line-height: 1.4;
}

#login-register div {
    margin: 3px 0;
}

#login-register a {
    font-family: 'Sawarabi Mincho', serif;
    text-decoration: none;
    color: #3b2f2a;
    font-weight: 300;
    transition: color 0.2s ease-in-out;
}

#login-register a:hover {
    color: #2e2420;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    margin: 0;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

h1 a {
    text-decoration: none;
    color: #3b2f2a;
    transition: color 0.2s ease-in-out;
}

h1 a:hover {
    color: #2e2420;
}

/* menu */
.menu {
    list-style-type: none;
    padding: 0;
    text-align: center;
    margin-top: 20px 0;
}

.menu li {
    display: inline-block;
    margin: 0 12px;
}

.menu li a {
    font-size: 1.5rem;
    font-family: 'Gochi Hand', cursive;
    text-decoration: none;
    color: #3b2f2a;
    font-weight: normal;
    padding: 8px 12px;
    position: relative;
    transition: color 0.3s ease;
}

.menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #2e2420;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu li a:hover {
    color: #2e2420;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.menu li a:hover::after {
    width: 100%;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 20px;
}

main h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    font-weight: 100;
    margin-bottom: 15px;
    color: #3b2f2a;
}

.description {
    font-family: 'Handlee', cursive;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
    color: #3b2f2a;
}

/* profile page */

.profile-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-family: 'Handlee', cursive;
    text-align: center;
}

.profile-container h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #3b2f2a;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f7f7f7;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    width: 100%;
    max-width: 350px;
}

.info-item label {
    font-weight: bold;
    color: #3b2f2a;
    margin-bottom: 6px;
}

.info-item span {
    font-family: 'Handlee', cursive;
    color: #3b2f2a;
}

.info-item.password-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f7f7;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1.1rem;
}

.info-item.password-row span {
    flex: 1;
    font-family: 'Handlee', cursive;
    color: #3b2f2a;
}

/* password container */
.password-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 6px 10px;
    width: 100%;
    max-width: 350px;
}

.password-container span {
    font-family: 'Handlee', cursive;
    color: #3b2f2a;
}

.password-container button {
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    background-color: #a78b5f;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.password-container button:hover {
    background-color: #8b6f45;
}

#toggle-password {
    margin-left: 10px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background-color: #a78b5f;
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

#toggle-password:hover {
    background-color: #8b6f45;
}

#time {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    margin-bottom: 8px;
    color: #333;
}

#date {
    font-family: 'Gochi Hand', cursive;
    font-size: 1.5rem;
    color: #333;
}

#footer {
    background: transparent;
    padding: 20px 0;
    font-family: 'Handlee', cursive;
    color: #3b2f2a;
    flex-shrink: 0;
    align-items: center;
    text-align: left;
}

#footer .footer-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

#footer p {
    margin: 5px 0;
    color: #3b2f2a;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: none;
}

#footer .footer-left,
#footer .footer-center,
#footer .footer-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

#footer .footer-center {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

#footer .footer-left,
#footer .footer-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

#footer p,
#footer .footer-left,
#footer .footer-right {
    font-size: 1rem;
    line-height: 1.2;
    margin: 2px 0;
    color: #3b2f2a;
}

#footer .footer-left {
    align-items: flex-start;
    text-align: left;
    font-size: 1rem;
    color: #3b2f2a;
}

#footer .footer-right {
    align-items: flex-end;
    text-align: right;
    font-size: 1rem;
    color: #3b2f2a;
}

#footer .footer-icon {
    width: 50px;
    height: auto;
    margin-left: 130px;
}

#footer a {
    color: #3b2f2a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

#footer a:hover {
    color: #2e2420;
}

@media screen and (max-width: 768px) {
    #footer .footer-inner {
        flex-direction: column;
        padding: 0 20px;
        gap: 15px;
    }

    #footer .footer-left,
    #footer .footer-center,
    #footer .footer-right {
        align-items: center;
        text-align: center;
    }

    .password-container button {
        margin-left: 5px;
    }

    .info-item, .password-container {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .info-item.password-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    #toggle-password {
        margin-left: 0;
    }

    .header {
        flex-direction: column;
        padding: 10px 20px;
    }

    .left-side {
        position: static;
        transform: none;
        margin-bottom: 10px;
        justify-content: center;
        gap: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    #login-register {
        text-align: center;
    }

    .menu li {
        display: block;
        margin-bottom: 8px;
    }
}