/* General */
* {
  margin: 0;
}

input {
  outline: none;
}

textarea {
  outline: none;
}

body {
  box-sizing: border-box;
  background-color: white;
  color: gray;
  font-family: 'Noto Sans JP', sans-serif;
}

h1 {
  font-size: 1rem;
}

p {
  font-size: 0.3rem;
}

button:hover {
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto;
  grid-template-areas: 
  "header"
  "aside"
  "nav"
  "main";
}


/* header style */
header {
  grid-area: header;
  display: flex;
  align-items: center;
  background-color: rgb(20, 20, 60);
  color: white;
  width: 100%;
}

header h1 {
margin: 1.5% 1.5% 1.5% 1.5%;
font-weight: bolder;
}

.title-app {
  font-weight: 1;
}

.title-tm {
  font-size: 0.1rem;
}

.header-container {
  display: flex;
  position: absolute;
  right: 1%;
  align-items: center;
}

header p {
  width: auto;
  text-align: center;
  white-space: nowrap;
  margin: 2% 2% 2% 2%;
}

.bell {
  width:2.5rem;
  height:1.8rem;
  padding-right:0.5rem;
  margin: 2% 2%;
  border-right: 1px solid white;
  transition: fill 0.3s ease-in-out;
  fill: white;
}

 .bell:hover {
  cursor: pointer;
  fill:  orange;
}

/*
@keyframes bellshake{
  0% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(-5deg);
  }
  20% {
    transform: rotate(5deg);
  }
  30% {
    transform: rotate(-4deg);
  }
  40% {
    transform: rotate(4deg);
  }
  50% {
    transform: rotate(-3deg);
  }
  60% {
    transform: rotate(3deg);
  }
  70% {
    transform: rotate(-2deg);
  }
  80% {
    transform: rotate(2deg);
  }
  90% {
    transform: rotate(-1deg);
  }
  100% {
    transform: rotate(0deg);
  }
  }
 */

#pop {
  display: none;
  max-width: 120px;
  background-color: white;
  color: navy;
  position: absolute;  
  top: 0rem;
  left: 1.2rem;
  padding:0.3rem 0.5rem 0.5rem 0.5rem;
  list-style: none;
  text-align: left;
  border: 2px navy solid;
  border-radius: 5px;
  z-index: 0;
}

#pop li {
  border-bottom: navy solid 1px;
  font-size: 0.3rem;
}

.notification {
  background-color: orange;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  position: absolute;
  left: 1rem;
  top: 0.3rem;
}

.mypic {
  width:1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  margin-left: 3%;
  margin-right: 3%;
}


/* sidebar style*/
aside {
  grid-area: aside;
  background-color: rgb(20, 20, 90);
  text-align: center;
}

.sidebar-container{
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.sidebar-icon {
  width: 1rem;
  height: 1rem;
  margin: 2% 3% 2% 3%;
 }


 /* nav style */
.index-wrap {
  display: flex;
  align-items: center;
  height: 2rem;
}

.index {
  font-size: 0.7rem;
  margin: auto;
  text-align: center;
  color: orange;
  font-weight: bold;
  white-space: nowrap;
}

.input-wrap {
  border-radius: 0 0 0 5px;
  width: 77%;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-color: rgb(230, 230, 255);
  position: relative;
  top: -1px;
}

.searchbox {
  -webkit-appearance:none;
  margin-right: 0.5rem;
  height: 1rem;
  width: 60%;
  border:solid 1px whitesmoke;
  border-radius: 3px;
  font-size: 0.5rem;
}

#alert {
  background-color: rgb(20, 20, 100);
  color: white;
  margin: 0.5rem 0.5rem 0.5rem 0.5rem ;
  height: 30px;
  line-height: 30px;
  padding-left: 10px;
  border-radius: 3px;
  font-size: 0.3rem;
}

.close-btn {
  position: absolute;
  right: 1rem;
  font-weight: bold;
}

.close-btn:hover {
  cursor: pointer;
}


/* main style */
main {
  grid-area: main;
  display: grid;
}

.traffic,
.daily-traffic,
.mobile-users,
.social-users,
.social-stats,
.new-members,
.recent-activity,
.message-user,
.settings {
  border-bottom: lightgray solid 1px;
}

.traffic {
  border-top: none;
}

