/* RESET */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

body {
  line-height: 1.4;
  font-family: "Ubuntu", sans-serif;
  background-color: black;
  color: white;
}

/* VARIABLES */
:root {
  --turquoise: #33a8a4;
  --white: #fff;
  --darkgrey: #252626;
  --grey: #5b5c5c;
  --dkbrown: rgb(51, 31, 6);
  --fonts: "Ubuntu", sans-serif;
  --shadow-color: hsla(24, 88%, 23%, 0.69);
  

/*fonts*/

--font-family: "briller", sans-serif;
--font-weight: 400;
--font-style: normal;

}
/* skip link styles */
#skip{
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
 #skip:focus   {
	position: static;
	width: auto;
	height: auto;
}



/* light Mode */
body.dark-mode {
  background-color: white;
  color: black;
}
body.dark-mode #about {
  background-color: rgba(254, 253, 253, 0.703); 
  background-blend-mode: overlay;

}
body.dark-mode nav a {
  color: black; /* light mode link color */
}
body.dark-mode nav a:hover {
  color: black; 
}
body.dark-mode header{
  background-color: rgba(254, 253, 253, 0.447); 
  background-blend-mode: overlay;
}
body.dark-mode main {
  background-color: rgba(254, 253, 253, 0.464); 
  background-blend-mode: overlay;
}
body.dark-mode h2{
  color: black;
  
}
body.dark-mode footer svg{
  stroke: black;
}
body.dark-mode #navToggle{
  color: black;
} 
body.dark-mode nav.expanded {
  max-height: 300px;
  background-color: transparent;
}
body.dark-mode .arrows button{
    background-color: black;
    border: none;
    color: white;
    transition: background-color .5s;
}
body.dark-mode .arrows button:hover{
    background-color: white;
    color: black;
}

/* Icon Toggle */
#themeToggle {
  cursor: pointer;
  display: inline-block;
}

#sunIcon,
#moonIcon {
  transition: opacity 0.3s ease;
}

body.dark-mode #sunIcon {
  display: none;
}

body.dark-mode #moonIcon {
  display: block;
}

/* text/font styles */
h1 h2{
    font-family: var(--font-family);
    font-weight: 700;
    
}
h3{
    line-height: 1.5rem;
}
/* body */
body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}
/* HEADER */
header {
  display: flex;
  align-items: center;       
  justify-content: space-between; 
  max-width: 100%;
  margin: 0;
  gap: 1rem;
  padding: 10px;                
}
#headerimage h1 {
  font-family: "Limelight", sans-serif;
  font-size: 2.5rem;
  color: var(--turquoise);
  text-shadow: 2px 2px var(--shadow-color);
}

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



nav {
  top: 0;
  right: -100%;             
  width: 250px;             
  height: 100vh; 
  overflow-y: auto;
  position: fixed;
  transition: 0.3s ease; 
  z-index: 1000;   
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 2rem;
  box-sizing: border-box;
}
#navToggle {
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 2rem;
  margin-right: 1rem; 
  z-index: 1001;  
}
nav.expanded {
  right: 0;
  left:  30%;
  padding-top: 25%;
}


nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

nav a {
  font-size: 1.25rem;
  color: white;
  text-shadow: 1px 1px black;
  text-decoration: none;
}
/* main */
main{
    flex: 1;
    transition: margin-top 0.3s ease;
    padding-bottom: 80px;
    font-family: var(--font-family);
}
/*intro*/
#intro {
    padding: 25px;
}
#intro h2{
    font-weight: 700;
    color: var(--turquoise);
    text-align: center;
    line-height: 2rem;
}
#intro p {
    font-weight: lighter;
    text-align: center;
    line-height: 1.5rem;
}
/* buttons*/
#button_container{
    padding-left: 25px;
    
}
button {
    border-radius: 8px;
    padding: 5px;
    background-color: var(--turquoise);
    color: #ccc;
    font-weight: bold;
    margin-right: 10px;
    box-shadow: 2px 2px 2px rgba(254, 253, 253, 0.703);
    
}
/* save reading*/
#saved-readings{
    padding-left: 25px;
    padding-top: 10px;
}
#saved-readings h2{
    margin-bottom: 0.25rem;
    font-size: 1rem;
}
#savedList{
    margin-top: 12px;
}
#savedReadingsList li{
    list-style: none;
    border-bottom: 1px solid var(--turquoise);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
#savedReadingDisplay {
    padding: 1.5rem;
    max-width: 450px;
    box-shadow: 0 4px 12px var(--turquoise);
    transition: all 0.4s ease;
}
#savedReadingDisplay h3{
    color: var(--turquoise);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}
#savedReadingDisplay p {
    line-height: 1.5;
}
#savedReadingDisplay p strong{
    color: gold;
    font-weight: 700;
}
/*fan */
.spread-boundary{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 600px;
    padding: 60px;
    
}
#baraja-el {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: relative;
    left: 30%;
    transform: translateX(-10%);
}
/* Each card wrapper */
#baraja-el li.deck-card {
    width: 250px;   
    height: 400px;  
}

/* The actual button holding the image */
#baraja-el li.deck-card .card-btn {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 2px solid var(--turquoise);
}

/* Make the card image scale down */
#baraja-el li.deck-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*slots*/
#spread{
    max-width: 100%;
}
.spread-slot {
  display: flex;
  flex-direction: row;
  align-items: flex-start; 
  width: 100%; 
  margin: 10px;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #222; 
  border: 2px solid #ccc; /* optional */
  box-sizing: border-box;
}

/* Wrapper around image and details (label + reading) */
.card-info-wrapper {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

/* Image container */
.slot-btn {
  flex: 0 0 auto;
  width: 150px;
}

.slot-btn img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

/* Details container (label + reading) */
.card-details {
  flex: 1;
  margin-left: 20px;
  color: white;
}

.slot-label {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.reading p {
  margin-bottom: 8px;
}
/* footer */
footer{
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--turquoise);
    z-index: 999;
    

}
footer ul{
    display: flex;
    justify-content: center;
    list-style: none;

}
footer p{
    text-align: center;
}