/*MOBILE AND GLOBAL*/

* {
	margin: 0;
	padding: 0;
    box-sizing: border-box;
}

/* NAV */

nav {
    z-index: 2;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
}

ul.nav-menu li a {
    width:100%;
    padding: 0;
    text-decoration: none;
    color: #ffffff;
	text-decoration: none;
	-webkit-transition-duration: 0.3s;
	-o-transition-duration: 0.3s;
	transition-duration: 0.3s;
}

ul.nav-menu a:hover {
	color: #5DBF4D;
}

.nav-toggle {
	display: none;
	position: absolute;
	top: 0;
	right: 0;
	width: 50px;
	height: 50px;
	cursor: pointer;
    z-index: 10000000000;
}

span.icon-bar {
	position: absolute;
	right: 12px;
	display: block;
	width: 26px;
	height: 2px;
	background-color: #ffffff;
	-webkit-transition-duration: 0.3s;
	-o-transition-duration: 0.3s;
	transition-duration: 0.3s;
}

.icon-bar:nth-child(1) {
  top: 17px;
}

.icon-bar:nth-child(2) {
  top: 24px;
}

.icon-bar:nth-child(3) {
  top: 31px;
}

.nav-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image: url(images/bg.jpg);
    background-position: center center;
    background-size: cover;
	z-index: 1;
	opacity: 0;
	visibility: hidden;
	-webkit-transition-duration: 0.3s;
	-o-transition-duration: 0.3s;
	transition-duration: 0.3s;
}

.nav-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* ICON BARS ANIMATION */

.nav-toggle.active .icon-bar:nth-child(1) {
	top: 24px;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	transform: rotate(45deg);
    z-index: 5;
}

.nav-toggle.active .icon-bar:nth-child(2) {
	width: 0;
}

.nav-toggle.active .icon-bar:nth-child(3) {
	top: 24px;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	transform: rotate(-45deg);
    z-index: 5;
}

/*END OF NAV*/

body {
    font-family: 'Trirong';
    background-image: url(images/bg.jpg);
    background-size:contain;
    color:#ffffff;
}

header {
    height:100vh;
    background-image: url(images/cafecover.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

footer {
    padding: 10px;
    text-align: center;
    background-color: rgba(30, 50, 22, 0.5);
}

h1 {
    width:90%;
    text-align: center;
    margin:0 auto;
    color:#ffffff;
    font-size: 3em;
    font-family: 'Abril Fatface';
}

#title a {
    display:block;
    color:#ffffff;
    text-decoration: none;
    width:200px;
    text-align: center;
    margin: 0 auto;
    margin-top: 25px;
    padding:10px;
    font-size: 1.3em;
    border:2px solid #ffffff;
    background-color: rgb(0,0,0,0.5)
}

#title a:hover {
    color: #5DBF4D;
}

#intro {
    width:90%;
    margin:50px auto;
    padding:20px;
    padding-top: 50px;
    outline: none;
}

#drinks, #food, #apply {
    display: flex;
    justify-content: center;
    align-items: center;
}

#drinks img, #food img, #apply img {
    width: 100%;
    height: auto;
    position: relative;
    filter: brightness(0.7);
    z-index: -1;
}

#drinks h2, #food h2, #apply h2 {
    font-family: 'Abril Fatface';
    font-size: 2em;
    color: #ffffff;
    position: absolute;
    align-self: center;    
}

h3 {
    font-size: 2em;
    text-align:center;
}

#footer {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px;
}

#footer p {
    font-size: 1 em;
    width:90%;
    margin: 0 auto;
    text-align: center;
}

#footer h3 {
    font-size: 1.5em;
}

#aboutus {
    width:95%;
    margin: 0 auto;
    margin-bottom: 40px;
}

#locationinfo {
    display: flex;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 40px;
    justify-content: space-around;
    font-size: 0.8em;
}

#address {
    width: 40%;
}

#hours {
    width: 60%;
}

#icons {
    width: 70%;
    margin: 20px auto;
    display: flex;
    justify-content: space-around;
}

#top, #teahover {
    position: fixed;
    right: 10px;
    bottom: 0px;
    width: 100px;
    z-index: 0; 
}

#hover, #teahover {
    display: none;
}

#icons a:hover #hover, #teaicon a:hover #teahover {
    display: inline;
}

#icons a:hover #display, #teaicon a:hover #top {
    display: none;
}

#icons img {
    width:40px;
    height: auto;
}

#icons {
    height: 40px;
    width: 40px;
}

#contact {
    display: flex;
    flex-direction: column;
    align-content: center;
    margin: 50px auto;
    max-width: 900px;
}

form {
    margin: 0 auto;
    width:90%;
}

label {
    display: block;
    width: 100%;
    margin: 0 auto;
    margin-top: 50px;
}

label:first-of-type {
    margin-top: 20px;
}

