body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #fff; /* Default light theme background */
    transition: background-color 0.3s, color 0.3s;
}
body.dark-theme {
    background-color: #222; /* Dark theme background */

}
#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 1s ease-in-out;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f3fbff; /* Default light theme header */
    padding: 3px 20px;
    color: #333;
    z-index: 1;
    transition: background-color 0.3s, color 0.3s;
}

header.dark-theme {
    background-color: #3f3c3c; /* Dark theme header */
    color: #fff;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo {
    max-height: 60px;
}

.website-name {
    font-size: 24px;
    font-weight: bold;
}

.login-container {
    font-size: 18px;
    display: flex;
    gap: 20px;
}

.login-link, .company-link {
    color: black;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.login-link.dark-theme, .company-link.dark-theme {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.login-link:hover, .company-link:hover {
    color: #7fec91;
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;

}

.login-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    opacity: 0;
    transform: translateY(-30px);
    animation: slideIn 1s forwards;
    animation-delay: 0.5s;
}

.login-box h2 {
    margin: 0 0 1.5rem;
    animation: fadeInText 1s ease-in-out;
}

.textbox {
    margin-bottom: 1rem;
}

.textbox input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.textbox input:focus {
    border-color: #007bff;
    outline: none;
}

.btn {
    width: 100%;
    padding: 10px;
    background: #007bff;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    box-sizing: border-box;
}

.btn:hover {
    background: #0056b3;
}

.signup-link {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.signup-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.signup-link a:hover {
    text-decoration: underline;
}

.social-login {
    margin-top: 1.5rem;
}

.social-login p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #555;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 10px;
    border-radius: 4px;
    color: black;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    box-sizing: border-box;
    border: 1px solid rgb(224, 222, 222);
}

.social-button img {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

.social-button.google {
    background: white;
}

.social-button:hover {
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.theme-toggle {
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.theme-toggle.dark-theme {
    background-color: #444;
    color: #030303;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}
/* Default button style (light theme) */
#theme-toggle {
    background-color: #000000; /* Light background for light theme */
    color: #ffffff; /* Dark text for light theme */
    border: 1px solid #ccc; /* Light border for light theme */
}
#theme-toggle.dark-theme {
    background-color: #ffffff; /* Light background for light theme */
    color: #000000; /* Dark text for light theme */
    border: 1px solid #ccc; /* Light border for light theme */
}
/* Dark theme button style */
body.dark-theme #theme-toggle {
    background-color: #fffbfb; /* Dark background for dark theme */
    color: #000000; /* Light text for dark theme */
    border: 1px solid #666; /* Darker border for dark theme */
}

#theme-toggle:hover {
    background-color:#7fec91; /* Darker hover color for button */
}

body.dark-theme #theme-toggle:hover {
    background-color:#7fec91;/* Darker border for dark theme */
}
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Default light theme background */
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s;
}

main.dark-theme {
    background-color: #333; /* Dark theme background */
}
#myCanvas {
    width: 100%;
    height: 100%;
    z-index: 0;
}
footer {
    background-color: #fff; /* Default light theme footer */
    color: #333;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 1;
    transition: background-color 0.3s, color 0.3s;
}
footer.dark-theme {
    background-color: #111; /* Dark theme footer */
    color: #fff;
}

.footer-content {
    font-size: 16px;
    font-weight: bold; /* Make font bold */
}

@media only screen and (max-height:500px){
    
    body{
        overflow:scroll;
    }
    h2{
        font-size:20px
    }
    .login-box{
        margin-top:30px;
    }
    
}
@media only screen and (max-width: 600px){
    .logo-link {
        display:flex;
        flex-direction:column;
    }
    .website-name {
        font-size: 10px;
    }
    .logo{
        max-width:50px;
    }

    .login-box{
        width:250px;
        height:400px;
    }
    #google-signin{
        font-size:15px;
    }
}
