/* top navbar css for larger screens*/

.top-nav{
    background:linear-gradient(to left, #f46b45, #eea849) ;
    color: #FFF;
    height: 100px;
    padding: 1em;
    display: flex;
    justify-content: space-between;
    vertical-align: center;
    align-items: center;
}
  
#menu-toggle{
   	display: none;
}

.menu{
   	list-style: none;
   	text-align: center;
   	margin: 0;
   	padding: 0;
   	line-height: 6em;
}
.menu li{
	display: inline-block;
	position: relative;
	line-height: 3em;
}
.menu a{
	display: block;
	text-decoration: none;
	color: black;
	font-size: 1.1em;
	padding-inline: 1.7em;
}
.menu a:hover, .drp:hover, #pu:hover{
	transition: background-color 0.35s;
	background-color: orange;
	color: honeydew;
}
.top-nav ul li ul{
  	display: none;
	position: absolute;
	inline-size: 100%;
	background-color: rgb(245, 145, 40, 1.0);
	line-height: 2em;
    flex-direction: column;
    padding-inline: 0;
}

.top-nav ul li ul li{
    margin-block: 0;
    top: 0px;
	padding-inline: 0px;
	inline-size: 100%;
	box-sizing: border-box;
	line-height: 2.6em;
}
.top-nav ul li:hover ul{
	display: flex;
}
.menu .mostu{
	display: none;
}
.transpp{
	margin-left: 5px;
}





/*content + general/middle part of page*/



body{
	margin: 0em;
}
a{
	text-decoration: none;
    color: brown;
}
a:hover{
	color: rgb(40, 80, 40, 1.0);
}
main h1{
	text-align: center;
	font-size: 3.5em;
	margin-top: 1em;
}
main img{
	width: 350px;
}
main{
	padding-inline: 2.5em;
	padding-top: 2em;
	padding-bottom: 3em;
	background-color: rgb(290, 300, 215, 1.0);
	color: rgb(20, 40, 20, 1.0);
}
main h3{
	font-weight: normal;
}
main h4{
	font-weight: normal;
}
.bold{
	font-weight: bold;
}
.q{
	font-size: 1.5em;
}

text{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	gap: 2em;
	overflow-wrap: break-word;
}

.a{
	grid-area: a;
	width: 350px;
}
.b{
	grid-area: b;
	width: 350px;
}
.c{
	grid-area: c;
	width: 350px;
}

/*bottom part of page*/


