* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #222831;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Raleway', sans-serif;
}

h1 {
    animation: fadeInDown 1.5s ease-in-out;
}

header {
    animation: fadeInUp 2s ease-in-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#titleHead {
    background-color: transparent;
    width: 100%;
    position: relative;
    padding: 10px;
    margin-left: 10px;
    text-align: center;
    letter-spacing: 30px;
    font-size: 30px;
    color: #393e46;
    margin-top: 100px;
    text-shadow: #ffffff;
}

header {
    background-color: #393e46;
    opacity: 0.3;
    width: 60%;
    padding: 10px 5px;
    text-align: center;
    margin: 0;
    border-radius: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    justify-content: space-around;
    margin-top: 100px;
    margin-bottom: 80px;
}

header h1 {
    color: white;
    letter-spacing: 25px;
}

header:hover {
    opacity: 0.5;
    transform: scale(1.02);
}

header ul {
    list-style: none;
}

header ul a {
    color: #ffffff;
    font-size: 1.5em;
    letter-spacing: 8px;
    text-decoration: none;
    font-weight: 500;
}

header ul a:hover {
    color: #00ADB5;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

h2 {
    font-family: 'Raleway', sans-serif;
    letter-spacing: 20px;
    margin-bottom: 20px;
    color: #00ADB5;
    text-align: center;
    font-weight: 500;
}

.profile-container {
    width: 100%;
    max-width: 700px;
    padding: 40px;
    background-color: #393E46;
    box-shadow: 0 8px 20px rgba(0, 173, 181, 0.4);
    border: #00ADB5 solid 2px;
    border-radius: 20px;
    text-align: center;
    margin-top: 30px;
}

.user-info {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.user-info img {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.user-info p {
    font-size: 1em;
    color: white;
    letter-spacing: 4px;
    font-family: 'Raleway';
    font-weight: 300;
}

.dropdown {
    margin-bottom: 10px;
}

.dropdownButton {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: #00ADB5 solid 1px;
    color: white;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
    font-family: 'Raleway';
    letter-spacing: 5px;
    font-weight: 500;
    transition: transform 0.3 ease-in-out;
    margin-top: 10px;
}

.dropdownButton:hover {
    transform: scale(1.03);
}

.dropdownContent {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: transparent;
    border: 1px solid #00ADB5;
    border-radius: 15px;
    margin-top: 5px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: white;
    font-family: 'Raleway';
    font-weight: 500;
    letter-spacing: 3px;
}

input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #00ADB5;
    border-radius: 8px;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #00ADB5;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.7;
    font-family: 'Raleway';
    letter-spacing: 1px;
    font-weight: 400;
    margin-top: 10px;
}

button[type="submit"]:hover {
    opacity: 1;
}

#passwordMessage {
    color: red;
    text-align: center;
    margin-top: 10px;
}

.deleteHistoryButton {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Raleway';
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 77, 79, 0.4);
    margin-bottom: 10px;
}

.deleteHistoryButton:hover {
    background-color: #e63946;
    transform: scale(1.05);
}

.deleteHistoryButton:active {
    background-color: #c62828;
    transform: scale(1);
}

#logoutButton {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

#logoutButton:hover {
    background-color: darkred;
    transform: scale(1.05);
}

#logoutButton:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background: transparent;
    color: white;
    font-family: 'Raleway';
    font-weight: 200;
    margin-bottom: 5px;
    padding: 8px;
    border-radius: 4px;
}

footer {
    background-color: transparent;
    height: 20%;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    color: #393e46;
    margin-bottom: 50px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .profile-container {
        padding: 20px;
        width: 90%;
    }

    header {
        width: 80%;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
        letter-spacing: 10px;
    }

    .user-info img {
        height: 80px;
        width: 80px;
    }

    .dropdownButton,
    input[type="password"],
    button[type="submit"],
    #logoutButton,
    .deleteHistoryButton {
        width: 100%;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding: 15px;
        width: 100%;
    }

    header {
        width: 100%;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
        letter-spacing: 5px;
    }

    .user-info img {
        height: 60px;
        width: 60px;
    }

    .dropdownButton,
    input[type="password"],
    button[type="submit"],
    #logoutButton,
    .deleteHistoryButton {
        width: 100%;
        padding: 8px;
        font-size: 12px;
    }
}
