* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.5;
  }

  body {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    height: 100vh;
    overflow: hidden;
  }

  .main_container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 144px);
    overflow: hidden scroll;
  }

  .header-main {
    text-align: center;
    padding: 10px 30px;
    color: #ffffff;
    background-color: #b12029;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navigation {
    display: flex;
    justify-content: space-between;
    gap: 30px;
  }

  .navigation a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    border-top: 1px solid #b12029;
    border-bottom: 1px solid #b12029;
  }

  .navigation a.active {
    border-top: 1px solid white;
    border-bottom: 1px solid white;
  }

  .panel-heading {
    padding: 20px 10px;
    text-align: center;
    background-color: #b2c8cc;
  }

  header h1 {
    font-size: 24px;
  }

  header p {
    margin: 4px 0 0;
    font-size: 14px;
  }

  footer {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    color: #ffffff;
    background-color: #000000;
    border-top: 1px solid #ccc;
    margin-top: auto;
  }

  .drop-area {
    color: #007BFF;
    background-color: #027bff14;
    border: 4px dashed #007BFF;
    border-radius: 40px;
    width: calc(80% - 40px);
    margin: auto;
    cursor: pointer;
    height: 80%;
    font-size: 24px;
    display: grid;
    place-items: center;
    transition: background-color 0.3s, border-color 0.3s;
  }

  .drop-area:has(~ #cropContainer.active),
  .drop-area:has(~ #outputContainer.active) {
    height: 20%;
    padding: 40px;
    margin: 20px auto;
    border-radius: 25px;
    border-width: 2px;
  }

  .drop-area.dragover {
    background-color: #e0f0ff;
    border-color: #0056b3;
  }

  .output-container {
    display: none;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
  }

  .output-container.active {
    display: flex;
  }

  .resized-block {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    width: fit-content;
  }

  canvas {
    display: block;
    margin: 10px auto;
  }

  .download-link,
  button {
    display: inline-block;
    margin: 4px 6px 0;
    padding: 10px 16px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    border: none;
  }

  .download-link:hover {
    background-color: #0056b3;
  }

  #cropContainer {
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    display: none;
  }

  #cropContainer.active {
    display: block;
  }

  #cropContainer img {
    max-width: 100%;
    max-height: 500px;
  }

  #cropActions {
    margin-top: 10px;
    text-align: center;
  }

  input[type="file"] {
    display: none;
  }