body {
    margin: 0;
    font-family: monospace;
    background-color: #0d0d0d;
    color: white;
}

.homepage-container {
    margin-top: 2.5rem;
    text-align: center;
}

nav {
    margin: 1.5rem auto;
    width: 70%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
    padding: 1rem 1.5rem;
    border-radius: 40px;
    border: 2px solid transparent;
    background: linear-gradient(#0d0d0d, #0d0d0d) padding-box,
                linear-gradient(90deg, #413e3e, darkslategray, lightslategray, #413e3e) border-box;
}


.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-buttons button, button {
    font-family: monospace;
    padding: 0.5rem 1rem;
    border: none;
    background-color: #333333;
    color: #ffffff;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 30px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
}

.nav-buttons button {
    margin-left: 1rem;
}

.nav-buttons button:hover, button:hover {
    background-color: #555555;
    box-shadow: 0 0 5px rgba(85, 85, 85, 0.5);
}

.button {
    gap: 12px;
}

.button button {
    background-color: #555555;
}

.hl-button, .nav-buttons .hl-button {
    background-color: #9370DB;
    color: white;
}

.hl-button:hover, .nav-buttons .hl-button:hover {
    background-color: #7A5DCF;
    box-shadow: 0 0 5px rgba(122, 93, 207, 0.5);
}

.google-button:hover {
    background-color: lightgray;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.google-button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.google-button img {
    height: 20px;
    width: 20px;
    margin-right: 8px;
}

.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #1f1f1f;
    color: white;
    padding: 2rem;
    border-radius: 30px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.popup-buttons button {
    font-family: monospace;
    margin: 1rem 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-buttons .default-button {
    background-color: #333333;
    color: white;
}

.popup-buttons .default-button:hover {
    background-color: #555555;
}

.popup-buttons .highlighted-button {
    background-color: violet;
    color: white;
}

.popup-buttons .highlighted-button:hover {
    background-color: darkviolet;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.1s ease;
}

.close-button:hover {
    color: red;
}

input[type="file"]::file-selector-button {
    font-family: monospace;
    border-radius: 30px;
    padding: 0 16px;
    height: 40px;
    cursor: pointer;
    background-color: #333333;
    color: white;
    border: 1px solid rgba(0, 0, 0, 0.16);
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
    margin-right: 16px;
    transition: background-color 0.4s;
  }
  
  input[type="file"]::file-selector-button:hover {
    background-color: #555555;
  }
  
  input[type="file"]::file-selector-button:active {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  }

.divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
}
.divider .line {
    flex: 1;
    height: 1px;
    background-color: #333333;
}
.divider .or-text {
    margin: 0 10px;
    font-size: 14px;
    color: white;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem auto;
    width: 90%;
    max-width: 600px;
    padding: 1rem;
    background-color: #1a1a1a;
    border-radius: 30px;
}

.message-item {
    background-color: #333333;
    padding: 1rem;
    border-radius: 20px;
    color: white;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.06);
}

.message-item h3 {
    margin: 0;
    font-size: 1.2rem;
}

.message-item p {
    margin: 0.5rem 0;
}

.button:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

.account-item {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-picture {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #555555;
}

.account-buttons {
    display: flex;
    gap: 1rem;
}

.homepage-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem; 
    margin-top: 2rem;
}

@media (max-width: 750px) {
    body {
        font-size: 14px;
        overflow-x: hidden;
    }

    .nav-container {
        flex-direction: column;
        width: 100%;
        padding: 1rem;
        border: none;
        margin-bottom: 8rem;
    }

    .logo {
        display: none;
    }

    .nav-buttons {
        display: flex;
        flex-direction: column;
        margin-top: 1rem;
        width: 100%;
    }

    .nav-buttons button {
        margin-left: 0;
        margin-bottom: 1rem;
        width: 100%;
        height: 40px; 
        font-size: 1rem;
    }

    .homepage-container {
        margin-top: 3rem;
        padding: 0 1rem;
    }

    .homepage-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .profile-picture {
        display: none;
    }

    .close-button {
        width: 30px;
        height: 30px;
    }

    button {
        width: 100%;
        height: 40px; 
        font-size: 1rem;
    }

    .popup-container {
        padding: 0 1rem;
        width: 90%;
    }

    .popup-content {
        width: 90%;
    }

    .messages-container {
        width: 90%;
        padding: 0;
    }

    .message-item {
        padding: 0.8rem;
    }

    .message-item h3 {
        font-size: 1.1rem;
    }

    .message-item p {
        font-size: 0.9rem;
    }

    .account-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .account-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .profile-picture {
        width: 70px;
        height: 70px;
    }

    input[type="file"]::file-selector-button {
        width: 100%;
        padding: 0.5rem;
        margin-right: 0;
    }

    .divider {
        flex-direction: column;
        align-items: center;
    }

    .divider .line {
        width: 50%;
    }
}
