/*   ************variables*********** */
:root{
    --obcmaroon:#83003f;
    --obcblue:#20419a;
    --obcyellow:#FFDD01;
    --obcsilver:#D9D9D9;
}
*{
    box-sizing: border;
}


@font-face {
    font-family: Inter;
    src: url(fonts/Inter/Inter-VariableFont_opsz\,wght.ttf);
}

@font-face {
    font-family: 'Merriweather Sans';
    src: url(fonts/Merriweather_Sans/MerriweatherSans-VariableFont_wght.ttf);
}

/* *******RESET********** */
main{
    background-color:#ffffff;
}
body, p, ul, li{
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: Inter;
}
h2{
    margin: 0;
}
body{
     background-color: var(--obcsilver);
     max-width: 1200px;
     margin: auto;
    
}
li{
    list-style-type: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    
}

/* **********BASE STYLES********** */
h1{
    font-family: 'Inter';
    font-style: italic;
    font-weight: 500;
    font-size: 2.2em;
}
h2{
    font-size: 1.5em;
}
section{
    margin:0px 30px;
    overflow: hidden;
    
}
p{
    margin-bottom:10px;
    line-height: 1.2em;
}
/* ***************Header and Nav*********** */
header{
background: #20419A;
background: linear-gradient(0deg,rgba(32, 65, 154, 1) 12%, rgba(52, 82, 161, 1) 40%, rgba(139, 153, 191, 1) 61%, rgba(217, 217, 217, 1) 77%, rgba(255, 255, 255, 1) 96%);
position: relative;

}


nav ul {
    color:#FFDD01;
    font-weight: 600;
}


#navigation{
    position:relative;
}
#mobilenav{
	color:var(--obcyellow);
	text-align:right;
	padding-right: 20px;
    
}

#mobilenav h2{
    text-align:right;
    line-height:50px;
}
#mainnav {
    width:160px;
    text-align: right;
    padding: 0 20px 5px 0px;
    position:absolute;
    background-color: #20419a;
    z-index: 2;
    right:0;
    top:160px;
    font-size: 20px;
   

}
#signup{
    background-color: #FFDD01;
    color: #20419a;
    font-weight: 600;
    padding: 5px 10px;
    margin-top: 20px;
  
   border-radius: 10px;
   position: absolute;
   border-bottom: 0px;
   left:50px;
    
}

/* 
*****hero section and What is is section **** */
#hero{
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}
#hero img{
    margin-bottom: 0 px;
}
#hero h1{
    color:var(--obcsilver);
    position: absolute;
    width: 50%;
    margin-left: 25px;
    line-height: 1.15em;
}

/* *****WHO, What it is and what to expect SECTIONs*** */
#whatitis>div{
    margin-bottom:20px;
}

.yellow{
    background-color: var(--obcyellow);
    width:90%;
    margin: auto;
    padding: 15px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.343);
    border: 1px solid black;
}

#boxcontainer div{
    
    border:2px solid var(--obcblue);
    margin: auto;
    padding:10px 15px;
    height: 200px;
    margin:20px auto;
    box-shadow: 0px 2px rgba(0, 0, 0, 0.349);
    
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
}

#who{
margin: 0;
width: 100%;
background: #ffffff;
background: linear-gradient(180deg,rgba(255, 255, 255, 1) 3%, rgba(217, 217, 217, 1) 15%, rgba(32, 65, 154, 1) 30%, rgba(49, 80, 160, 1) 45%, rgba(52, 82, 161, 1) 54%, rgba(139, 153, 191, 1) 68%, rgba(217, 217, 217, 1) 83%, rgba(255, 255, 255, 1) 96%);  
    
}

#who div{
    margin: 30px 0;
    width: 80%;
    padding:0 15px; 
}
#who article h3{
    margin: 20px 0px 5px 0px;
}
#runners{
    color:var(--obcsilver)
}
  #swimmers{
        color:var(--obcsilver)
    }
#expect{
    margin-top: 50px;
    
}
#expect h2{
    margin-bottom: 10px;
}
#imgunder{
    position: relative;
    z-index: -1;
    top:-20px;
}

/* ******Section "after" and Below****** */
#after{
    background-color: white;
    margin: -25px 0px 0px 0px;
    padding: 10px 20px;;
   
}
#after img{
  width: 100%;
  
}
#grey{
    background-color: var(--obcsilver);
    width: 80%;
    margin: auto;
    position: relative;
    top:-50px;
    padding: 15px;
    border:1px solid black;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.308);
    z-index: 2;
}
#grey ol li{
     list-style-type:decimal;
     margin:10px;}

