/* CSS kodi fyrir Aurora jewelry - endilega hafid samband css@lavarockreykjavik.com 
ef thid hafid ahuga a kodanum, eda afhverju akvedin kodi er notadur, sem birtist a sidunni. 

## kodi seinast uppfaedur 7nov 2025 -- changelog - #0.25
*/

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Cardo:400i|Rubik:400,700&display=swap');

:root {
  --d: 700ms;
  --e: cubic-bezier(0.19, 1, 0.22, 1);
  --font-sans: 'Rubik', sans-serif;
  --font-serif: 'Cardo', serif;

  --h-color: firebrick;
}

HTML {
	color-scheme: dark;
  scroll-behavior: smooth;
	}

*, :after, :before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  text-rendering: optimizeSpeed;
  font-family: system-ui;
  display: grid;
  grid-template-rows: auto 1fr auto;
	min-height: 100dvh;
/*	background: linear-gradient(0deg, rgb(58, 14, 56) 0%, rgb(44, 95, 26) 50%, rgb(15, 36, 92) 100%) no-repeat; */
}

/* setja her ef breyta h1-h5 a i o.s.f */

h1 {
  color: var(--h-color);
  font-family: system-ui;
  font-size: 2rem;
  padding: 1rem;
  width: fit-content;
}

h2 {
  color: var(--h-color);
}


/* :target state - losna vid a shrinka og staekka collection */

:target {
  outline: 3px solid;
  outline-offset: 1px;
}


/* hafa alla P saman */

p {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.25rem;
  line-height: 1.35;
  color: #262626;
  letter-spacing: -.4px;
  margin-top: .3rem;
  margin-bottom: 1.25rem;
}

p.collection-title {
  margin-inline: auto;
  width: fit-content;
  font-size: 1.4rem;
  color:hsl(125 125 155);
}

p.footer-p {
  color:antiquewhite;
  letter-spacing: 0.7;
}


/* A linkar */

a {
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  color: rgb(255, 247, 247);
    &:hover {
      box-shadow: 0 0 6px orange;
    }
}

/* lita linka sem er visited - til ad losna vid java */

.link-active > a {
  color: #FF8C00;
}

/* Header sem navigations lifa inni i */


/* nav css - navigation linkar efst a sidu */


.primary-nav {
  padding: 2rem 0;
}

.collection-nav {
  outline: 2px solid violet;
  background: #2b35832e;
  padding: 1rem 0;
}

.nav-list {
  display: flex;
  font-weight: 600;
  text-transform: uppercase;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 2rem;
}

/*
.nav-list li a {
  color: rgb(255, 247, 247);
}
*/


/* Main-page er adal body main wrapperinn */

.main-page {
  width: min(960px, 90%);
  margin: 1rem auto;
  background: rgb(214, 207, 207);
  padding: 2rem;
}

/* FOOTER -- Footer css her fyrir nedan */

.primary-footer {
  display: flex;
  flex-wrap: wrap;
/*  background: #563140; */
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

/* setja media - container qu. her? */


/* Top card collection selectors - timabundid settings */

.card-wrapper {
  display: grid;
  grid-gap: 1rem;
  padding: 1rem;
  max-width: 1024px;
  margin: 0 auto;
  font-family: var(--font-sans);
}
@media (min-width: 600px) {
  .card-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* thetta media faer ser linu thvi that hefur harif a texta og h1 nedar */
@media (min-width: 800px) and (max-width: 1023px) {
  .card-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* */
@media (min-width: 1024px) {
  .card-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  width: 100%;
  text-align: center;
  color: whitesmoke;
  background-color: whitesmoke;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.1), 0 8px 8px rgba(0, 0, 0, 0.1), 0 16px 16px rgba(0, 0, 0, 0.1);
}
@media (min-width: 600px) {
  .card {
    height: 350px;
  }
}
.card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  background-size: cover;
  background-position: 0 0;
  transition: transform calc(var(--d) * 1.5) var(--e);
  pointer-events: none;
}
.card:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.009) 11.7%, rgba(0, 0, 0, 0.034) 22.1%, rgba(0, 0, 0, 0.072) 31.2%, rgba(0, 0, 0, 0.123) 39.4%, rgba(0, 0, 0, 0.182) 46.6%, rgba(0, 0, 0, 0.249) 53.1%, rgba(0, 0, 0, 0.32) 58.9%, rgba(0, 0, 0, 0.394) 64.3%, rgba(0, 0, 0, 0.468) 69.3%, rgba(0, 0, 0, 0.54) 74.1%, rgba(0, 0, 0, 0.607) 78.8%, rgba(0, 0, 0, 0.668) 83.6%, rgba(0, 0, 0, 0.721) 88.7%, rgba(0, 0, 0, 0.762) 94.1%, rgba(0, 0, 0, 0.79) 100%);
  transform: translateY(-50%);
  transition: transform calc(var(--d) * 2) var(--e);
}
.card:nth-child(1):before {
  background-image: url(/assets/img/aur-1.jpg);
}
.card:nth-child(2):before {
  background-image: url(/assets/img/bbe-1.jpg);
}
.card:nth-child(3):before {
  background-image: url(/assets/img/dim-1.jpg);
}
.card:nth-child(4):before {
  background-image: url(/assets/img/vol-1.jpg);
}
.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1rem;
  transition: transform var(--d) var(--e);
  z-index: 1;
}
.content > * + * {
  margin-top: 1rem;
}
.title {
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.2;
  color:blanchedalmond;
}
.card-texti {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.35;
  color:blanchedalmond;
}
.btn {
  cursor: pointer;
  padding: 1rem 1.75rem;
  font-weight: bold;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  color: white;
  background-color: black;
  border: none;
  outline: 0.1px solid orange;
}
.btn:hover {
  background-color: #0d0d0d;
}
.btn:focus {
  outline: 1px dashed yellow;
  outline-offset: 3px;
}
@media (min-width: 769px) and (max-width: 1023px) {
  .title {
    font-size: 1.1rem;
  }
  .card-texti {
    font-size: 0.9rem;
  }
  .btn {
    padding: 0.35rem 0.95rem;
  }
}
@media (hover: hover) and (min-width: 600px) {
  .card:after {
    transform: translateY(0);
  }
  .content {
    transform: translateY(calc(100% - 4.5rem));
  }
  .content > *:not(.title) {
    opacity: 0;
    transform: translateY(1rem);
    transition: transform var(--d) var(--e), opacity var(--d) var(--e);
  }
  .card:hover, .card:focus-within {
    align-items: center;
  }
  .card:hover:before, .card:focus-within:before {
    transform: translateY(-4%);
  }
  .card:hover:after, .card:focus-within:after {
    transform: translateY(-50%);
  }
  .card:hover .content, .card:focus-within .content {
    transform: translateY(0);
  }
  .card:hover .content > *:not(.title), .card:focus-within .content > *:not(.title) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--d) / 8);
  }
  .card:focus-within:before, .card:focus-within:after, .card:focus-within .content, .card:focus-within .content > *:not(.title) {
    transition-duration: 0s;
  }
  .card:hover {
    box-shadow: 0 0 8px orange;
  }
}

/* endir a kortum efst -- COLLECTION CARD */

/* iframe fixer fyrir width a google maps container */

.iframe-wrapper > * {
  width: 100%;
}

/* strong line break fixer svo að ehf. fari ekki i nyja linu */

strong.footer-strong-company {
  white-space: nowrap;
}

/* span fix listar */

/* span-glass er i about fyrir nofn a gleri */

span.span-glass {
  font-size: 1.4rem;
  font-style: italic;
}