@import url('https://fonts.googleapis.com/css2?family=Cambay:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import 'header.css';

:root {
  --main-font: 'Cambay', sans-serif;
}

body {
  padding: 0;
  margin: 0;
  font-family: var(--main-font);
}

.container {
  padding: 20px;
}

@media (min-width: 1024px) {
  .container {
    margin: 0 auto;
    max-width: 960px;
    padding: 20px 40px;
  }
}

.content-section,
.content-section form {
  width: 100%;
  height: auto;
}
.content-section {
  padding: 50px;
  outline: none;
}

.content-section form {
  display: flex;
  margin: 0;
  align-items: center;
}

@media (max-width: 768px) {
  .content-section {
    padding: 50px 0;
  }

  .content-section form {
    flex-direction: column;
  }

  .content-preview,
  .content-input {
    width: 100%;
    margin-bottom: 20px;
  }

  .content-button {
    margin-left: 0;
  }
}

.content-input,
.content-button {
  height: 50px;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid black;
  font-size: 16px;
  font-family: var(--main-font);
}

.content-preview {
  font-size: 20px;
}

.content-preview,
.content-input {
  width: 80%;
}

.content-button {
  min-width: 100px;
  background-color: #4a4a4a;
  color: #ffffff;
  margin-left: 20px;
}

.content-button:disabled {
  background-color: #d3d3d3;
  color: #a9a9a9;
  cursor: not-allowed;
}

.centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .content-section {
    padding: 20px 0 30px;
  }

  .content-section form {
    flex-direction: column;
  }

  .content-preview,
  .content-input {
    width: 100%;
    margin-bottom: 20px;
    font-size: 16px;
  }

  .content-preview {
    display: -webkit-box;
    width: 100%;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em;
    height: 2.4em;
  }

  .content-button {
    margin-left: 0;
  }
}
