/* This CSS file will be included in all pages */

:root {
  --footer-background-color: #101010;
  --footer-label-color: #fafafa;
  --footer-link-color: #fafafa;
  --footer-text-color: #fafafa;
  --footer-link-hover-color: #ffff00;
  --footer-button-text-color: #101010;
  --footer-button-background-color: #fafafa;
  --footer-button-hover-color: #dcdcdc;
  --footer-social-icon-color: #fafafa;
  --footer-social-width: 500px;
  --base-font-size: 22px;
}

.footer {
  display: flex;
  font-family: 'Roboto', 'Helvetica Neue', 'Arial Nova', 'Helvetica', 'Verdana', sans-serif;
  width: 100%;
  margin-top: 2em;
  background-color: var(--footer-background-color);
  justify-content: center;
  font-size: calc(var(--base-font-size) - 1px);
}

.footer .footer-row {
  display: flex;
  width: 100%;
  max-width: 1500px;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 2em 10% 4em 10%;
}

.footer-row .footer-col .footer-label {
  color: var(--footer-label-color);
  font-size: calc(1em + 2px);
  font-weight: 400;
}

.footer-col .links {
  padding-inline-start: 0;
  margin-top: 1.1em;
}

.footer-col .links li {
  list-style: none;
  margin-bottom: 0.6em;
}

.footer-col .links li a {
  text-decoration: none;
  color: var(--footer-link-color);
}

.footer-col .links li a:hover {
  color: var(--footer-link-hover-color);
}

#subscribe-button {
  background-color: var(--footer-button-background-color);
  outline: none;
  border: none;
  text-decoration: none;
  padding: 4px 0.6em;
  border-radius: 6px;
  margin: 0;
  cursor: pointer;
  font-weight: bold;
  font-size: 1em;
  transition: 0.2s ease;
  color: var(--footer-button-text-color);
}

#subscribe-button:hover {
  background-color: var(--footer-button-hover-color);
}

#first-icons-section {
  margin-right: 34px;
  z-index: 20;
}

#more-icons-section {
  position: absolute;
  top: -2px;
  right: 0;
  display: inline;
  
  summary {
    display: inline;
    float: right;

    &::-webkit-details-marker {
      display:none;
    }
  }
  
  #more-icons-div {
    display: block;
    width: calc(((1em + 20px) * 5) + 9px);
    margin-top: calc(1.35em + 14px);
    z-index: 10;
  }
  
  #more-icons-btn {
    color: var(--footer-button-text-color);
    background-color: var(--footer-button-background-color);
    outline: none;
    border: none;
    text-decoration: none;
    padding: 0 7px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 23px;
    transition: 0.2s ease;
  }
}

#footer-social-text-wrapper {
  width: 100%;
  max-width: var(--footer-social-width);
  color: var(--footer-text-color);
  margin: 1em 0;
}

#footer-social-snippet-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--footer-social-width);
  margin: 1em 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#footer-social-icons {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
  margin-left: 5px;
  
  a {
    margin: 0 4px;
    text-decoration: none;
  }
  
  .social-icon-rect {
    fill: var(--footer-social-icon-color);
  }
  
  .social-icon-svg {
    width: calc(1em + 12px);
    border-radius: 5px;
    
    &:hover .social-icon-rect {
      fill: var(--footer-button-hover-color);
    }
  }
}

@media (max-width:2500px) {
  .footer {
    font-size: calc(var(--base-font-size) - 2px);
  }
}

@media (max-width:2000px) {
  .footer {
    font-size: calc(var(--base-font-size) - 3px);
  }
}

@media (max-width:1700px) {
  .footer {
    font-size: calc(var(--base-font-size) - 4px);
  }
}

@media (max-width:1350px) {
  .footer {
    font-size: calc(var(--base-font-size) - 5px);
  }
}

@media screen and (max-width: 1050px) {
  .footer {
    font-size: calc(var(--base-font-size) - 6px);
  }
}

@media (max-width: 768px) {
  .social-title {
    width: 100%;
    text-align: center;
  }
  
  .footer .footer-row {
    padding: 2em 8% 4em 8%;
  }
}

@media screen and (max-width: 420px) {
  .footer .footer-row {
    padding: 2em 1.5em 4em 1.5em;
  }
}

@media screen and (max-width: 360px) {
  .footer .footer-row {
    padding: 2em 1em 4em 1em;
  }
  
  #footer-social-icons {
    a {
      margin: 0 3px;
    }
  }
  
  #footer-social-snippet-wrapper {
    #more-icons-div {
      width: calc(((1em + 18px) * 5) + 11px);
    }
  }
}