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

/*

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

*/
/*
 * 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.
 *


 */


 .container {
  max-width: 1800px;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  margin: 3rem;
  gap: 3rem;
  width: 100%;
 }

 .container .center {
  margin-top: 3rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 3rem;
 }

 .center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
 }

 .grid-container {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(300px, 1fr) );
  gap: 1rem
 }

 .flex-row-container {
  display: flex;
  flex-direction: row;
  width: fit-content;
  gap: 1rem;
}

 .home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
 }

 #logo {
  width: 15rem;
 }

 /* Ticket */

 .ticket form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
 }
 
 .ticket-list {
   display: flex;
   flex-direction: column;
   gap: 1rem;
  }
  
  .ticket-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .materials {
    max-width: 40rem;

    display: flex;
    flex-direction: column;
    gap: 5rem;
    justify-content: space-between;
  }

  .materials-container  {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .material-actions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .new-material-ticket {
    width: fit-content;
    height: fit-content;
  }

  .new-material-ticket form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .durations {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: fit-content;
  }

  .durations div:last-child {
    display: flex;
    gap: 1rem;
  }

  /* ------ */

  
  /* Navbar */
  
.navbar {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  row-gap: 1rem;
  align-items: center;
}

.menu-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.navbar button {
  margin-left: auto;
}

.menu-btn div {
  width: 100%;
  height: 6px;
  background-color: black;
}

#menu-dialog[open=""] {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

#menu-dialog a, #menu-dialog button {
  width: 100%;
}

 /* ----- */

/* Devise views */
  
 .sign-up form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
 }

 .edit-user form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
 }

 .edit-user .cancel {
  margin-top: 2rem;

  display: flex;
  flex-direction: column;
  width: fit-content;
 }

 .send-reset-password form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
 }

 .send-reset-password .links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
 }

 /* ------- */

 /* Points */

.ticket-points {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

 /* ------ */

 /* Username */

 .username {
  font-size: 1.8rem;
 }

 .username input[type="text"] {
  width: 20rem;
}

 /* ------- */

 /* Badge */

.admin-badge {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.badge-thumbnail {
  height: 50px;
  width: 50px;
}

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


.user-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1rem;
}

 /* ----- */

 /* Profile */

 .profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 1rem;  
 }

 .profile > * {
  border-bottom: 4px solid black;
 }

 .profile > *:last-child {
  border-bottom: none;
 }

 .profile #username {
  grid-column: 1 / 3;
 }

 /* Points + Time-spent */

 .profile #points-time-conatiner { /* flex-container for responsiveness */
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
 }

 .profile #points {
  display: grid;
  grid-template-rows: 1fr 2fr;
  grid-template-columns: repeat(4, 1fr);
 }

 .profile #points h2 {
  grid-column: 1 / span 3;
 }

 .profile #points i {
  grid-column: 3;
  grid-row: 2;

  align-self: center;
 }

 .profile #points span {
  grid-column: 1 / span 2;
  grid-row: 2;

  align-self: center;
  justify-self: end;
  font-size: 3rem;
 }

 .profile #time-spent {
  display: grid;
  grid-template-rows: 1fr 2fr;
  grid-template-columns: repeat(2, 1fr);
 }

 .profile #time-spent h2 {
  grid-row: 1;
  grid-column: 1 / -1;
 }

 .profile #time-spent span {
  font-size: 3rem;
  grid-row: 2;
  grid-column: 1 / -1;
  place-self: center center;
 }

 /* ------ */

 .profile #recent-materials {
  grid-column: 1 / 3;

  display: flex;
  flex-direction: column;
  gap: 1rem;
 }

 /* ------- */

 /* Prizes */

 .admin-prizes-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3rem;
 }

 .admin-prize {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
 }

 .admin-prize .prize-description {
     margin-bottom: auto;
 }

 .admin-prize .actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
 }

 /* ---- */

 /* Loot box */

 .slot {
  padding: 1rem;

  display: flex;
  flex-direction: column;
 }

 .prize-title {
  font-size: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
 }

 .prize-title span {
  font-size: 2rem;
 }

 .prize-title p {
  font-size: 3rem;
 }

 /* ------- */