.subject {
  padding: 0.8rem 0.4rem 0.8rem 0.4rem;
  font-weight: bolder;
  color: orange;
}

.widget-container-full,
.widget-container-half {
  width: 95vw;
  margin: 0.3rem auto 1rem auto;
}


/* traffic style */
.traffic-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: 0.5rem;
}

.time-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 60%;
}

.time-wrap p {
  text-align: center;
  width: 40%;
  border-radius: 10%/50%;
  transition: background-color 0.5s ease-in-out;
}

.time-wrap p:hover {
  background-color: rgb(20, 20, 100);
  border-radius: 10%/50%;
  text-align: center;
  color: white;
  cursor: pointer;
 }


 /* social-stats style */
.social-wrap {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  margin: 0 1rem 1.5rem 1rem ;
  height: 16rem;
}

.social-container {
  width: 220px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  background-color: whitesmoke;
  border: darkgray 1px solid;

}

.icon-size {
  background-color: rgb(20, 20, 90);
  border-radius: 50%;
  fill: white;
  width: 50px;
  height: 50px;
  margin: 0.5rem 1rem 0.5rem 1rem;
}

.social-media {
  position: relative;
  top:5px;
  font-size: 0.8rem;
  color: rgb(20, 20, 90);
}

.social-number {
  font-size: 1.8rem;
  color: orange;
}


/* new-members and recent-activity style */
.member-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid whitesmoke;
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
}

.member-info {
 display: flex;
 width: 90%;
}

.member-icon {
  width:40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 1rem;
}

.member-wrap {
  display: flex;
  flex-direction: column;
  margin: 0 1rem 1rem 1rem ;
}

.member-container:last-of-type {
  border-bottom: none;
}

.member-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  width: 70%;
  line-height: 0.8rem;
}

.member-text2 p:first-of-type {
  font-family: 'Open Sans', sans-serif;
}

.member-text2 p:last-of-type {
  font-size: 0.5rem;
}

.member-text a {
 color: navy;
 font-size: 0.7rem;
}

.member-text a:visited {
 color: rgb(158, 63, 142);
}


/* message-user style */
form {
  display: flex;
  flex-direction: column;
  margin: auto;
  margin-bottom: 1rem;
  justify-content: space-between;
  height: 10rem;
  width: 90%;
}

.message-input {
  -webkit-appearance:none;
  height:1rem;
  border:solid 1px lightgrey;
  border-radius: 3px;
}

input::-webkit-calendar-picker-indicator {
	display: none;
}

.message-text {
  -webkit-appearance:none;
  height: 4rem;
  border: none;
  border:solid 1px lightgrey;
  border-radius: 3px;
  resize: none;
}

.message-button {
  height:2rem;
  background-color: rgb(20, 20, 90);
  border: none;
  color: white;
  border-radius: 3px;
}


/* settings style */
.settings:first-of-type {
 margin-top: 10rem;
}

.toggle-switch {
  display: flex;
  margin: auto;
  align-items: center;
  width: 90%;
}

.switch1,
.switch2:hover {
  cursor: pointer;
}

.switch2 {
  margin-top: 1rem;
}

.switch-light {
  width: 4.5rem;
  height: 2rem;
}

.toggle-switch  p{
  width: 50%;
  padding-right: 1rem;
}

.setting-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.setting-select {
  width: 100%;
  /* text-align: center; */
  border:solid 1px lightgrey;
  border-radius: 3px;
  margin: 1rem 1rem 1rem 1rem;
  padding-left: 0.5rem;
}

.setting-select:hover {
  cursor: pointer;
}

select{
 -webkit-appearance: none;
 color: gray;
}

option{
 padding-left: 1rem;
}

option:hover {
  cursor: pointer;
}