input, textarea {
    display:block;
    color: #000000;
    background-color: rgba(155, 155, 155, 0.8);
    height: 50px;
    font-size: 1.3em;
    padding: 10px;
    outline-color: #ffffff;
    width: 100%;
}

input[type=submit] {
    width:300px;
    margin: 30px auto;
    color: #ffffff;
    background-color: #000000;
    outline-style: solid;
    outline-width: thin;
    outline-color: #ffffff;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: rgba(93, 191, 77, 0.8);
}


/* SMALL SCREEN NAV */

@media screen and (max-width:767px){
	
    ul.nav-menu {
        position: sticky;
        display:block;
        z-index: 10;
		top: 50px;
		width: 100%;
        height:0;
		padding: 0;
		overflow: hidden;
	}
    
	ul.nav-menu.active {
		height: calc(100vh);
        padding-bottom: 60px;

	}
    
	ul.nav-menu li {
        text-align: center;
        justify-content: space-around;
        font-size: 2em;
	}
    
	ul.nav-menu li a {
        height:17vh;
        margin-top: 5vh;
        color:#ffffff;
        text-decoration:none;
        -webkit-transition-duration: 0.3s;
        -o-transition-duration: 0.3s;
        transition-duration: 0.3s;
	}
    
    ul.nav-menu li:nth-child(3) img{
        width: 200px;
/*        align-self: center center;*/
        margin: 0 auto;
        margin-bottom: 50px;
    }
    
    ul.nav-menu li:last-of-type {
        height: 15vh;
        margin-top: 60px;
        width: auto;
    }
    
    ul.nav-menu li a:hover{
        width: 100%;
        text-align: center;
	   }
    
	.nav-toggle {
		display: block;
	}
}


a.button {
    text-decoration: none;
    display: block;
    width:300px;
    margin: 30px auto;
    color: #ffffff;
    background-color: (0, 0, 0, 0.7);
    outline-style: solid;
    outline-width: thin;
    outline-color: #ffffff;
    cursor: pointer;
    padding: 10px;
    text-align: center;
}

a.button:hover {
    background-color: rgba(93, 191, 77, 0.8);
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    z-index: 30000;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
    z-index: 30000;
}

.popup {
    width: 90%;
    margin: auto;
    align-self: center center;
    padding: 50px;
    background: rgb(189, 223, 179);
    border-radius: 5px;
    position: relative;
    transition: all 5s ease-in-out;
    text-align: center;
    z-index: 30000;
    max-width:500px;

}

.popup h2 {
    margin: 0 auto;
    color: #000000;
    text-align: center;
}

.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
    z-index: 30001;

}
.popup .close:hover {
  color: #06D85F;
}
.popup .content p {
    color: #000000;
    max-height: 30%;
    overflow: auto;
    z-index: 30001;

}



/*DESKTOP*/
@media screen and (min-width:768px){
	
    .navigation {
        position: sticky;
    }
    
    ul.nav-menu {
        top: 0px;
        width: 100%;
        background-color: rgba(38, 27, 20, 0.5);
        list-style: none;
        font-family: 'Tritong';
        font-size: 1.2em;
        display: flex;
        justify-content: space-around;
        text-decoration: none;
        align-items: center;  
        z-index: 100;
}
    
    ul.nav-menu img {
        width:150px;
        display: block;
        margin: 0 auto;
        padding: 10px;
}
    
    .nav-overlay.active {
		visibility: hidden;
		opacity: 0;
	}
    
    header {    
        background-attachment: fixed;
    }
    
    #intro {
        width:50%;
        min-width:700px;
    }
    
    section#drinks, section#food, section#apply {
        width:80%;
        max-width: 900px;
        margin: 0 auto;
        margin-bottom: 15px;
        justify-content: flex-end;
        text-align: center;
    }
    
    #drinks h2, #food h2, #apply h2 {
        width: 30%
    }
    
    section#drinks:hover, section#food:hover, section#apply:hover {
        outline-color: rgba(93, 191, 77, 0.5);
        outline-style: dotted;
        outline-width: thick;
    }
    
    #drinks img, #food img, #apply img {
        width:50%;
        margin-right: auto;
    }
    
    h2 {
        width: 40%;
        margin-left: auto;
    }

    #footer {
        display: flex;
        width:100%;
        margin: 0 auto;
        padding:30px;
    }
    
    #hours {
        width:50%;
    }
    
    #address {
        width: 30%;
    }
    
    #icons img {
        width: 40px;
        height: auto;
    }
    
    #icons {
        width: 50%;
    }
    
    form {
        width: 50%;
    }
    
    #aboutus {
        text-align: left;
        width: 50%
    }
    
    #locationinfo {
        font-size: 1em;
    }
    
    #top, #teahover {
    width: 130px;
    }
    
}

/*END DESKTOP*/