/* General styling (headers, footers, search bar, etc.) */

:not(.rental-terms, .lists) {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Roboto, sans-serif;
}

html {
  font-size: 100%;
}

img {
/* IMPORTANT FOR IMAGE SIZING */
max-inline-size: 100%;
}

.contact-header {
  display: flex;
  padding: 10px;
  font-size: 1rem;
  background-color: #237239;
  height: 40px;
  justify-content: space-between;
  align-items: center;
  color: white;
}

#phone-number a {
  color:  white;
  text-decoration: none;
}

#phone-number a:hover {
  color: #f89a1a;
}

#top-header-wrapper {
height: auto;
position: sticky;
top: 0px;
z-index: 1;
}

.top-header {
display: flex;
align-items: center;
z-index: 1;
justify-content: space-around;
background-color: #f89a1a;
position: sticky;
top: 0px;
padding: 5px;  
}

#top-header-rental {
position: relative;
}

.header-logo-container {
display: flex;
width: 75px;
}

.header-logo {
display: none;
}

.header-logo-mobile {
display: flex;
max-height: 60px;
}

#header-logo-swap {
display: none;
width: 290px;
height: 60px;
justify-content: center;
}

#header-logo-swap-link {
width: 60px;
}

#header-logo-swap-img {
height: 60px;
}

.search-bar{
display: flex;
flex-flow: column;
text-align: center;
align-items: center;
width: 200px;
gap: 5px;
}

.search-bar input[type='text'] {
background-color: #FFFFFF;
border: 1px solid #D6D9DC;
border-radius: 3px;
width: 100%;
padding: 7px;
font-size: 0.875rem;
}

.search-bar label {
margin-bottom: 15px;
}

#all-equipment {
text-decoration: none;
}

#all-equipment:hover {
text-decoration: underline;
}

.search-list{
position: absolute;
justify-content: center;
background-color: white;
left: 50%;
top: 100%;
transform: translate(-50%, 0%);
display: block;
flex-flow: column;
width: 500px !important;
max-width: 100vw;
max-height: 400px;
overflow: scroll;
overflow-x: hidden;
}

.search-item{
display: flex;
background-color: white;
font-size: 1.5rem;
font-weight: bold;
fill: white;
color: #237239;
text-decoration: none;
max-width: 500px !important;
padding: 5px;
gap: 5px;
justify-content: center;
align-items: center;
text-align: center;
}

.search-item:hover {
text-decoration: underline;
box-shadow: inset 0 0 0 3px #237239;
}

#section-name {
  font-size: 1.25rem;
  width: 200px;
}

#shop-hours{
display: none;
}

.needs-spacing-top {
padding-top: 24px;
padding-bottom: 24px;
}

.needs-spacing-bottom {
padding-bottom: 24px;
}

.main-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #237239;
  width: auto;
  height: 75px;
}

.facebook-logo {
  max-height: 32px;
  max-width: 32px;
}


/* Index styling */

.local-source {
display: flex;
position: absolute;
left: 50%;
top: 20%;
transform: translate(-50%, 0%);
z-index: 0;
justify-content: center;
text-align: center;
background-color: rgba(255, 255, 255, .35);
font-size: large;
}

.home-image{
display: flex;
justify-content: center;
position: relative;
height: 200px;
}

#grand-forks-img {
width: 100%;
}

.desktop-columns {
display: none;
}

.mobile-partners-equipment-cra {
display: flex;
flex-flow: column;
align-items: center;
gap: 20px;
}

.partner-logos {
display: flex;
gap: 5px;
flex-flow: column;
max-width: 422px;
justify-content: center;
align-items: center;
border: 3px solid #f89a1a;
border-radius: 25px;
width: 90%;
padding-bottom: 10px;
}

.partner-div {
border: 3px solid #f89a1a;
border-radius: 25px;
width: 30%;
max-width: 400px;
display: flex;
flex-flow: column;
align-items: center;
}

.partner-header {
display: flex;
justify-content: center;
text-align: center;
}

#air_liquide {
display: flex;
width: 375px;
justify-content: center;
max-width: 90%;
align-items: center;
}

#bumper_to_bumper {
display: flex;
background-color: red;
border: 1px solid red;
border-radius: 10px;
margin-left: 5px;
margin-right: 5px;
width: 375px;
justify-content: center;
align-items: center;
max-width: 90%;
}

#loomis {
display: flex;
width: 375px;
justify-content: center;
align-items: center;
max-width: 90%;
}

.equipment-header {
display: flex;
justify-content: center;
flex-wrap: wrap;
text-align: center;
margin-top: 5px;
}


.equipment-examples a {
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
border-radius: 25px;
width: 90%;
}

.rental-category:hover {
box-shadow: 0px 0px 5px black;
text-decoration: underline #237239;

}

.equipment-examples {
display: flex;
gap: 10px;
justify-content: center;
/*max-width: 445px;*/
flex-wrap: wrap;
}

.equipment-span {
display: inline-flex;
align-items: center;
width: 100%;
max-width: 445px;
border: 3px solid #237239;
border-radius: 25px;
overflow: hidden;
}

