/* Okay, two last things potentially to add design-wise:

-make nav bar and sidebar position fixed on page, scroll with you. (and the main header bar)
-add a "who to follow" section to the sidebar

*/

* {
  margin: 0;
  padding: 0px;
  box-sizing: border-box;
  color: rgb(20, 23, 26);
  }

:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  font-size: 16px;
}

/* default button appearance settings */
.btn {
  background-color: rgb(29, 161, 242);
  color: white;
  padding-left: 1em;
  padding-right: 1em;
  padding-top: 10px;
  padding-bottom: 10px;
  min-width: calc(62.79px);
  min-height: 39px;
  transition-property: background-color, box-shadow;
  transition-duration: 0.2s;
  font-size: 15px;
  border-radius: 30px;
  font-weight: bold;
}

/* default button hover settings */
.hover:hover {
  cursor: pointer;
}

.btn.hover:hover {
  background-color: rgb(26, 145, 218);
}

input:focus,
select:focus,
textarea:focus {
  outline-width: 0px;
}

.wrapper {
  margin: 0 auto;
  padding-right: 15px;
  padding-left: 15px;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 75px 1fr;
  grid-template-areas:
  "banner"
  "main";
}

.banner {
  grid-area: banner;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo, .title {
  margin: 0px 10px;
  font-weight: 900;
  font-size: 2rem;
}

.logo {
  width: 2rem;
  height: 2rem;
}

.menu {
  grid-area: menu;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 10px;
  margin-right: 20px;
}

.menu-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 7.5px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.menu-item {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  margin: 5px 0px;
}

.menu-text {
  display: none;
  font-size: 19px;
  font-weight: bold;
  padding-right: 20px;
  flex: none;
}

.menu-icon {
  width: 50px;
  height: 50px;
  padding: 10px;
  flex: none;
}

.menu-item .tweet-btn.btn {
  display: none;
}

.icon.active > path {
  fill: rgba(29,161,242,1.00);
}

.menu-item:hover {
  color: rgba(29,161,242,1.00);
  background-color: rgba(29,161,242,0.1);
}

  .menu-item:hover .icon path {
  fill: rgba(29,161,242,1.00);
}

.menu-item:hover .menu-text {
  color: rgba(29,161,242,1.00);
}

.main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
  width: 100%;
}

.main-header {
  border: 1px solid rgb(230, 236, 240);
  width: 100%;
  padding: 10px 0px;
  display: flex;
  align-items: center;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background-color: white;
}

.main-header .menu-item {
   margin-left: 20px;
   margin-right: 0px;
}

.main-header .back-btn {
   width: 50px;
   height: 50px;
}

.main-header .main-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px 20px;
  line-height: 1.5;
}

.main-title {
  font-size: 19px;
  font-weight: 800;
}

.main-header .tweet-count {
  color: rgb(101, 119, 134);
}

.tweeter {
  display: grid;
  border: 1px solid rgb(230, 236, 240);
  border-top-width: 0px;
  border-bottom-width: 10px;
  padding: 10px 0px;
  grid-template-rows: 1fr 40px;
  grid-template-columns: 13% 87%;
  grid-template-areas:
    "profile input"
    ". footer"
}

.tweeter .profile {
  grid-area: profile;
  display: flex;
  justify-content: center;
}

.tweeter .input-container {
  grid-area: input;
  max-height: 38.0625em;
  min-height: 1.3125em;
  display: flex;
}

.tweeter .tweet-input {
  align-items: center;
  font-weight: 400;
  font-size: 19px;
  width: 100%;
  padding: 10px;
  border: none;
}

.tweeter .footer-container {
  grid-area: footer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 15px;
}

.tweeter .footer-icons {
  display: flex;
}

.footer-icons .icon {
  width: 42px;
  height: 42px;
}

.tweet-container {
  transition: opacity 0.3s ease-out 0s;
  padding: 10px 0px;
  padding-right: 10px;
  font-size: 15px;
  border: 1px solid rgb(230, 236, 240);
  border-top-width: 0px;
  display: grid;
  grid-template-rows: 25px 1fr 25px;
  grid-template-columns: 13% 87%;
  grid-template-areas:
    "profile header"
    "profile message"
    "profile footer"
}

.tweet-container .profile {
  grid-area: profile;
  display: flex;
  justify-content: center;
}

.profile-pic {
  margin-top: 10px;
  height: 25px;
  width: 25px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.02) 0px 0px 2px inset;
  transition-property: background-color, box-shadow;
  transition-duration: 0.2s;
  cursor: pointer;
  display: block;
  overflow-x: hidden;
  overflow-y: hidden;
}

.tweet-container .header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0px;
}

.tweet-container .info {
  display: flex;
}

.tweet-container .info div {
  padding-right: 5px;
}

.info div {
  color: rgb(101, 119, 134);
}

.info .name {
  color: rgb(20, 23, 26);
  font-weight: bold;
  font-size: 15px;
}