.setting-button {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.setting-button button {
  height:2rem;
  width: 45%;
  background-color:rgb(20, 20, 90);
  border: none;
  color: white;
  border-radius: 3px;
}


/* over 768px */
@media(min-width: 768px) {
 /* general */
  h1 {
    font-size: 1.4rem;
  }

  p {
    font-size: 0.7rem;
  }

  .grid {
    grid-template-columns: 55px 1fr;
    grid-template-areas: 
    "header header"
    "aside nav"
    "aside main"
    "aside main";
  }

  main {
    display: grid;
    grid-template-columns: 50% ;
  }
    
  .traffic,
  .daily-traffic,
  .mobile-users,
  .social-users,
  .social-stats,
  .new-members,
  .recent-activity,
  .message-user,
  .settings {
    border-bottom: lightgray solid 1px;
    border-right: lightgray solid 1px;
  }

  .traffic {
    border-top: none;
  }
  
  .traffic,
  .social-stats {
    grid-column: 1 / span 2 ;
  }

  .daily-traffic,
  .new-members,
  .message-users {
   grid-column: 1 / span 1 ;

  }

  .mobile-users,
  .recent-activity,
  .settings {
    grid-column: 2 / span 1;
  }

  .widget-container-full{
    width: 90vw;
    margin: 1rem auto 2rem auto;
  }

  .widget-container-half {
    width: 45vw;
    margin: 1rem auto 2rem auto;
}

  .sidebar-container {
   flex-direction: column;
  }

  .sidebar-icon {
    width: 2rem;
    height: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .index {
    font-size: 1rem;
  }

  .index-wrap {
    height: 3rem;
  }

  .input-wrap {
    width: 85%;
    height: 2.8rem;
  }

  .searchbox {
    height: 1.5rem;
    font-size: 0.7rem;
  }

  .time-wrap {
    width: 25%;
  }

  .social-wrap {
    display: flex;
    flex-direction: row;
    margin-bottom: 2rem;
    height: 6rem;
  }

  .social-container {
    width: 200px;
    height: 5rem;
  }

  .bell {
    width: 4rem;
    height: 2rem;
  }

  .notification {
    width: 0.8rem;
    height: 0.8rem;
    left: 1.8rem;
    top: 0;
  }

  #pop {
    left: 2.3rem;
    top: -0.3rem;
  }

  .mypic {
    width:2rem;
    height: 2rem;
    margin-left: 1rem;
    margin-right: 1rem ;
  }

  .social-media {
    margin-left: 0;
    font-size: 0.9rem;
    top:7px;
    }

    .icon-size {
      height: 55px;
      width: 55px;
    }

  .social-number {
    font-size: 1.8rem;
  }

  .member-text2 p:last-of-type {
    font-size: 0.7rem;
  }

  form {
    height: 14rem;
  }

  .message-input {
    height:1.5rem;
  }
  
  .message-text {
    height: 6rem;
    border: none;
    border:solid 1px lightgrey;
    border-radius: 3px;
  }
  
  .message-button {
    height:2rem;
    border: none;
    color: white;
    border-radius: 3px;
  }  
  
  .setting-container {
    display: flex;
    justify-content: space-between;
    height: 8rem;
  }

  .setting-select {
    height: 2rem;
  }
  
  .setting-button {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  
  .setting-button button {
    height:2rem;
    border: none;
    color: white;
    border-radius: 3px;
    margin-bottom: 1rem;
  }
}


  /* over 1024px */
@media(min-width:1024px) {
  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 0.8rem;
  }

  .header-title {
   font-size: 1.5rem;
  }

  .index {
    font-size: 1.2rem;
  }

  .bell {
    width: 4rem;
    height: 2rem;
  }

  .mypic {
    width:2rem;
    height: 2rem;
    margin-left: 1rem;
    margin-right: 1rem ;
  }

  .notification {
    width: 1rem;
    height: 1rem;
    left: 1.8rem;
    top: 0;
  }

  #pop {
    max-width: 120px;
    padding: 0.5rem 1rem 0.5rem 1rem;
    top: -10px;
  }

  #pop li {
    font-size: 0.7rem;
  }

  .input-wrap {
    width: 88%;
    height: 2.8rem;
  }

  .searchbox {
    font-size: 0.8rem;
  }

  #alert {
    font-size: 0.7rem;
  }
  
  .social-wrap {
    display: flex;
    flex-direction: row;
    margin-bottom: 2rem;
    margin-left: 3rem;
    margin-right: 3rem;
    height: 8rem;
  }

  .social-container {
    width: 260px;
    height: 6.5rem;
    background-color: whitesmoke;
    border: 1px solid lightgray;
  }

  .icon-size {
    height: 70px;
    width: 70px;
  }

  .social-media {
    margin-left: 0;
    font-size: 1rem;
  }

  .social-number {
    font-size: 2.8rem;
  }
}