/*** Genral styling */

body
{ 
    background:white;
    color:#333;
    font-family:sans-serif;
    font-size:15px;
    line-height:2;
}

a
{
    text-decoration: none;
}

h1.title
{   
    background: #fefeef;
    color:sienna;
    font-size:20px;
    border-left: 3px solid sienna;
    border-right: 3px solid sienna;
    border-radius: 10px;
    margin: auto;
    padding: 10px;
    width: 50%;
}


/*** Error */

#error
{
    color:darkorange;
    width:100%;
    text-align:center;
    line-height:2;
}

/*** Banner */

#banner
{ 
    object-fit:fill;
    border:1px solid sienna;
    border-radius:10px;
    
}

@media(orientation: portrait)  
{   
   #banner
   { 
     object-fit:contain;
     height: auto;
   }
}

/*** Warning */

#warn
{
    background:white;
    color:#333; 
    border-radius:10px;
    font-family:sans-serif;
    font-size: 15px;
    border:2px dashed sienna;
    padding:20px 50px;
    margin-bottom:20px;
    width:auto;
}

h1.warn
{   
    background: orange;
    color:#fefeef;
    font-size:20px;
    border-radius: 10px;
    padding: 10px;
    margin: 20px;
}

/*** Advertissement */

#ad
{ 
    border:0;
    margin-bottom:20px;
    width:auto;  
}

/*** Site description */

#description
{
    background:white;  
    font-size:15px;
    font-family:sans-serif;
    text-align:justify;
    border:1px solid sienna;
    border-radius: 10px;
    margin-bottom:20px;
    padding:25px;
    width:auto; 
}

h1.d_title
{   
    background: #fefeef;
    color:sienna;
    font-size:20px;
    border-bottom: 3px solid sienna;
    border-radius: 10px;
    margin: auto;
    padding: 10px;
    width: 50%;
}

@media (max-width:768px) /* applied only to mobile phones */
{
   h1.d_title,h1.title
   {
      width:auto;
   }
}

/*** Teachers */


#teachers
{
    background:white;
    display: grid; 
    border:2px solid sienna; 
    border-radius: 10px;
    grid-gap: 30px;
    text-align: center;
    margin-bottom:20px;
    padding: 20px;
}

@media(orientation: portrait)     /* screen and max-aspect-ratio: 4/3) */   /* orientation: portrait */
{   
   #teachers
   {
      grid-template-columns: 1fr ;
   }
}

@media(orientation: landscape)      /* screen and (min-aspect-ratio: 4/3) */ /* orientation: landscape */
{    
   #teachers
   {
      grid-template-columns: repeat(3,1fr); 
   }   
}

/*** Teachers'pics, Location & Course category */

img.pic
{
    border-radius: 10px;
}

h4.loc
{
    color: #002907; /* darkgreen */
    text-align: center;
    font-family: Sans-Serif;
    font-size:15px;
}

h4.cat
{
    background:#fefeef;
    color:sienna;            
    text-align: center;
    font-family: Sans-Serif;
    font-size:14px;
    border-left: 5px solid sienna;
    border-radius: 5px;
    margin-bottom: 40px;
    padding-top:4px; 
    padding-bottom:4px; 
    width: auto;    
}

/*** Signup button */ 

#signup
{  
    background: #3aac8b;
    color:white; 
    font-weight:bold;
    border:none;
    border-radius:10px;  
    padding:15px;
    width:160px;
}

#signup:hover
{
   background: white;
   color:#3aac8b;
   border:1px solid #3aac8b;
   outline: none;
}