@import url("https://fonts.googleapis.com/css2?family=Rubik&display=swap");
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

li {
  list-style: none;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Set core body defaults */
body {
  /* min-height: 100vh; */
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  background-color: hsl(206, 75%, 12%);
  color: hsl(210, 11%, 96%);
  font-family: "Rubik", sans-serif;
}

#app > * {
  margin-bottom: 1.4em;
}
#app {
  width: 80%;
  max-width: 1000px;
  min-height: 100dvh;
  margin: 2em auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Searchbar */
.form-group {
  background-color: #fff;
  padding: 0.78em;
  width: 60%;
  border-radius: 0.24em;
}

.form-group input {
  border: 0;
  padding: 0.58em 1.8em 0.58em 0.6em;
  width: 100%;
  background-color: transparent;
  font-size: 1.35rem;
}

.form-group input::placeholder {
  font-size: 1.3rem;
  text-transform: capitalize;
}

.form-group__input {
  border: 1px solid #eee !important;
  border-radius: 0.4em;
  margin-bottom: 0.4em;
  outline: none;
  -moz-outline-style: none;
}

.form-group__textbox {
  width: 100%;
  border: 1px solid #eee !important;
  padding-left: 0.6em;
  border-radius: 0.4em;
  outline: none;
  -moz-outline-style: none;
  resize: none;
  overflow: hidden;
}

#tweet-action {
  padding: 1em 1.6em;
}

.form-group__textbox::placeholder {
  font-size: 1.23rem;
  font-weight: 400;
}

#file-input {
  display: none;
}

#file-input-label {
  font-size: 1.2rem;
  padding: 0.34em 1em;
  border: 1px solid black;
  border-radius: 0.4em;
  margin: 0.46em 0;
  display: block;
  width: 30%;
  color: hsl(206, 75%, 12%);
}

#file-input {
  color: transparent;
}

.form-group__upload:hover::before {
  border-color: black;
}

.btn {
  padding: 0.54em 0.8em;
  display: inline-block;
  border: none;
  margin-top: 0.5em;
  width: 30%;
  background-color: hsl(206, 65%, 17%);
  border-radius: 0.5em;
  color: hsl(0, 0%, 100%);
}

/* Display tweet */
.display-tweet h2 {
  text-align: center;
}
.display-tweet ul {
  background: #fff;
  padding: 0.75em 1.6em;
  width: 600px;
  max-width: 100%;
  border-radius: 0.33em;
  color: hsl(206, 65%, 17%);
}

.display-tweet h4 {
  margin: 0;
}

.display-tweet div p {
  margin: 0 0 0.6em 0;
  font-size: 1.13em;
  font-weight: 300;
  color: hsl(204, 3%, 31%);
}

.cta-btn {
  display: flex;
  gap: 0.5em;
}

.btn-delete {
  background-color: hsl(0, 75%, 50%);
}

.btn-retweet {
  background-color: hsl(206, 65%, 17%);
}

.retweet-container {
  margin: 1em 0;
  padding: 0.78em 0.45em;
}

.hashtag {
  color: #fff;
  background: hsl(206, 65%, 17%);
}

.dimmed {
  border: 1px solid #ddd;
  background-color: #eee;
  opacity: 0.7;
}

.d-none{
  display: none;
}


/* Media Query rule */
@media only screen and (max-width: 900px){
  #app{
    width: 100%;
    max-width: 700px; 
  }
  
  .form-group{
    padding: .18em;
    width: 90%;
  }
  
  .display-tweet ul{
    padding: .45em 1.36em;
    max-width: 400px;
  }
  
  .btn{
    padding: .4em .48em;
    font-size: .7rem;
  }

  .form-group input {
    font-size: 1rem;
  }

  .form-group__textbox::placeholder,
  .form-group input::placeholder {
    font-size: 1rem;
  }

  #file-input-label {
    font-size: 1em;
  }
}

