/* 內文css */
html {
  margin: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  min-height: 100vh;
  /* background-color: #fafafa; */
  /* display: flex; */
  justify-content: center;
  align-items: center;
}

/* .container{
    width: 100%;
    padding: 35px 10%;
  } */
.container {
  padding-right: calc(10%-30px);
}

/* main .row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 20px;
  } */
.col header .title {
  font-family: helvetica;
  color: #11a372;
  padding: 0px 0px 20px 30px;
}

.col .contents {
  padding: 0px 30px;
  border-left: 4px solid #F95738;
}

.col .contents .box {
  position: relative;
  padding: 20px;
  border: 1px solid #ffffff;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.4s;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.col .contents .box:hover {
  box-shadow: 0px 15px 20 px 0px #ccc;
  border: 1px solid transparent;
}

.col .contents .box::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  right: calc(100% + 24.5px);
  top: 50%;
  /* background-color: #11a372; */
  background: #F95738;
  border: 2px solid white;
}

.box h4 {
  position: relative;
  color: #11a372;
}

.box h3 {
  font-size: 19px;
  padding: 10px 0px px 6px;
  font-family: gelvetica;
  color: #444;
}

.box p {
  line-height: 1.2;
  color: #666;
  font-size: 17px;

}

@media(max-width: 769px) {
  main.row {
    grid-template-columns: 1fr;
  }

  .row.col:nth-child(2) {
    margin-top: 30px;
  }

}

.avatar {
  width: 120px;
  /* or whatever size you want */
}




/* ig條列css */
.stories {
  display: flex;
  /* justify-content: space-around; */
  padding-bottom: 50px;
  overflow-x: auto;
}

.story {
  position: relative;
  width: 100px;
  height: 100px;
  margin-right: 10px;
  border-radius: 50%;
  /* overflow: hidden; */
  /* flex-shrink: 0; */
}

.story::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 0;
  background: linear-gradient(to bottom left, #CA03B4, #EE0183, #F13D3A, #F89208, #FBCE0B);
}

.story img.avatar {
  position: absolute;
  top: 2.8%;
  left: 2.8%;
  width: 95%;
  height: 95%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2.5px solid white;
  box-sizing: border-box;
}

.story .username {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  text-align: center;
}

/* 以下story和gray不能分開 */
.story.gray::before {
  background: #525252;
}

.story .gray img.avatar {
  top: 2.2%;
  left: 2.2%;
  width: 96%;
  height: 96%;
  border-width: 3px;
}