/*
Theme Name: Exchange Point Custom Theme
Author: Ivan Samusevich
Version: 1.0
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  cursor: url('assets/cursor-default.svg'), auto;
}

a:hover,
button:hover,
#menu-toggle:hover
.menu-icon:hover,
input[type="submit"]:hover {
  cursor: url('assets/cursor-hover.svg'), pointer;
}

html, body {
  margin: 0;
  display: flex;
  height: 100%;
  font-family: 'Courier New', Courier, monospace;
}

body {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  width: 12.25rem;
  min-width: 12.25rem;
  height: 100vh;
  background-color: white;
  box-sizing: border-box;
  border: 2px solid black
}

.site-logo {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  height: 60px;
  transition: background-color 0.3s;
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  height: 40%;
  transition: filter 0.3s, opacity 0.3s;
}

#menu-toggle {
  cursor: pointer;
  display: none;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-about   { flex: 0 0 30%; }
.nav-projects { flex: 0 0 40%; }
.nav-donate  { flex: 0 0 15%; }
.nav-contact { flex: 0 0 15%; }

.nav-list li a {
  border-top: 2px solid black;
  display: flex;
  align-items: top;
  padding-top: 1rem;
  padding-left: 1rem;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: black;
  text-align: center;
  background-color: transparent;
  transition: background-color 0.3s, color 0.3s;
}

.nav-list li a span {
  position: relative;
  font-size: 1.2rem;
}

/* Default <about> style */
.nav-list li a span::before {
  content: "<";
}

.nav-list li a span::after {
  content: ">";
}

.nav-list li:hover a {
  background-color: #1421E4;
  color: white;
}

.nav-list li:hover a span::before {
  content: "";
}

.nav-list li:hover a span::after {
  content: ">>";
}

.nav-list li.current_page_item a {
  color: #1421E4;
}

.nav-list li.current_page_item:hover a {
  color: white;
}

.content {
  box-sizing: border-box;
  min-height: 100%;
}

.content-wrapper {
  flex-grow: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: white;
}

.front-page-content, .about-content, .donations-content, .contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 33% 0 15%;
}

.contact-content {
  span a {
    color: black;
    text-decoration: none;
  }
}

.about-content {
    img {
      border: 2px solid black !important;
    }
}

.projects-content {
  display: flex;
  flex-direction: column;

  .wp-block-columns {
    padding: 5rem 15% 5rem 15%;
    border-bottom: 2px solid black;
  }
}

.heading-row {
  font-size: 20px;
  text-transform: uppercase;
  font-style: italic;
}

.wp-block-button a {
  transform: translateY(20px);
  background-color: black !important;
  border-radius: 0 !important;
}

.wp-element-button:hover {
  background-color: #1421E4 !important;
  color: white !important;
  transition: background-color 0.3s, color 0.3s;
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
    flex-direction: column;
    overflow: auto;
  }

  .front-page-content, .about-content, .donations-content, .contact-content {
    padding: 0 10% 0 10%;
  }
  
  .about-content { 
    padding-top: 20%;
  }

  .sidebar {
    width: 100%;
    height: auto;
    border: 0;
    border-bottom: 2px solid black;
  }

  .content-wrapper {
    height: auto;
    overflow-y: visible;
  }

  .mobile-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: white;
  }
  
  #menu-toggle {
    display: flex;
    align-items: center;
    padding-right: 1rem;
  }

  #mobile-nav {
    display: none;
  }

  .sidebar-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #f5f5f5;
    z-index: 999;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .sidebar-nav.open {
    display: block;
  }

  .nav-list li a {
    border-top: 0;
    border-bottom: 2px solid black;
    padding: 2rem;
  }
}

@media (min-width: 769px) {
  .site-logo:hover {
    background-color: #1421E4;

    .logo-img {
      content: url('./assets/exchange-sidebar-logo-white.svg');
    }
  }
}