.all-equipment-div {
display: flex;
justify-content: center;
}

.all-equipment-span {
display: inline-flex;
text-align: center;
justify-content: center;
align-items: center;
/*width: 100vw;*/
border: 3px solid #237239;
border-radius: 10px;
padding: 5px;
overflow: hidden;
}

.equipment-name {
color: #237239;
}

.cra-sponsors-div {
display: none;
}

.cra-div {
display: flex;
flex-flow: column;
max-width: 400px;
align-items: center;
border: 3px solid #f89a1a;
border-radius: 25px;   
padding-bottom: 10px;
width: 90%;
}

.cra-header {
display: flex;
flex-flow: column;
gap: 10px;
justify-content: center;
align-items: center;
text-align: center;
max-width: 400px;
}

#cra-text {
  font-weight: bold;
}

.find-us-header {
display: flex;
padding-bottom: 10px;
padding-top: 24px;
justify-content: center;
}

.about-us {
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}

#location-phone {
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
text-align: center;
gap: 10px;
padding-bottom: 12px;
}

#map-mobile {
display: flex;
max-width: 100vw;
}

#map {
display: none;
}

/* Rentals styling */
#rental-terms {
  display: none;
  z-index: 1;
  font-size: 0.875rem;
  padding: 20px;
  box-sizing: border-box;
  position: absolute;
  background-color: white;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  flex-flow: column;
  gap: 10px;
  border: 3px solid #f89a1a;
  border-radius: 25px;
  align-items: center;
}

#agree-button {
  display: block;
  font-size: 1.125rem;
  margin: auto;
  padding-left: 10px;
  padding-right: 10px;
}

.rental-text {
  display: grid;
  gap: 10px;
}

/* Contact styling */
.lists {
  margin: 0;
  text-align: left;
}

#contact-info {
  display: flex;
  flex-flow: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#emails {
display: flex;
flex-flow: column;
}

#policies {
  display: flex;
  text-align: center;
  padding: 10px;
  width: 100vw;
  max-width: 700px;
  gap: 10px;
  flex-flow: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

#billing {
  font-size: 1.125rem;
  color: red;
}

#repairs {
  text-decoration: underline;
  font-weight: bold;
}


@media screen and (min-width: 600px) {

  .header-logo-container {
    width: 175px;
  }

  .header-logo-mobile{
    display: none;
  }

  .header-logo{
    display: flex;
    max-height: 60px;
  }
}

@media screen and (min-width: 768px) {

  #rental-terms {
    top: 150px;
  }

  .contact-header {
    font-size: 1rem;
  }

  #top-header-wrapper {
    height: 70px;
  }

  .top-header {
    height: auto;
    font-size: 0.875rem;
    flex-flow: row;
  }

  .header-logo-img {
    display: flex;
    max-height: 60px;
  }

  #section-name {
      text-align: center;
  }

  #shop-hours{
    display: block;
    text-align: center;
    width: 305px;
  }

  .home-image{
    height: auto;
  }

  .local-source {
    font-size: 2rem;
  }

  .mobile-partners-equipment-cra {
    display: none;
  }

  .desktop-columns {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 10px;
  }
  
  .partner-logos {
    width: 45%;
    max-width: 445px;
    justify-content: space-around;
    border: none;
    padding: none;
  }
  
  .partner-div {
    width: 90%;
  }
  
  .equipment-examples {
    flex-flow: column;
    align-items: center;
    width: 45%;
    max-width: 445px;
  }

  .about-us {
    flex-flow: row;
  }

  #shop-hours-mobile {
    display: none;
  }

  #map-mobile {
    display: none;
  }

  #map {
    display: block;
  }

  .main-footer {
    height: 100px;
  }

}

@media screen and (min-width: 900px) {
  .top-header {
    font-size: 1rem;
  }

  .header-logo-container {
    width: 295px;
  }
  
  .header-logo {
    max-height: 100px;
  }

  .search-bar {
    width: 300px;
  }

  .search-bar input[type='text'] {
    width: 250px;
  }

  #section-name {
      font-size: 2rem;
      width: 300px;
  }

  #rental-terms {
    top: 230px;
    font-size: 1rem;
  }

  .local-source {
    top: 35%;
  }

  .partner-logos {
    width: 30%;
  }

  .equipment-examples {
    width: 40%;
  }

  .cra-sponsors-div {
    display: flex;
    flex-flow: column;
    width: 30%;
    max-width: 445px;
    align-items: center;
    justify-content: space-around;
  }

  .cra-header {
    gap: 30px;
  }

  .sponsor-div {
    display: flex;
    text-align: center;
    flex-flow: column;
    align-items: center;
    max-width: 400px;
    width: 90%;
    border: 3px solid #f89a1a;
    border-radius: 25px;
  }

  #curling {
    max-width: 90%;
  }

  .about-us {
    gap: 30px;
  }
  
}

@media screen and (min-width: 1366px) {

  #rental-terms {
    max-width: fit-content;
  }


}