@tailwind base;
@tailwind components;
@tailwind utilities;

/*
@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}
*/

/* header, main, section, footer */
main, section {
  padding: 20px;
}

footer {
  @apply rounded-lg shadow bg-gray-800 text-white m-4;
}

/* properties/index.html.erb */
.properties-section {
  @apply container mx-auto bg-slate-200;
}
.note {
  @apply text-red-600 inline-block;
  margin-left: 75%;
}
.new-prop {
  background-color: rgb(22 163 74);
  border-radius: 0.5rem;
}
.title {
  margin-inline: calc(50% - (130px / 2));
}

/* properties/edit.html.erb */
section.edit {
  text-align: center;
  width: 50%;
  margin: auto;
}

/* properties/_form.html.erb */
.edit-form {
  /*
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 10px;
  */
}

.form-rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 10px;
}

.preview-section, .photos-section {
  margin-bottom: 40px;
}

.photos-section {
  width: 100%;

  .photos-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;

    img {
      width: 48%;
    }
  }
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 80%;
}

.name-input {
  @apply
    block mb-2 text-sm font-medium text-gray-900 dark:text-white
  ;
  display: block;
  font-size: 0.875rem /* 14px */;
  line-height: 1.25rem /* 20px */;
  font-weight: 500;
  color: rgb(17 24 39);
  width: 90%;

}

.submit {
  @apply
  dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800  
    focus:outline-none focus:ring-4 focus:ring-green-300  
  ;
  width: 150px;
  background-color: rgb(21 128 61);
  color: rgb(255 255 255);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding-inline: 1.25rem;
  padding-block: 0.625rem;
  border-radius: 0.5rem;
}
.submit:hover {
  background-color: rgb(22 101 52);
  cursor: pointer;
}
.submit input {
  cursor: pointer;
}

/* _property.html.erb */
.property-item {
  margin-bottom: 30px;
}

.prop-img {
  height: 300px;
  margin-inline: auto;
}

/* _toast.html.erb */
.notice-wrapper {
  width: 25%;
  margin-inline: auto;
}
.notice {
  color: green;
}
.close-icon {
  width: 20px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