#contact{
    position: relative;
 
    margin:0;
    bottom: 700px;
    
    
    
}
#contact div{
background: #20419A;
background: linear-gradient(0deg,rgba(32, 65, 154, 1) 22%, rgba(52, 82, 161, 1) 40%, rgba(139, 153, 191, 1) 61%, rgba(217, 217, 217, 1) 77%, rgba(255, 255, 255, 1) 96%);
height: 220px;
padding-top: 700px;

}

#contact div p{
    width:80%;
    margin: auto;
    color: var(--obcsilver);
    font-size: 28px;
    text-align: center;  
}
#contact div p:nth-child(1){
    width: 70%;
    padding-bottom: 10px;
}
#contact div a{
    color:var(--obcsilver);
   
    text-decoration:none;
    
}

/* ************FOOTER********* */
footer {
background: #20419A;
background: linear-gradient(180deg,rgba(32, 65, 154, 1) 19%, rgba(52, 82, 161, 1) 41%, rgba(139, 153, 191, 1) 64%, rgba(217, 217, 217, 1) 83%, rgba(255, 255, 255, 1) 96%);
display: grid;
grid-template-columns: 1fr 1fr;
color: var(--obcyellow);
padding: 10px 20px;
position: relative;
top:-702px;
}


#logo{
grid-column:1/3;
align-self: center;
margin: auto;
}

/* *****RESPONSIVE****** */
@media screen and (min-width: 500px){
   

    #mobilenav{
        display:none;
    }

    #mainnav{
        box-sizing: border-box;
        position: static;
        width: 100%;
        /* margin-bottom: px; */
    }
    #mainnav ul{
        display: flex;
        justify-content: start;
    }
    #mainnav ul li{
        flex: 1;
        
    }
    #mainnav ul li a{
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        text-align: center;
    }
    h1{
        font-size:2.5em;
        padding-top: 20px;
    }
    #who div{
        max-width: 100%;
        margin: 50px auto;
    }
    #boxcontainer{
        width: 80%;
        margin: auto;
    }
    #who{
        width: 100%;
        margin: 30px auto;
    }
    #contact div{
        padding-top:500px ;
    }
    #signup{
       position: absolute;
       left:70%;
       top:30%;
    }
}

@media screen and (min-width:720px) {
       h1{
        font-size:3.5em;
        padding-top: 20px;
    }

    #whatitis h2{
        text-align: center;
        margin:20px;
    }

    #whatitis div:nth-child(2){
        column-count: 2;
        /* margin-bottom: 15px; */
    }
    #boxcontainer{
        width: 80%;
        margin: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap:20px;
        margin: 30px auto;
    }
    #boxcontainer div{
        margin: 0;
    }
    #after img{
        
    }
   
    
}

@media screen and (min-width: 960px){
    #grey{
        top:-220px;
    }
     #who div article{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    #who div article h3{
        grid-column: span 2;
        font-size:2em;
    }
    #who div article p{
        padding: 5px 10px 0px 0px;
    }
    #swimmers{
        color:var(--obcsilver)
    }

    #who{
        background: #ffffff;
background: linear-gradient(180deg,rgba(255, 255, 255, 1) 6%, rgba(217, 217, 217, 1) 25%, rgba(32, 65, 154, 1) 40%, rgba(49, 80, 160, 1) 50%, rgba(52, 82, 161, 1) 70%, rgba(139, 153, 191, 1) 75%, rgba(217, 217, 217, 1) 83%, rgba(255, 255, 255, 1) 96%);  
    
    }
    #expect h2{
        font-size: 1.8em;
        padding: 0 25px;
    }
    #after h2{
        font-size: 1.8em;
    }

}

@media screen and (min-width: 1200px){
    h2{
        font-size: 2.5em;
        margin-bottom: 15px;
    }

    #boxcontainer div{
        height: auto;
    }
   
    #who div img{
        grid-row: span 2;

    }

       #who div article{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows:minmax(50px, auto);
        grid-column-gap:10px;
        align-items: center;
        grid-template-areas: 
        "h3 img"
        "par img";
    }
    #who div article h3{
      grid-area:h3;
         
    }

    #who div article img{
        grid-area: img
    }
    #who div article p{
        grid-area:par;
    }
    #who h2{
        font-size: 2.5em;
        margin-bottom: 15px;
    }
}

@media screen and (min-width:1200px){
    .yellow{
        column-count: 2; 
        font-size:1.4em;
    }
    .yellow ol>li{
        margin-bottom: 10px;
    }
    #grey>div{
        column-count: 2;
    }
    #grey>p{
        margin-left:30px;
        font-weight: bold;
    }
    
}


    











