@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

*{
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
}
html{
  font-size: 10px;
}
body{
  background-color: #F3F6FA;
  margin: 0;
}
ul, li{
  list-style-type: none;
  padding: 0;
  margin: 0;
}
/* Main styles */
main{
  margin-left: 300px;
}
main h2{
  padding: 2rem 0 0;
}
a:hover, 
a:focus{
  text-decoration: none;
}
:root{
  --primary: #0052E9;
  --dark: #333;
  --grey: #666;
  --light: #ffffff;
  --online: #5DF888;
  --offline: #FF4949;
  --away: #F1C836;
}
/* background helper classes */
.bg-primary{
  background-color: var(--primary);
}
.bg-online{
  background-color: var(--online);
}
.bg-offline{
  background-color: var(--offline);
}
.bg-away{
  background-color: var(--away);
}
/* text helper classes */
.text-primary{
  color: var(--primary) !important;
}
.text-dark{
  color: var(--dark) !important;
}
.text-grey{
  color: var(--grey) !important;
}
.text_light{
  color: var(--light) !important;
}
.text-small, 
.text-normal{
  font-weight: 500;
}
.text-large, 
.text-larger{
  line-height: 2em;
  font-weight: 800;
}
.text-small{
  font-size: 1rem;
  line-height: 1.2em;
}
.text-normal{
  font-size: 1.2rem;
  line-height: 1.5em;
}
.text-large{
  font-size: 1.2rem;
}
.text-larger{
  font-size: 1.6rem;
}
.text-bold{
  font-weight: 700;
}
/* general styles */
section > div:first-of-type{
  padding-bottom: 1.5rem;
}
input[type="checkbox"]{
  cursor: pointer;
}
.modal .viewAll-btn{
  opacity: .9;
  transition: .2s ease;
  border: 1px solid var(--primary);
}
.modal .viewAll-btn:hover,
.modal .viewAll-btn:focus{
  background-color: #fff;
  color: var(--primary);
}
.modal .close svg{
  font-size: 3rem;
}
.modal .close:focus{
  outline: none;
}
.modal-header{
  border-bottom: 0;
  padding: 2rem;
}
h2 + div{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 10rem;
  margin-bottom: 5rem;
}
figure{
  text-align: center;
  margin: 0;
}
figure .profile-img{
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
}
figure figcaption{
  padding-top: 1rem;
}
figure + div{
  display: inline-flex;
}
.functionButtonsWrapper{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.functionButtonsWrapper h2 {
  padding: 0;
}
.functionButtonsWrapper > div{
  display: inline-flex;
  flex-direction: row;
  margin: 0;
  align-items: center;
  justify-content: space-between;
  width: 50%;
}
.functionButtonsWrapper > div button{
  flex-grow: 1;
}
.functionButtonsWrapper > div form{
  flex-grow: 1;
}
.functionButtonsWrapper > div form input{
  background-color: #fafafa;
  border:0.5px solid var(--grey);
  outline: none;
}
.bio-wrapper{
  padding: 3rem 0;
}
.bio-wrapper .cardWrapper{
  align-items: flex-start;
}
.bio-wrapper .cardWrapper > div{
  flex-basis: 48%;
  margin: 1rem;
}
.cardWrapper > div{
  flex-grow: 1;
  flex-basis: 30%;
  overflow-x: auto;
}
.cardWrapper{
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.card{
  width: 100%;
  position: unset;
  border: none;
  min-width: unset;
  flex-direction: column;
  overflow-x: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-evenly;
  flex-grow: 1;
  flex-basis: 30%;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 1.5rem;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.06), 
              0px -4px 6px rgba(0, 0, 0, 0.04), 
              0px 0px 1px rgba(0, 0, 0, 0.04);
}
.cardWrapper .card span{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.heading,
.row{
  overflow-x: auto;
  white-space: nowrap;
  margin: 1rem 0;
}
.row{
  width: 100%;
  border: 1px solid #D1E1FE;
  border-radius: 4rem;
  cursor: pointer;
}
.card a:focus{
  outline: none;
 }
.card a:focus .row,
.row:hover{
  border-color: var(--primary);
  background-color: #f3f6fa;
}
.viewAll-btn{
  border: none;
  border-radius: 4rem;
  outline: none;
  background-color: #0052E9;
  cursor: pointer;
  color: #fdfdfd;
  padding: 1.5rem 4rem;
  margin: 2rem 0;
  transform: .2s ease;
  display: inline-flex;
  align-items: center;
  opacity: .9;
}
button.viewAll-btn.btn-light{
  background-color: #fdfdfd;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.viewAll-btn svg{
  font-size: 1.5rem;
  margin:0 1rem;
}
.viewAll-btn:focus{
  outline: none;
}
.viewAll-btn:hover{
  opacity: 1;
}
.show{
  left: 0 !important;
}
.hide{
  opacity: .5;
  height: 100vh;
  overflow: hidden;
}
