@import url("https://fonts.googleapis.com/css2?family=Covered+By+Your+Grace&family=Host+Grotesk:ital,wght@0,300..800;1,300..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Schoolbell&display=swap");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: "Host Grotesk", sans-serif;
}

body {
    width: 100vw;
    min-height: 500px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ccc;
}

main {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    margin-top: 20px;
    border-radius: 10px;
}

.account-details {
    width: 100%;
    text-align: center;
}

.account-details h1 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #0f1823;
}

.account-info {
    text-align: left;
    margin-bottom: 20px;
}

.account-info p {
    font-size: 1em;
    margin-bottom: 10px;
    color: #333;
}

.btn-edit, .btn-reset-password, .btn-delete, .btn-delete-confirm {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    color: #eee;
    background: #0f1823;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-edit:hover, .btn-reset-password:hover, .btn-delete:hover, .btn-delete-confirm:hover {
    background: #333;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1000;
    display: none;
}

.popup.active {
    display: block;
}

.popup-content {
    padding: 20px;
    text-align: center;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.popup-header h2 {
    font-size: 1.5em;
    color: #0f1823;
}

.popup-header .close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

.popup-body {
    text-align: left;
}

.popup-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.popup-body input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 0.5px solid #eee;
    border-radius: 7px;
    margin-bottom: 15px;
}

.popup-body input:focus {
    border: 0.5px solid #333;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: calc(100% - 40px); /* Adjust width to make space for the icon */
    padding-right: 40px; /* Add padding to the right to avoid overlap with the icon */
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.toggle-password img {
    width: 20px;
    height: 20px;
}

.btn-save {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    font-weight: bold;
    color: #eee;
    background: #0f1823;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-save:hover {
    background: #333;
}

.hidden {
    display: none;
}

@media (max-width: 650px) {
    main {
        width: 90%;
        padding: 10px;
    }

    .account-details h1 {
        font-size: 1.2em;
    }

    .account-info p {
        font-size: 0.9em;
    }

    .btn-edit, .btn-reset-password {
        font-size: 0.9em;
    }

    .popup {
        width: 90%;
    }

    .popup-header h2 {
        font-size: 1.2em;
    }

    .popup-body label {
        font-size: 0.9em;
    }

    .popup-body input {
        font-size: 0.9em;
    }

    .btn-save {
        font-size: 0.9em;
    }
}