/* Phone MQ */
@media screen and (min-width: 0px) and (max-width: 450px) {

  #historyParagraph {
    display: none;
    width: 90%;
    text-align: center;

    color: var(--customBlack);
  }

  #res-historyParagraph {
    display: block;
  }

  .membersItemsContainer {
    width: 100%;
    flex-flow: column nowrap;
  }

  .member {
    width: 90%;
  }

  .member:nth-child(2),
  .member:nth-child(3),
  .member:nth-child(4) {
    margin-top: 10px;
  }

  .historyContainer {
    height: auto;
    background-color: var(--white);
  }

  .historyItemContainer {
    height: 500px;
    flex-flow: column wrap;
  }

  #historyHeading,
  #membersHeading {
    color: var(--customBlack);
  }

  #membersHeading {
    color: var(--customBlack);
  }

  #contactsBottomHeading {
    display: none;
  }

  #resContactsBottomHeading {
    display: inline;
    font-size: 40px;
    padding-bottom: 30px;
  }

  .contactsDescription img {
    margin-top: 10px;
    width: auto;
    height: 150px;
  }

  .infosContainer {
    flex-flow: column nowrap;
  }

  .contactBox {
    width: 100%;
    height: auto;
  }

  .partition {
    height: 7vh;
  }
}

/* Tablet MQ */
@media screen and (min-width: 450px) and (max-width: 820px) {
  .member {
    width: 48%;
  }

  .member:nth-child(3),
  .member:nth-child(4) {
    margin-top: 10px;
  }

  #contactsBottomHeading {
    font-size: 35px;
  }

  .infosContainer {
    flex-flow: column nowrap;
  }

  .contactsBoxImage img {
    margin-top: 10px;
    width: auto;
    height: 200px;
  }
}

/* Phone AND Tablet MQ */
@media screen and (max-width: 820px) {
  header {
    background: none;
  }

  #grigioneriLogo {
    width: auto;
    height: 40px;
  }

  #grigioneriSignature,
  .rightNavContainer {
    display: none;
  }

  .res-HamburgerContainer,
  .res-SignatureContainer {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
  }

  .res-SignatureContainer {
    font-family: "Shrikhand", cursive;
    color: white;
  }

  .res-SignatureContainer p {
    margin-bottom: 0;
  }

  .presentationContainer {
    display: none;
  }

  .infosContainer {
    height: auto;
    padding: 0 !important;
  }

  .res-presentationContainer {
    width: 100%;
    display: block;
  }

  .arrow, .bounce {
    display: none;
  }

  #membersHeading {
    color: var(--customBlack);
  }

  .res-MembersHeading {
    display: none;
  }

  .membersPictureContainer {
    width: 100%;
    margin-top: 0;
  }

  .membersPictureContainer img {
    border-radius: 0;
  }

  .firstContactBox {
    margin-top: 60px;
  }

  .middleContactBox {
    margin: 60px 0;
  }

  .lastContactBox {
    margin-bottom: 60px;
  }

  .contactsBoxImage {
    background-image: url(images/1743359431786965454.jpg);
  }

  .contactInfoAnimation ion-icon {
    display: none;
  }

  .res-contactSection {
    display: flex;
  }

  .facebookContactSec, .stravaContactSec {
    display: none;
  }

  .slideshow-container,
  .dots,
  .footerContainer {
    display: none;
  }

  .res-footerContainer {
    display: flex;
  }

  .centerFooterContainer {
    margin-left: 0;
  }

  .wrapper {
    margin-left: 0;
    margin-top: 15px;
  }

  .wrapper i {
    color: var(--customBlack);
  }

  .wrapper .icon:hover .tooltip {
    visibility: hidden;
  }

  .wrapper .tooltip {
    display: none;
  }

  footer {
    height: auto;
  }

  #raceUpdates {
    width: 90% !important;
  }
}

/* Laptop AND Laptop-l MQ */
@media screen and (min-width: 820px) {
  header {
    width: 100%;
    height: 100vh;
    position: relative;
    background: lightgrey;
    background: url(./images/backgroundPresentation.jpg) no-repeat fixed center 60%;
    background-size: cover;
  }

  header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.50);
  }

  .laptop-MembersHeading {
    display: none;
  }

  .contactsInfoContainer, .contactBox {
    height: 100%;
  }

  .contactsBoxImage img {
    margin-top: 10px;
    width: auto;
    height: 200px;
    position: relative;
  }

  .contactBox h3 {
    margin-bottom: 0;
  }

  #cookieContainer {
    height: 10vh;
    padding: 15px 0;
    border-radius: unset;
  }

  .cookieText {
    text-align: left;
  }

  .cookieText h3 {
    margin-top: 0;
  }

  .cookieText img {
    display: none;
  }

  .cookieText h3, .cookieText p {
    width: 100%;
  }
}

/* Other queries */
@media screen and (max-width: 950px) {
  #contactsBottomHeading, #resContactsBottomHeading {
    width: 90%;
  }
}

/* Vertical MQ */
@media screen and (max-height: 650px) {
  #navContainer {
    height: 8vh;
  }
  
  .contactsBoxImage {
    height: auto;
  }

  .infosContainer {
    height: auto;
    padding: 10vh 0;
  }
}

@media screen and (max-height: 400px) {
  .infosContainer {
    padding: 20vh 0;
  }
}