.gridcontainer{
	display: grid;
	grid-template-areas: 
	"social textnav" 
	"copyright copyright";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 4fr 1fr;
	padding-inline: 30px;
	background:linear-gradient(to left, #f46b45, #eea849) ;
    gap: 5px;
    row-gap: 3em;
    color: black;
}
.gridcontainer a{
	text-decoration: none;
	color: black;
}
.gridcontainer a:hover{
	color: rgb(40, 80, 40, 1.0);
}
.gridcontainer li{
	list-style: none;
}
.socialmedia{
    grid-area: social;
    text-align: center;
    margin-inline: 0;
    align-content: center;
    margin-top: 3em;
}
.socialmedia img{
	padding-inline: 5px;
}
.textnav{
	grid-area: textnav;
	text-align: center;
	margin-inline: 0;
	align-content: center;
    padding: 10px;
    margin-top: 3em;
    color: black;
}
.copyright{
    grid-area: copyright;
    text-align: center;
    border-top: 2px solid black;
    margin-inline: 0;
    line-height: 3em;
    color: black;
}

.textnav{
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: wrap;
	justify-content: flex-end;
	row-gap: 1em;
    padding-inline: 20px;

}

.leftp{
    flex-grow: 2;
    font-size: 1.1em;
    text-align: left;
}
.rightp{
	flex-grow: 2;
	text-align: left;
	font-size: 1.1em;
}
.heading{
	flex-wrap: nowrap;
	font-size: 2em;
}

.socialmedia img{
	width: 5em;
}

.flag{
	width: 3em;
	right: 30px;
    bottom: 30px;
    position: fixed;
}





/* Code describing and formatting the whole page for smaller screens*/

@media (max-width: 980px) {
	/* code of the whole top navbar for mobile users*/
    .top-nav{
    	display: flex;
    	flex-direction: row;
    	align-items: center;
    	justify-content: space-between;
    	background:linear-gradient(to left, #f46b45, #eea849) ;
    	color: #FFF;
    	height: 100px;
    	padding: 1em;
    }
    .menu{
    	display: flex;
    	list-style-type: none;
    	margin: 0;
    	padding: 0;
    	position: absolute;
        top: 0;
        margin-top: 130px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;

    }
    .menu > li{
    	display: flex;
        justify-content: center;
        width: 100%;
        background-color: rgb(30, 45, 45, 1);
        vertical-align: center;
        overflow: hidden;
        line-height: 3em;
    }
    .menu a{
    	color: coral;
    	font-size: 1.1em;
    }
    .menu a:hover{
    	color: chocolate;
    }

    .menu-button-container{
	    display: flex;
	    height: 100%;
	    width: 40px;
	    cursor: pointer;
	    flex-direction: column;
	    justify-content: center;
	    align-items: center;
    }
    #menu-toggle{
	    display: none;
    }
    #menu-toggle ~ .menu li{
    	height: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    #menu-toggle:checked ~ .menu li {
    border: 1px solid #333;
    height: 3em;
    align-content: center;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
    .menu-button,
    .menu-button::before,
    .menu-button::after {
	    display: block;
	    background-color: rgb(30, 45, 45, 1.0);
	    position: absolute;
	    height: 4px;
	    width: 30px;
	    transition: transform 400ms cubic-bezier(0.23, 1, 0.32,1);
	    border-radius: 2px;
    }
    .menu-button::before {
        content: "";
        margin-top: -8px;
    }
    .menu-button::after{
    	content: "";
    	margin-top: 8px;
    }
    #menu-toggle:checked + .menu-button-container .menu-button::before {
    	margin-top: 0px;
    	transform: rotate(405deg);
    }
    #menu-toggle:checked + .menu-button-container .menu-button{
    	background: rgba(255, 255, 255, 0);
    }
    #menu-toggle:checked + .menu-button-container .menu-button::after{
    	margin-top: 0px;
    	transform: rotate(-405deg);
    }
    ul li ul {
    	display: none;
    }
    ul li ul li{
    	display: none;
    }
    .top-nav ul li:hover ul{
	display: none;
    }
    .menu li{
	    display: inline-block;
	    position: relative;
	    line-height: 3em;
	    inline-size: 100%;
	    margin: 0;
	    padding: 0;
    }
    .menu #stu{
    	display: none;
    }
    .menu .drp{
    	display: none;
    }
    .menu .mostu{
    	display: block;
    }
    
    
    /*middle part smaller screen*/

    
	/*bottom part for smaller screens*/

	bottom .gridcontainer{
		display: grid;
		grid-template-areas: "social" "textnav" "copyright";
		grid-template-columns: 1fr ;
        grid-template-rows: 1fr ;
	    padding-inline: 30px;
	    background-color: rgb(0, 40, 60, 1.0);
        gap: 5px;
        row-gap: 0em;
        color: lightgrey;
		}
    bottom .socialmedia{
		margin-block: 3em;
		padding-block: 0.1em;
		font-size: 1em;
		text-align: left;
		padding-inline: 20px;

	}	
	bottom .textnav{
		margin-top: 0.1em;
		padding-top: 0.1em;
		margin-bottom: 3em;
		padding-inline: 20px;
		display: block;
	}
    bottom .leftp{
    	display: block;
    	text-align: left;
        line-height: 1.5em;
    }
    bottom .rightp{
    	display: block;
    	text-align: left;
    	line-height: 1.5em;
    }
    bottom .heading{
    	display: block;
    	text-align: left;
    	margin-bottom: 1em;
    }
    bottom .copyright{
    	line-break: break;
    }

}