@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

    h1{
    font-family: "Space Grotesk", sans-serif;
    text-align: center;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px);
    background: rgb(255 255 255 / 15%);
}

header{
    background-color: rgb(228 240 245) ;
    height: 420px;
    position: relative;
    overflow: hidden;
    background-image: url("/static/images/food.webp");
    background-size: cover;
    background-position: center;
}

body{
    background-color: rgb(220 229 233);
    border-radius: 10px;
    margin: 0;
}

html, body {
  margin: 0;
  padding: 0;
}

main {
    margin: 8px;
    margin-bottom: 0;
}

footer {
    margin: 8px;
    margin-top: 0;
}

h2 {
    text-align: center;
}

nav {
    background-color: rgb(99 179 216);
    color:white;
}

.nav-links-container{
    display: flex;
    justify-content: space-evenly;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links-container > a {
    width: 100%;
    text-align: center;
    padding: 5px 0;
}

.dropdown-content a {
    display: block;
    padding: 14px 16px;
    color: black;
    text-decoration: none;
    font-weight: 500;
}

.nav-links-container > a:nth-child(even) {
    border-style: solid;
    border-color: black;
    border-width: 0 1px;
}

.top-nav {
    position: absolute;
    top: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    background: rgb(0 0 0 / 35%);
    z-index: 3;
}

.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    background: rgb(0 0 0 / 45%);
    z-index: 3;
}

.dropbtn {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: black;
    cursor: pointer;
    padding: 0;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 35px;
    left: 10px;
    background: white;
    min-width: 150px;
    box-shadow: 0 6px 18px rgb(0 0 0 / 15%);
    z-index: 999;
}


.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dotted{
    border-style: dotted;
    border-color: rgb(22 24 27);
    border-width: 2px;
}

.center{
    max-width: 50%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.container{
    display:flex;
    justify-content:center;
    align-items: center;
}

.bigimg{ /* Increasing the size of the logo for the homepage and logo page */
    max-width: 100%;
    height: auto;
}

.smallimg{
    width:300px;
    height:300px;
    object-fit: cover;
}

.formation{
    background-color: rgb(211 220 224);
    border-radius: 5px;
}

fieldset{ /* Adding a border to the homepage */
    margin-bottom: 10px;
    border-radius: 5px;
}

.field{
    border-color: #606061;
}

.adjust{
    column-gap: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.adjust legend{
    margin-bottom: 20px;
    font-size: 20px;
}

.button {
    padding: 10px 15px;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    color: #fff;
    border-color:#77a7d1;
    background-color:#606061;
    border-radius: 15px;
    box-shadow: 0 9px #999;
}

.button:hover{
    background-color: #a1c4e2;
}

.button:active {
    background-color: #6ba2ce;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

.box{
    display: flex;
    justify-content: space-evenly;
}

div.photo {
    border: 5px solid #3a5378;
}

div.photo:hover {  /* https://www.w3schools.com/cssref/sel_hover.php */
    border: 20px solid #77a7d1;
}

.restaurant-card img {
    width: 480px;
    height: 330px;
    object-fit: contain;
    flex-shrink: 0;
}

div.photo img {
    width: 100%;
    height: 300px;
    object-fit:cover; /* https://www.w3schools.com/css/css3_object-fit.asp */
}

div.desc {
    padding: 15px;
    text-align: center;
}

.organize {
    width:300px;
    text-align:center;
}

/* https://www.w3schools.com/css/css3_mediaqueries_ex.asp Figuring how to add mobile support to the images as a strecth goal */

.clearfix::after { /* Referred to the website https://www.w3schools.com/howto/howto_css_image_gallery.asp */
  content: "";
  display: table;
  clear: both;
} 

.contain {
    position: relative;
}

.overlay {   /* https://www.w3schools.com/howto/howto_css_overlay.asp */
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color:  rgb(118 174 219);
}

.contain:hover .overlay {
    opacity: 1;
}

.text { /* https://www.w3schools.com/howto/howto_css_overlay.asp */
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    max-width: 95%;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    padding: 20px;
    text-align: justify;
}

* {
    box-sizing: border-box;
}

.restaurant-card {
    position: absolute;
    right: 140px;
    top: 120px;
    width: 500px;
    height: 180px;
    background: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgb(0 0 0 / 20%);
    z-index: 10;
    overflow: hidden;
}


/* References used
1. https://stackoverflow.com/questions/4938716/align-div-elements-side-by-side 
2. https://www.w3schools.com/css/css3_flexbox_container.asp
3. https://www.w3schools.com/cssref/css3_pr_gap.php

Referencing the code from the website to add more structure and flare to the about us page
4. https://www.w3schools.com/howto/howto_css_image_gallery.asp referenced to add images to images to the about page
5. https://www.w3schools.com/howto/howto_css_image_overlay.asp referenced to add text on images in the about page
6. https://www.w3schools.com/howto/howto_css_dropdown.asp referenced to add dropdown menu on top of the page
7. https://www.w3schools.com/HOWTO/howto_css_blurred_background.asp referenced to add background
8. https://www.w3schools.com/howto/howto_css_animate_buttons.asp referenced to add animation to button
*/
