* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #F0F1F0;
}

a {
    transition: 300ms ease;
}

#desktop-nav {
    background-color: #561C24;
    height: 10vh;
}

.logo {
    font-size: 1.5rem;
    color: #F0F1F0;
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 5%;
}

.logo:hover {
    color: #F0F1F0;
}

.logo img:hover {
    filter: brightness(0.8); 
}

nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    top: 0
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a {
    color: #F0F1F0;
    text-decoration: none;
}

a:hover {
    color: #F0F1F0;
    text-decoration: underline;
    text-underline-offset: 1rem;
}
/* Hamburger Navigation */
#hamburger-nav {
    display: none; /* Hidden by default for larger screens */
    height: 70px;

}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px; 
    background-color: #F0F1F0;
    transition: all 0.3s ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #561C24; 
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px; 
    text-align: center;
    font-size: 1.5rem;
    color: #F0F1F0; 
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.menu-links a:hover {
    color: #561C24;
    background-color: #F0F1F0;
}

.menu-links li {
    list-style: none; 
}

.menu-links.open {
    max-height: 300px; 
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

/*Profile Homepage*/
#desktop-layout {
    overflow: hidden; 
    position: relative; 
    width: 100vw; 
}

.photo-container {
    position: relative;
    width: 100vw;
    height: 90%;
    margin-bottom: 0;
    display: flex;
    justify-content: center; 
    align-items: center; 
}
  
.photo-container img {
    width: 90%;
    height: 90%;
    object-fit: cover; 
    z-index: 1; 
}
  
.profile-button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #561C24;
    color: #F0F1F0;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 25px;
    text-align: center;
}

.profile-button:hover {
    background-color: #6D2932; 
}
  
.profile-description {
    margin-top: 10px;
    font-size: 1rem;
    width: 100%;
}
  
  /* Left and Right sections for Desktop */
.left-section, .right-section {
    position: absolute;
    width: 20%;
    transform: translateY(-30%);
    z-index: 3; 
    display: flex;
    flex-direction: column;
}
  
.left-section {
    left: 5%;
    top: 53%;
    align-items: flex-end;
}
  
.left-section .profile-description {
    text-align: right; 
}
  
.right-section {
    right: 20%;
    top: 48%;
    flex-direction: column; 
    align-items: flex-start;
}
  
.right-section .profile-description {
    text-align: left;
}

  /* Mobile Home*/
.mobile-mateo .profile-button,
.mobile-salvador .profile-button {
    margin-top: 30px; 
}

.mobile-mateo img,
.mobile-salvador img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.mobile-name {
    font-size: 4rem;
    margin-bottom: 10px;
    text-align: center;
 }

.profile-description p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

  
 /*Quiz Home*/

 #quiz-section {
    background-color: #561C24; 
    color: #F0F1F0; 
    padding: 40px;
    text-align: center;
    height: 100%;
}

#quiz-section h2 {
    font-size: 4rem;
    color:  #F0F1F0; 
    margin-top: 5%;
    margin-bottom: 5%;
}

.quiz-description {
    font-size: 1.2em;
    color: #F0F1F0; 
    margin-bottom: 30px;
}

.quiz-content {
    text-align: center;
    margin-bottom: 20px;
}

#question-mark {
    font-size: 10rem;
    color: #F0F1F0;  
    animation: bounce 1s infinite;
}

#quiz-info h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #F0F1F0;  
}

#start-quiz-btn {
    margin-top: 20px;
    margin-bottom:20px ; 
    padding: 12px 24px;
    font-size: 1.2em;
    background-color: #F0F1F0; 
    border: none;
    color: #6D2932;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
}

#start-quiz-btn:hover {
    background-color: #561C24;
    color: #F0F1F0;
}

/* Animation for the Question Mark */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Challenge Yourself Page */
  
.quiz-page {
    margin-top: 40%; 
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.container {
    text-align: center;
    width: 80%;
    max-width: 800px;
    color: #561C24;
    max-height: 90vh;
    padding: 1rem;
}

#user-name {
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #561C24; 
    background-color: #F0F1F0; 
    color: #561C24;  
    box-sizing: border-box;
}

#quiz-title {
    padding-bottom: 2rem;
}
  
.quiz-button {
    background-color: #561C24;
    color: #F0F1F0;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px;
    font-size: 18px;
}
  
.quiz-button:hover {
    background-color:  #6D2932;
}

#question-image {
  width: 100%; 
  max-height: 300px; 
  object-fit: contain; 
  margin-bottom: 10px;
}
  
.progress-container {
    background-color:  #F0F1F0;
    width: 100%;
    height: 10px;
    margin-top: 20px;
    position: relative;
    border: 1px #561C24 solid;
}

#indicator {
    padding-top: 20px;
    font-weight: bold;
}
  
.progress-bar {
    height: 100%;
    background-color: #561C24;
    width: 0;
    transition: width 0.5s;
  }
  
.progress-number {
    position: absolute;
    top: 20px;
    right: 0;
    font-size: 16px;
    color: #6D2932;
}
  
#quiz-screen, #end-screen {
    display: none;
}
  
#question-text {
    font-size: 24px;
    margin-bottom: 20px;
}
  
#message {
    font-size: 20px;
    margin-top: 20px;
    color: #561C24; 
}
  
#next-button {
    display: none;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contact Form Section */
#contact-form-section {
    width: 100%; 
    height: 100vh; 
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;  
    align-items: center;  
    background-color:  #F0F1F0;  
}

.contact-form {
    width: 90%;  
    max-width: 1000px;  
    padding: 20px;
}

.contact-form-heading {
    color: #561C21;
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #561C21;
}

.contact-form input[type="email"],
.contact-form textarea, .contact-form input[type="text"]{
    width: 100%;  
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #561C24; 
    background-color: #F0F1F0; 
    color: #561C24;  
    box-sizing: border-box;
    margin-left: 10px;  
    margin-right: 10px;  
}

.contact-form textarea {
    min-height: 120px;  
    color: #561C24;
}

.contact-form .radio-options {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #561C21;
}

.contact-form input[type="radio"] {
    margin-right: 8px;
}

.contact-form button {
    background-color: #561C21;
    color: #F0F1F0;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    width: 100%;
    transition: 0.3s;
}

.contact-form button:hover {
    background-color: #6D2932;
}

#about-title {
    text-align: center;
    margin-top: 30px;
    color: #561C21;
    font-size: 5rem;
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.team-member {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 300px;
    height: 500px;
    margin: 20px;
    padding: 10px 15px;
    border: 2px solid #561C21;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #561C21;
    color: #F0F1F0;
}

#mateo-container {
    margin-left: 10%;
}

#salvador-container {
    margin-right: 10%;
}

.team-member img {
    width: 100%;
    border-radius: 30%;
    height: auto;
    max-width: 150px;
    object-fit: contain;
}

.team-member .personal-info {
    text-align: center;
}

.team-member .social-media {
    display: flex;
    justify-content: center;
    margin-top: 10px;   
    width: 100%;
}

.social-icon {
    background-color: #F0F1F0;
    color: #561C21;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.social-icon:hover {
    background-color: #f1c6c6;
    color: #561C21;
}

.about-logo {
    margin: auto;
    width: auto;
    height: auto;
}

.about-logo img {
    width: 300px;
    height: auto;
    border-radius: 20px;
    border: #561C21 2px solid;
}

.team-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.personal-info h3, .personal-info p {
    text-align: center;
    margin-top: 10px;
    color: #F0F1F0;
    font-size: 1rem;
}
