:root {
    --primary-color: #151544;
    --border-radius: 5px;
    --font-family: 'Arial', sans-serif;
}

html, body {
    min-height: 100vh;
    background-color: white;
    font-family: 'Poppins', sans-serif;
    line-height: 28px; /* Add unit here */
    color: rgb(52, 52, 92);
}

header {
    display: flex;
    flex-direction: column; /* Change to column for mobile view consistency */
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: rgb(52, 52, 92);
    padding: 10px; 
}


h1{
    color:white;
}
img {
    width: 100px;
    height: auto;
    padding: 10px;
}
nav {
    max-width: 700px;
    margin:1rem auto;
}
/* mobile view */
#menu{
    display:block;
    font-size:2rem;
    text-decoration: none;
    background-color: white;
    position:absolute;
    top:1rem;
    right:1rem;
}
#menu::before{
    content:"☰";
}
#menu.open::before{
    content:"☓";
}

.navigation{
    display:flex;
    flex-direction: column;
    justify-content: center;
    background-color: white;
    box-shadow: 0 0 20px rgb(187, 180, 177);
    list-style: none;
    color:rgb(52, 52, 92);
    
}
.navigation a{
    display: none;
    padding: 10px;
    text-align:center;
    text-decoration: none;
    color:rgb(52, 52, 92);
}
.navigation a:hover, .navigation a:active{
    background-color:rgb(52, 52, 92);
    color:white;
    font-weight: 700;
}
/*open navigation */
.open a{
    display: block;
}

main {
    display: flex;
    flex-direction: column;
    margin:0 auto;
    padding: 20px;
}
/* form  */
h1.header{
    color: rgb(52, 52, 92);
    margin: 1rem 2% 1rem 2%;
}
.course-form fieldset{
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding:.5rem 2%;
}
.course-form label{
    display: block;
    padding-top: 1rem;
    color: rgb(52, 52, 92);
    font-size: .9rem;
}
.course-form input[type="text"],
.course-form input[type="email"]{
    background-color: #eee;
    display:block;
    border:solid 1px #999;
    border-radius: 6px;
    padding: .75rem;
    color:#555;
    width:100%;
    max-width: 400px;
    appearance:none;
}
#r {
	width: 400px;
	margin-bottom: 0;
}

#rangevalue {
	font-size: 1rem;
	color:  rgb(52, 52, 92);
}

#rangevalues {
	display: flex;
	margin: 0 0 0 20px;
	width: 425px;
}

#rangevalues option {
	flex: 1 1 auto;
}
.course-form input[type="submit"]{
    border: none;
    background-color:  rgb(52, 52, 92);
    color: white;
    border-radius: 6px;
    padding: .8rem;
    width: 400px;
    margin: 1rem 2% 4rem 2%;
    box-shadow: 1px 1px 4px #999;
}


/* footer */

footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;
     background-color: rgb(52, 52, 92);
     padding: 0.75em;
 }
 footer a{
     text-decoration: none;
     color:white;
 }
 footer a:hover {
     color: yellow;
 }
 footer p{
     margin: 5px;
 }
 footer p a:hover{
     text-decoration: underline;
 }
 footer .info{
     display: flex;
     flex-direction: column;
     align-items: center;
     width: 100%;  
     color: white;
 }
 footer .social-links{
     display: flex;
     flex-direction: row;
     gap:5px;
 }
 footer .social-links a{
     display: flex;
     flex-direction: row;
     justify-content: center;
     align-items: center;
 }
 footer .social-links img{
     width: 30px;
     height: 30px;
 }
 #flag-wa {
     width: auto;
     height: 30px;
 }
 .copyright{
     display: flex;
     flex-direction: row;
     align-items: center;
     gap: 10px;
     color:white
 }
 footer p{
     color: white;
 }

 /* MEDIA QUERY LARGER VIEW*/
 @media screen and (min-width: 780px) {
    a#menu{
      display: none;
    }
    .navigation{
      display: flex;
      flex-direction: row;
    }
   .navigation a {
      display: flex;
  
    }
    
      footer .info{
          display:flex;
          flex-direction: row;
          justify-content:center;
    
      }
      
  } 