
* {
    box-sizing: border-box;
}

html {
	height: 100%;
}

body {
    /*font-family: 'Montserrat', sans-serif;*/
    margin: auto;
	height: 100%;
}

img {
	object-fit: contain;
	vertical-align: top;
}

/*MAIN CONTENT*/
.el3 {
	grid-area: main1;
	padding: 1rem;
  	border-radius: 5px;
	}


/* MOBILE */
@media (max-width: 40rem) {
	.container {
		margin: 0;
		grid-template-columns: 100%;
		display: grid;
		grid-template-rows: [row-1-start] 8rem [row-1-end row-2-start] 2rem [row-2-end row-3-start] auto [row-3-end];
		grid-column-gap: 3rem;
		grid-row-gap:  2px;
		grid-template-areas: "header-left"
                             "subTitle"
							 "main1";
	}
    
.studylist {
    margin: 0;
    display: grid;
	/*grid-template-rows: repeat(auto-fill, 4rem); /*also auto-fit*/
    grid-template-rows: repeat(auto-fill, minmax(7rem auto));
    justify-content: center;
	grid-row-gap: 1.5rem;
	grid-auto-columns: 100%;
    }
    
.article-box {
    padding: 10px;
    margin: auto;
    overflow: auto;
    
    }

.centered {
    font-size: 24px;
    margin: 1rem auto;
    }
    
.el54 {
    display: block;
    margin-top: 0;    
    }

}

/* END MOBILE */

/*
LARGER MOBILE DEVICES
This is for mobile devices with a bit larger screens.

@media only screen and (min-width: 481px) /*30rem to 40rem
{

}*/

@media only screen and (min-width: 641px) /*more than 40 rem*/
{
.container {
    /*background-color: purple;*/
}
.fromto {
    margin-left: 25%;
    margin-right: 20%;
    }
.article-box {
    padding: 10px;
    overflow: hidden;
    
    }
}
/*
TABLET & SMALLER LAPTOPS
The average viewing window and preferred media query for those is 768px.
But I think that some more breathing space is good:)
*/
@media only screen and (min-width: 920px)
{
/*MOBILE MENU - HIDDEN*/
.mobile-nav {
	  display: none;
}

.mobile-nav__items {
	display: none;	
}

.toggle-button {
	display: none;
}
    
.el54 {
    display: none;        
    }

.fromto {
    margin-left: 25%;
    margin-right: 20%;
    }
    
.container {
    /*background-color: red;*/
    margin: 20px auto;
    width: 90%;
    grid-template-columns: 60% 40%;
	display: grid;
	grid-row-gap: 1.5rem;
    grid-column-gap: 0;
	grid-template-rows: [row-1-start] 8rem [row-1-end row-2-start] 4rem [row-2-end row-3-start] auto [row-3-end row-4-start] 50px [row-4-end];
	grid-template-areas: "header-left header-left"
						 "mnu mnu"
						 "main1 side"
						 "footer footer";
	justify-items: stretch;
	align-items: stretch;

    }
    
/*SIDE PANEL*/
.side {
    display: block;
	grid-row-start: 3;
	grid-column-start: 2;
}

.side_search {
  background:#C3E7A5;
  padding: 0rem;
  border-radius: 15px;
  border-style: ridge;
  margin: 0 1rem;
}
    
.side input {
    display: block;
    margin: 1rem auto 3rem auto;
    padding: 5px 20px;
    font-size: 1rem;
    background-color: #ffffff;
    border: solid thin gray;
    border-radius: 5px;
}
    
.side label {
    font-size: 1rem;
    color: #000;
    display: inline-block;
    margin: 1rem 0.3rem;
    text-align: left;
}

.side select {
    background-color: #ffffff;
    padding: 0.3rem;
    font-size: 1rem;
    display: inline-block;
    margin: 1rem 0 3rem 0;
    border-radius: 5px;
}

#wide_select {
    width: 15rem;
    margin: 1rem auto;
    display: block;
    font-size: 1rem;
}

#top_margin {
    margin-top: 2rem;
    }
    
/*.side #from {
    margin-left: 4rem
    }
.side #to {
    margin-right: 0.5rem;
    }*/

.fromto {
    display: block;
    margin-left: 10%;
    margin-right: 5%;
    }


    
.side button {
    font-size: 1.2rem;
    margin: 3rem auto;
    padding: 10px 25px;
    border-radius: 5px;
    display: block;
}
}

/*
DESKTOP
This is the average viewing window. So Desktops, Laptops, and
in general anyone not viewing on a mobile device. Here's where
you can add resource intensive styles.
*/
@media only screen and (min-width: 1030px)
/* DESKTOP*/ 
{
   
.container {
    /*background-color: yellow;*/
    grid-template-columns: 70% 30%;
    }
   
.side select {
    
    width: auto;
}
    
.fromto {
    margin-left: 5%;
    margin-right: 0;
    }
    
.studylist {
    margin: 0;
    display: grid;
    grid-auto-rows: repeat(auto-fill, minmax(7rem auto));
    justify-content: left;
    grid-column-gap: 0;
	grid-auto-columns: 100%;
}

.article-box {
    border: solid thin gray;
    font-size: 1.2rem;
    }
    
.centered {
    margin: 0 auto 1rem auto;
    }
    
/*MOBILE MENU - HIDDEN*/
.mobile-nav {
	  display: none;
}

.mobile-nav__items {
	display: none;	
}

.toggle-button {
	display: none;
    }
}

/*
LARGE VIEWING SIZE
This is for the larger monitors and possibly full screen viewers.
*/
@media only screen and (min-width: 1540px) {
.container {
    /*background-color: green;*/
    grid-template-columns: 70% 30%;
    }
    
/*.side_search {
      margin: 0 1rem;
    }
    
.side #from {
    margin-left: 5rem
    }
}*/


.fromto {
    margin-left: 15%;
    margin-right: 10%;
    }
 }
   
@media only screen and (min-width: 1730px) {

.container {
    /*background-color:red;*/
    grid-template-columns: 80% 20%;
    }

.fromto {
    margin-left: 10%;
    margin-right: 5%;
    }


    
/*.side_search {
  margin: 0 6rem;
}
    
.side #from {
    margin-left: 3rem
    }*/

.accordion {
    font-size: 0.9rem;
    }

}
