/* GLOBAL RESETS */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

:root {
  font-size: 62.5%;

/* COLORS */
  --nav-bg: rgba(13, 27, 42, 0.8);
  --nav-bg-ff: rgba(13, 27, 42, 1);
  --borders: rgb(13, 27, 42) solid 2px;
  --text-color: #111;
  --link-hover-color: rgb(16, 56, 158);
  --button-bg: rgb(245, 245, 245);
  --button-bg-hover: rgb(226, 226, 226);
  --submit: rgb(26, 128, 0);
  --warn: rgb(46, 42, 110);
  --danger: rgb(143, 26, 41);
  --secondary: rgb(57, 57, 57);

/* SIZING + TYPOGRAPHY */
  --card-box-shadow: 5px 5px 6px -1px #aaa;
  --card-border-radius: 6px;
  --font-xtreme: 4.2rem;
  --font-xxl: 3.6rem;
  --font-xl: 2.4rem;
  --font-l: 1.8rem;
  --font-reg: 1.6rem;
}

body {
  background: none;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-color);
  min-height: 100vh;
}

.background-overlay {
  background-image: url('../images/deal-maker-home-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45; 
  z-index: -1;
}

.overlay-content {
  position: relative;
  z-index: 1;
}

.overlay-content {
  position: relative;
  z-index: 1;
}

/* NAVIGATION */
header {
  background-color: rgba(248, 245, 244, 1); 
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 20px;
  border-bottom: var(--borders);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(4px);
}


nav {
  margin: 10px;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  padding: 5px 8px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.6rem;
}

nav a:hover {
  color: var(--link-hover-color);
}

/* HEADER LOGO */
.header-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  height: auto;
}

.header-logo {
  height: 80px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.card-container h1 {
    font-size: var(--font-xtreme);
  }

/* MAIN CONTENT */
main {
  width: 100%;
  padding: 0 10px;
}

.page-header {
  display: flex;
  align-items: center;
  margin: 20px;
}

.page-header h1 {
  font-size: var(--font-xxl);
  margin: 0;
}

.page-header img {
  height: 40px;
  margin-left: 15px;
}

.page-header img:first-of-type {
  margin-left: 20px;
}

.page-content {
  font-size: var(--font-reg);
  align-items: center;
}

/* BUTTONS */
.btn {
  font-size: var(--font-l);
  padding: 8px 16px;
  border-radius: 6px;
  border-width: 2px;
  border-style: solid;
  text-decoration: none;
  background-color: var(--button-bg);
  color: var(--text-color);
  border-color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-right: 10px;
}

.btn:hover {
  background-color: var(--button-bg-hover);
}

.edit-btn {
  background-color: #0066cc;
  color: white;
  border: none;
}

.delete-btn {
  background-color: #cc0000;
  color: white;
  border: none;
}

.submit {
  color: var(--submit);
  border-color: var(--submit);
}

.secondary {
  color: var(--secondary);
  border-color: var(--secondary);
}

.warn {
  color: var(--warn);
  border-color: var(--warn);
}

.danger {
  color: var(--danger);
  border-color: var(--danger);
}

/* MEDIA QUERIES */
@media only screen and (min-width: 768px) {
  header {
    position: sticky;
    display: flex;
    flex-direction: row;
    top: 0;
    align-items: center;
  }

  main {
    max-width: 1300px;
    min-height: calc(100vh - 53px);
  }

  nav {
    margin-left: auto;
    display: flex;
    justify-content: center;
  }

  nav ul {
    flex-wrap: nowrap;
  }

  .header-logo-container {
    width: 213px;
  }

  .page-header h1 {
    font-size: var(--font-xtreme);
  }

  .page-header img {
    height: 50px;
    margin-left: 20px;
  }

  .page-header img:first-of-type {
    margin-left: 25px;
  }
}

@media only screen and (min-width: 1024px) {
  main {
    min-height: calc(100vh - 55px);
  }

  header {
    margin: 20px 20px 0 20px;
    width: calc(100vw - 40px);
    max-width: 1920px;
    top: 20px;
    background-color: rgba(248, 245, 244, 1); 
    border-bottom: var(--borders);
    backdrop-filter: blur(4px); 

  }

  nav,
  .header-logo-container {
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
  }

  .header-logo-container img {
    height: 125px;
    width: auto;
    display: block;
    margin: 0 auto;
  }
}


.card {
  background-color: rgba(255, 255, 255, 0.3); 
  backdrop-filter: blur(6px); 
  border: var(--borders);
  box-shadow: var(--card-box-shadow);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.card-content {
  padding: 10px;
  width: 100%;
  background-color: transparent;
}

.card h2 {
  margin: 10px 0;
  font-size: var(--font-xl);
}

.card p {
  margin: 5px 0;
  font-size: var(--font-reg);
}

.card-img-container {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: transparent;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.card-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.usr-img {
  width: 100%;
  border-radius: var(--card-border-radius);
}
