/* Header styling */
header {
    background: linear-gradient(135deg, #ff6f61, #ffcc00, #ff007f);
    color: #fff;
    padding: 1em 0;
    text-align: center;
}

.header-content {
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* To position the buttons absolutely */
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

.header-buttons {
    display: flex;
    gap: 10px;
    position: absolute; /* Position the buttons absolutely */
    right: 20px; /* Adjust the right position as needed */
}

/* Button styling */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.login-btn {
    background-color: #ff007f;
    color: white;
}

.signup-btn {
    background-color: #ff6f61;
    color: white;
}

.back-home-btn {
    background-color: #ffcc00;
    color: white;
    margin-top: 10px; /* Add some margin for spacing */
}

.btn:hover {
    opacity: 0.8;
    background: #ffcc00;
}

/* Existing CSS */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

nav {
    display: flex;
    justify-content: flex-start;
    background: #ff007f; /* Bright pink color */
    padding-left: 1em;
}

nav a {
    color: #fff;
    padding: 1em;
    text-decoration: none;
    text-transform: uppercase;
    margin-right: 0.5em;
    background: #ff6f61; /* Coral color */
    border-radius: 4px;
}

nav a:hover {
    background: #ffcc00; /* Bright yellow hover effect */
}

.passport-photo {
    position: absolute;
    top: -30px;
    right: 8px;
    width: 85px; /* Adjust the width as needed */
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #000;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.main-content, .home-section, .video-section, .courses-section, .about-section, .contact-section, .signup-section, .login-section {
    position: relative;
    transform: translateX(-100%);
    animation: slideIn 1s forwards;
}

h1 {
    animation: pulse 2s infinite;
}

ul li, h2, iframe, div h2 {
    animation: bounce 1s infinite;
}

.container {
    width: 80%;
    margin: 2em auto;
    padding: 1em;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh; /* Ensure the container takes full viewport height */
}

section {
    margin-bottom: 2em;
    text-align: left;
}

section h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #ff007f; /* Bright pink color */
}

section p {
    font-size: 1.2em;
    line-height: 1.5em;
    color: #333;
}

.video-section .video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.video-section iframe {
    width: 30%;
    height: 250px;
    margin-bottom: 1em;
    border: 5px solid #ff6f61; /* Coral border color for videos */
}

footer {
    text-align: center;
    padding: 1em 0;
    background: linear-gradient(135deg, #ffcc00, #ff007f, #ff6f61);
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    flex: 1;
    overflow-y: auto; /* Allows the form-container to scroll if content overflows */
}

.login-container {
    display: flex;
    width: 80%;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    background: #ffffff;
    padding: 20px;
    min-height: 100vh;
	margin: 2em auto;
    flex: 1;
    overflow-y: auto; /* Allows the form-container to scroll if content overflows */	
}


form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

form h2 {
    margin-bottom: 20px;
    color: #ff007f; /* Bright pink color */
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type='tel']
{
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form input[type="submit"] {
    background-color: #ff007f;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background-color: #cc0066;
}

/* New CSS for Multi-step Form */
.tab {
    display: none;
}

button {
    background-color: #ff007f;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 17px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #cc0066;
}

#prevBtn {
    background-color: #ffcc00;
}

.step {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbbbbb;
    border: none;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
    background-color: #ff007f;
}

.step.finish {
    background-color: #ff007f;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: -15px;
    margin-bottom: 15px;
}

.response-message {
    display: none;
    font-size: 14px;
    margin-top: 20px;
    font-weight: bold;
}

.response-message.success {
    color: green;
}

.response-message.error {
    color: red;
}

.loading-icon {
    display: none;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #ff007f;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin-top: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.buttons-container {
            display: none;
            margin-top: 20px;
        }

#signupAgainBtn {
        background-color: #ff007f; /* Set your desired background color */
        color: white; /* Set the text color */
        border: none; /* Remove the border */
        padding: 10px 20px; /* Add some padding */
        font-size: 14px; /* Set font size */
        cursor: pointer; /* Change cursor on hover */
        border-radius: 5px; /* Rounded corners */
        margin: 5px; /* Margin between buttons */
    }

#backHomeBtn {
        background-color: #ffcc00; /* Set your desired background color */
        color: white; /* Set the text color */
        border: none; /* Remove the border */
        padding: 10px 20px; /* Add some padding */
        font-size: 14px; /* Set font size */
        cursor: pointer; /* Change cursor on hover */
        border-radius: 5px; /* Rounded corners */
        margin: 5px; /* Margin between buttons */
    }

    /* Hover effect for buttons */
#signupAgainBtn:hover, #backHomeBtn:hover {
        background-color: #ffcc00; /* Darker shade on hover */
    }