/* for blog article page */

section#article {
  padding: 5% 0 0 0;
} 

h1 {
  padding-bottom: 3%;
}

#article div {
  padding: 0.5%;
  font-size: 1rem;
}

#article .content {
  padding-top: 3%;
  font-size: 1.4rem;
}

#comment p {
  font-size: 1rem;
}

#comment .content {
  font-size: 1.2rem;
}

h3 {
  font-size: 1.4rem;
}

.form-container {
  display: flex;
  flex-direction: column; /* フォーム内のフィールドを縦方向に配置 */
  align-items: center;
  justify-content: center;
}

form {
  width: 100%;
}

label {
  font-size: 1.2rem;
}

input.form {
  height: 3rem;
  width: 100%;
  font-size: 1.5rem;
}

textarea {
  width: 100%;
  font-size: 1.5rem;
}

select {
  width: 40%;
  height: 3rem;
  font-size: 1.3rem;
}

select#tags {
  height: 10rem;
}

input.button {
  font-size: 1rem;
  margin: 1% 1% 0 0;
  height: 50px;
  width: 100px;
  border: solid 0.5px #b7b7b7;
  border-radius: 5%;
  cursor: pointer;
}

input.delete-button {
  margin-left: 50px;
}

input.button:hover {
  background-color: #ff9a9a;
  color: white;
  border-color: #ff9a9a;;
  border-radius: 5%;
}

input.delete-button:hover {
  background-color: #ff0000;
}


input.button:active {
  color: white;
  background-color: #ff0000;
}

input.delete-button:active {
  background-color: #00bfff;
}

div.message {
  display: flex;
  justify-content: center;
}

.error {
  color: red;
}


/* Media queries */

/* for Mobile */
@media (max-width: 690px){

  #article .content {
    font-size: 1.1rem;
  }
  
  #comment p {
    padding-bottom: 0;
  }

  #comment li {
    padding-top: 4%;
  }

  
  h3 {
    font-size: 1.2rem;
  }

  textarea {
    width: 100%;
    height: 5rem;
  }

  input {
    margin-top: 1%;
  }

  section {
    padding-bottom: 8%;
  }

  #comment {
    padding-bottom: 2%;
  }

  #comment-post p {
    padding-top: 5%;
    font-size: 1rem;
  }

  label {
    font-size: 1rem;
  }

  #edit #content {
    height: 500px;
    font-size: 1.2rem;
  }

  input.button {
    margin: 3% 1% 0 0;
  }

  select {
    width: 100%;
  }

  select#tags {
    height: 3rem;
  }

}