:root {
    --primary-color: white;
    --secondary-color: #f0f0f0;
    --text-color: black;
    --indigo-text: #4b0082;
}

.darkmode {
    --primary-color: black;
    --secondary-color: rgb(22, 22, 22);
    --text-color: white;
    --indigo-text: #6800b3;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    display: none;
}

a {
    text-decoration: none;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Urbanist', serif !important;
    /* Default font for English */
    display: flex;
    justify-content: center;
    align-items: center;
}

body[dir="rtl"] {
    font-family: 'Noto Naskh Arabic', serif !important;
    /* Font for Arabic */
}

.coloring {
    background: var(--secondary-color);
    color: var(--text-color);
}

.indigoDarkMode {
    color: var(--indigo-text);
}

#phone {
    border-radius: 0 5px 5px 0 !important;
    margin-bottom: 0 !important;
    width: inherit;
}

.input-group {
    margin-bottom: 1rem;
    flex-wrap: unset !important;
}

[dir="rtl"] .custom-dropdown {
    border-radius: 0 5px 5px 0 !important;
}

.custom-dropdown {
    cursor: pointer;
    position: relative;
    height: 100%;
    border: 2px solid transparent;
    background-color: var(--indigo-text);
    border-radius: 5px 0 0 5px;
    padding: 0.55rem;
}

.selected-country {
    width: max-content;
}

.custom-dropdown:focus {
    outline: none;
}

.selected-option {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none !important;
    margin-bottom: 0 !important;
    color: white;
}

.arrow {
    font-size: 12px;
}

.options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--secondary-color);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    width: max-content;

}

.option {
    padding: 10px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.option:hover {
    background-color: var(--primary-color);
}

/* Signup Form Container */
.signup-container {
    background: var(--primary-color);
    width: 450px;
    padding: 2rem;
    border-radius: 15px;
}

.signup-container h1 {
    color: var(--indigo-text);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#signupForm input {
    margin-bottom: 1rem;
    padding: 0.50rem;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 1rem;
    transition: ease-in-out 0.3s border-color;
    background: var(--secondary-color);
    caret-color: var(--text-color);
}

#signupForm input:focus {
    border-color: var(--indigo-text);
    outline: none;
}

#signupForm input[type="number"]::-webkit-outer-spin-button,
#signupForm input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#signupForm input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--secondary-color) inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    /* Adjust text color */
    border-color: var(--indigo-text);
}

small {
    display: block;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #7c7c7c;
    text-align: start;
}

/* Discord Button */
.discord-button {
    background: #4b0082;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: ease-in-out 0.3s all;
}

.discord-button:hover {
    background: #6800b3;
}

/* Sign Up Button */
.signup-button {
    background: #4b0082;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: ease-in-out 0.3s all;
}

.signup-button:hover {
    background: #6800b3;
}

/* Notification Styling */
.notification {
    position: fixed;
    top: 5%;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    max-width: 300px;
    z-index: 1000;
    animation: fade-in 0.2s ease-in-out;
}

.notification.error {
    background-color: #e74c3c;
    color: white;
}

.notification.success {
    background-color: #2ecc71;
    color: black;
}

.notification a.link {
    color: #7200c4;
    text-decoration: none;
    cursor: pointer;
}

.signup-container .loginpage {
    margin-top: 16px;
}

.signup-container .loginpagelink {
    text-decoration: none;
    cursor: pointer;
    color: var(--indigo-text);
    font-weight: bold;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}