.info .name:hover {
 text-decoration: underline;
}

.tweet-container .icon {
  width: 1rem;
  height: 1rem;
}

.tweet-container .message {
  grid-area: message;
  margin: 10px 0px;
}

.tweet-container .footer {
  grid-area: footer;
  display: flex;
  justify-content: space-between;
  max-width: 425px;
}

.tweet-container .footer {
  display: flex;
  margin-top: 10px;
}

.footer .footer-item {
  display: flex;
}

.footer .footer-item div {
  margin-left: 5px;
  margin-right: 5px;
  font-size: 14px;
}

.tweet-container:hover {
  background-color: rgb(245, 248, 250);
}

.sidebar {
  grid-area: sidebar;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 10px;
  width: 100%;
  margin-left: 10px;
}

.sidebar-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 12.5px;
}

.sidebar .search-container {
  font-size: 19px;
  padding: 10px;
  margin-bottom: 10px;
  background-color: rgb(230, 236, 240);
  border-radius: 30px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.search-container .search-icon {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  margin-right: 10px;
}

.search-icon > path {
  fill: rgb(101, 119, 134);
}

.search-container input {
  background-color: inherit;
  border: none;
}

.trends-container {
  background-color: rgb(245, 248, 250);
  border-radius: 15px;
  font-size: 15px;
}

.trends-container .header {
  font-weight: 800;
  font-size: 19px;
  padding: 20px 15px;
  border-bottom: 1px solid rgb(230, 236, 240);
}

.trends-container .trend-item {
  padding: 10px 15px;
  border-bottom: 1px solid rgb(230, 236, 240);
  line-height: 1.5125;
}

.trend-item .info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgb(101, 119, 134);
  font-size: 14px;
}

.trend-item .icon {
  width: 1rem;
  height: 1rem;
  fill: rgb(101, 119, 134);
}

.trend-item .trend {
  font-weight: bold;
}

.trend-item .popularity {
  color: rgb(101, 119, 134);
}

.trends-container .footer {
  margin: 6px 0px;
  padding: 10px 15px;
  color: rgba(29,161,242,1.00);
}

.trend-item:hover, .trends-container .footer:hover {
  background-color: rgb(230, 236, 240);
}

/* sets up the background of all Modal Windows, allows clicking outside the window to close it */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal.active {
  display: block;
}

body.freeze {
  overflow: hidden;
}

/* Modal Content/Box: default apperance settings */
.modal-content {
  background-color: #fefefe;
  margin: 10% auto; /* 10% from the top and centered */
  width: 600px;
  height: 300px;
  border-radius: 30px;
}

.tweeter.modal-content {
  display: grid;
  border-bottom-width: 0px;
  grid-template-rows: 40px 1fr 40px;
  grid-template-columns: 13% 87%;
  grid-template-areas:
    "topbar topbar"
    "profile input"
    ". footer"
}

.topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgb(230, 236, 240);
}

/* The Close Button: default appearance settings */
.close {
  fill: rgba(29,161,242,1.00);
  height: auto;
  width: 25px;
  margin-left: 15px;
}

/* default close button hover settings */
.close:hover,
.close:focus {
  text-decoration: none;
  cursor: pointer;
}

.tweeter.modal-content .input-container {
  margin-top: 10px;
}

textarea {
  resize: none;
}

.hidden {
  display: none;
}

@media screen and (min-width: 480px) {
  .profile-pic {
    height: 40px;
    width: 40px;
  }  
}

@media screen and (min-width: 768px) {
  .wrapper {
    width: 750px;
    grid-template-columns: 15% 85%;
    grid-template-rows: 75px 1fr;
    grid-template-areas:
    "banner banner"
    "menu main";
  }
  .menu {
    display: flex;
  }
  .profile-pic {
    height: 49px;
    width: 49px;
  }
}

@media screen and (min-width: 768px) {
  .wrapper {
    width: 750px;
    grid-template-columns: 15% 85%;
    grid-template-rows: 75px 1fr;
    grid-template-areas:
    "banner banner"
    "menu main";
  }
  .menu {
    display: flex;
  }
  .profile-pic {
    height: 49px;
    width: 49px;
  }
}

@media screen and (min-width: 992px) {
  .wrapper {
    width: 970px;
    grid-template-columns: 15% 1fr 30%;
    grid-template-rows: 75px 1fr;
    grid-template-areas:
    "banner banner banner"
    "menu main sidebar";
  }
  .sidebar {
    display: flex;
  }
   .main {
    width: 90%;
  }
}

@media screen and (min-width: 1200px) {
  .wrapper {
    width: 90%;
    max-width: 1300px;
  }
  .menu-text {
    display: block;
  }
  .menu-wrapper {
    align-items: flex-start;
  }
  .menu-item .tweet-btn.icon {
    display: none;
  }
  .menu-item .tweet-btn.btn {
    display: block;
    font-size: 15px;
    width: 170px;
    text-align: center;
  }
}