:root {
  --header-elements-margin: 0.7em;
  --font-size: 0.85rem;
}

* {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: fit-content;
}

/* Main container  */

.container {
  margin: 0;
  display: grid;
  grid-template-areas: "header"
                        "logo"
                        "form"
                        "buffer"
                        "footer";
  grid-template-rows: 60px auto 160px 244.33px 95.67px;
  height: 100vh;
}

/* Header */

.header {
  grid-area: header;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: var(--font-size);
  padding: 0.5em 1.2em;
}

.header > * > a {
  margin: var(--header-elements-margin);
}

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

.header--right {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.header--right > span {
  margin-right: 1em;
}

.header--right > span:hover {
  cursor: pointer;
  background-color: #f0f0f0;
  border-radius: 50%;
}

#Menu {
  margin: var(--header-elements-margin);
  width: 22px;
  height: 22px;
}

#Sign-in { 
  background-color: #1a73e8;
  color: white;
  font-size: var(--font-size);
  padding: 0.75em 1.95em;
  border-radius: 0.3em;
  border: 0;
}

#Sign-in:hover {
  opacity: 0.85;
  cursor: pointer;
  box-shadow: 0.5pt 0.5pt 2pt 0.5pt #D3D3D3
}

/* Logo & Form Section */

.logo {
  grid-area: logo;
  text-align: center;
  margin-top: auto;
}

#logo {
  width: 17em;
}

.form-container {
  grid-area: form;
  padding: 20px;
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto;
  justify-items: center;
}

.search {
  display: flex;
  margin: 0 auto;
  min-height: 50px;
  border-radius: 25px;
  padding-left:20px;
  padding-right: 10px;
  border: 1px lightgrey solid;
  justify-content: space-between;
  align-items: center;
  width: 585px;
}

.input-div {
  width: 100%;
}

.search:hover {
  box-shadow: 0 0 5pt 0.5pt #D3D3D3
}

.search:focus-within {
  box-shadow: 0 0 5pt 0.5pt #D3D3D3
}

.search-div {
  text-align: center;
  width: 20px;
  padding-top: 2px;
}

#search-icon {
  max-width: 100%;
}

#search-bar {
  border: none;
  outline: none;
  width: 100%;
  margin-left: 6px;
  background-color: transparent;
  font-size: 16px;
}
input[type="text"]{
  border:0px;
  height: 44px;
  width: 449px;
  outline: none;
  
}
.mic-div {
  text-align: center;
  padding-top: 3px;
}

#mic-icon {
  max-width: 65%;
}

.buttons {
  text-align: center;
  margin-top: 15px;
}

.button {
  background-color: #f8f9fa;
  border: 0;
  font-size: var(--font-size);
  padding: 10px 18px;
  margin: 4px;
  border-radius: 4px;
}

.button:hover {
  cursor: pointer;
  box-shadow: 0 0 1pt 0.5pt #D3D3D3
}

/* Footer */

.footers {
  grid-area: footer;
  display: flex;
  flex-direction: column;
  background-color: #f2f2f2;
}

.footers a, p {
  color: rgb(116, 116, 116);
}


.footer1 {
  font-size: 0.9em;
  height: 47.835px;
  border-bottom: 1px lightgrey solid;
}

.footer1 > p {
  padding-left: 2em;
}

.footer2 {
  display: flex;
  justify-content: space-between;
  padding: 0 1em;
}

.footer2--left{
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.footer2--center{
  flex: 1;
  display: flex;
  justify-content: center;
  justify-items: center;
}

.footer2--right{
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.footer2 a {
  padding: 14px 14px 10px 14px;
  font-size: 0.9em;
}

.footer2 img {
  margin: 14px -10px 0 14px;
}


a {
  text-decoration: none;
  color: black;
}

a:hover {
  text-decoration: underline;
}
.search-div svg {
    display: none;
  }

#leaf {
  height: 14px;
}
 #Images-2, #all {
    display: none;
  }
@media (max-height: 660px) {
  .container {
    grid-template-rows: 60px 96px 160px auto 95.67px;
  }

}

@media (min-height: 850px) {
  .container {
    grid-template-rows: 60px 290px 160px auto 95.67px;
  }
 
  #Images-2, #all {
    display: none;
  }
}

@media (max-width: 1200px) {
  .container {
    grid-template-rows: 60px auto 160px 198.33px 141.67px;
  }

  .footer2 {
    display: grid;
    grid-template-areas:  "footer2--center footer2--center footer2--center footer2--center footer2--center"
                          ". footer2--left . footer2--right .";
    grid-template-columns: auto auto auto auto auto;
    grid-template-rows: auto auto;

  }

  .footer2--left {
    grid-area: footer2--left;
  }

  .footer2--center {
    grid-area: footer2--center;
  }

  .footer2--right {
    grid-area: footer2--right;
  }
    #Images-2, #all{
    display: none;
  }

}

@media (max-width: 614px) {
  .container {
    grid-template-rows: 60px auto 160px 152.33px 187.67px;
  }

  .form {
    width: 100%;
  }

  .search {
    width: 100%;
  }

  .footer2 {
    grid-template-areas: "footer2--center"
                          "footer2--left"
                          "footer2--right";
    grid-template-columns: auto;
    grid-auto-rows: auto auto auto;
    justify-content: space-around;
  }

  .footer2--center, .footer2--right {
    justify-content: center;
  }
  #logo {
    width: 10em;
}
#Images, #Gmail{
  display: none;
}
 #Images-2, #all{
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  color:#70757a;
}
.buttons {
  display: none;
}

.footer2--left {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}

/*mobile focus input*/

    
 .search-div:hover  #footer-tag,.search-icon:focus + #logo-hide, .search-icon:focus + #header-top{
    display: none;
  }

}


.search-div svg {
    display: none;
 }
@media (max-width: 1200px) and (max-height: 660px) {
  .container {
    grid-template-rows: 60px 96px 160px auto 141.67px;
  }
  #Images-2, #all {
    display: none;
  }


}

@media (max-width: 614px) and (max-height: 660px) {
  .container {
    grid-template-rows: 60px 96px 160px auto 187.67px;
  }
 /* .input-div:hover + #footer-tag,#logo-hide, #header-top{
    display: none;
  }
  #search-bar:focus +  .form-container {
    grid-area: auto;
  }
  #search-bar:focus +  .form-container {
    padding:5px;
  }
  #search-bar:focus +  .search {
    border-radius: 0px;
    padding-right: 5px;
    padding-left: 5px;
  }
  #search-bar:focus + .search-div svg {
    display: block;
    
    height: 24px;
    fill:#1a73e8;
  }
  #search-bar:focus + .search-div img#search-icon{
    display: none;
  }
  #search-bar:focus + .search:focus-within {
    box-shadow: unset;
  }*/

}

