/* vietnamese */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/1Ptgg87LROyAm3K8-C8QSw.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/1Ptgg87LROyAm3K9-C8QSw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/1Ptgg87LROyAm3Kz-C8.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* gothic */
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/wlp_gwjKBV1pqhvP3IEp2A.woff2) format('woff2');
  unicode-range: U+0304-0305, U+0308, U+0331, U+10330-1034A;
}
/* greek-ext */
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/wlp_gwjKBV1pqhv03IEp2A.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/wlp_gwjKBV1pqhv73IEp2A.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* hebrew */
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/wlp_gwjKBV1pqhv63IEp2A.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* old-italic */
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/wlp_gwjKBV1pqhu63IEp2A.woff2) format('woff2');
  unicode-range: U+10300-1032F;
}
/* runic */
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/wlp_gwjKBV1pqhvM3IEp2A.woff2) format('woff2');
  unicode-range: U+16A0-16F8;
}
/* latin-ext */
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/wlp_gwjKBV1pqhv23IEp2A.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/wlp_gwjKBV1pqhv43IE.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}








* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	
	background: linear-gradient(135deg, #00f2fe 0%, #fdfaf0 25%, #fdfaf0 50%, #fdfaf0 75%, #946c0a3b 100%);
	background: linear-gradient(235deg, #d0ad3829 0%, #d0ad3838 25%, #eee3c100 50%, #fdfaf0 75%, #684a003d 100%);
	background-size: 400% 400%;
	<!-- animation: gradientShift 15s ease infinite; -->
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background:#fff8e2;
}

@keyframes gradientShift {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}
@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}
.rotate {
  animation: rotation 20s infinite linear;
}
.cardo-regular {
  font-family: "Cardo", serif;
  font-weight: 400;
  font-style: normal;
}
header {
	text-align: center;
	padding: 5px 0;
  /*  background: rgba(255, 255, 255, 0.1);*/
	backdrop-filter: blur(10px);
	border-bottom: 2px solid #946d0b;
}

.logo {
	font-size: 48px;
	font-weight: bold;
	color: white;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	
    background-repeat: no-repeat;
    background-size: contain;
}
.logo img { 
	width: 200px;
	margin-bottom: -10px;
}
.audioWrap audio{
	background: transparent;
    border: 1px solid #946c0a;
    padding: 5px;
    border-radius: 25px;
}
.audioWrap{
	margin-top:110px;
	margin-left: -150px;
    position: absolute;
    width: 300px;
    left: 50%;
    bottom: 130px;
}
nav {
	display: flex;
	justify-content: center;
	gap: 40px;
	flex-wrap: wrap;
}
nav img {
	width: 30px;
}
/*nav a {
	color: #946c0a;
	text-decoration: none;
	font-size: 18px;
	font-weight: 500;
	padding: 10px 20px;
	border-radius: 8px;
	transition: background 0.3s;
}*/
nav a {
    color: #946c0a;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 0;
    line-height: 36px;
    border-radius: 8px;
    transition: background 0.3s;
}
nav a:hover {
	background: rgba(255, 255, 255, 0.2);
}

.separator {
	height: 2px;
	background: rgba(255, 255, 255, 0.3);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

main {
	flex: 1;
	padding: 40px 0;
}

.intro-section {

	padding: 40px;
	border-radius: 12px;
	margin-bottom: 40px;
	text-align: center;

}
.card.expanded .fade-in.visible {
	width: 95%;
    height: 35%;
    margin-top: -38%;
    vertical-align: middle;
    padding: inherit;
}
.intro-section h1 {
	color: #946c0a;
	margin-bottom: 20px;
	font-size: 32px;
}

.intro-section p {
	color: #333;
	line-height: 1.8;
	font-size: 16px;
}

.cards-section {
	border-radius: 12px;
	margin-top: 40px;
	position: relative;
	<!-- box-shadow: 0 5px 20px rgb(40 45 2 / 50%); -->
	
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	position: relative;
	z-index:11;
}

.card {
	background: url(images/dailyaffirmations-cover.jpg) center center;
	background-size: cover;
	padding: 30px;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	
	all 0.8s cubic-bezier(0.89, 0.33, 0.15, 0.73)
	position: relative;
	aspect-ratio: 1.41;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	box-shadow: 0 5px 10px #946d0b59;
	font-weight: 600;
	font-size: 18px;
	text-align: center;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card.expanded {
	position: fixed;
	top: 44%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 45%;
	max-height: calc(100vh);
	margin: 40px 0;
	z-index: 1000;
	background: white;
	color: #946c0a;
	padding: 50px;
	font-size: 18px;
	overflow-y: auto;
	font-family: "Cardo", serif;
	line-height: 1.6;
	font-weight: 900;
	background: url(images/dailyaffirmations-back.jpg) center center;
	background-size: cover;
}

.cards-grid.has-expanded .card:not(.expanded) {
	opacity: 0.3;
	pointer-events: none;
}

.overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10;
}

.overlay.active {
	display: block;
}

footer {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	padding: 10px 20px;
	text-align: center;
	color: #946c0a;;
	margin-top: auto;
	border-top: 2px solid #946d0b;
}
.footernav {
	border-top: 1px dotted #946d0b;
	padding-top: 10px;
}
.sparkles {
	position: fixed;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}
/*.sparkle {
	position: absolute;
	width: 10px;
	height: 10px;
	background: #ceba4c;
	border-radius: 50%;
	box-shadow: 0 0 10px #ceba4c;
	animation: sparkle 3s ease-in-out infinite;
}*/
.sparkle {
	position: absolute;
	width: 10px;
	height: 10px;
	background: #dca828a6;
	background: url(images/spark.png) center center;
	opacity: 0.6;
	border-radius: 50%;
	box-shadow: 0 0 10px #eadfa4;
	animation: sparkle 8s ease-in-out infinite;
}
.fade-in {
	opacity: 0;
	transition: opacity 1.5s ease-in;
}

.fade-in.visible {
	opacity: 1;
}

.loading {
	text-align: center;
	padding: 20px;
	color: #666;
}

.loading-state {
	pointer-events: none;
}
svg{
	    width: 36px;
    height: 36px;
	
}
/* Tablet and Large Mobile */
@media (max-width: 1024px) {
	.cards-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.card.expanded {
		width: 75%;
	}
}

/* Small Mobile */
@media (max-width: 640px) {
	.cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.card.expanded {
		width: 90%;
		padding: 30px;
		font-size: 13px;
		line-height: 18px;
		/*height: 300px;*/
	}

	.logo {
		font-size: 36px;
	}

	nav {
		gap: 20px;
	}

	nav a {
		font-size: 16px;
	}

	.intro-section h1 {
		font-size: 24px;
	}
	.audioWrap {
		bottom: 110px;
		zoom: 0.7;
	}
}
@media (max-width: 480px) {
    .audioWrap {
        bottom: 105px;
        zoom: 0.7;
    }
}
@media (max-width: 400px) {
    .audioWrap {
        bottom: 115px;
        zoom: 0.6;
    }
}
@keyframes sparkle {
	0%, 100% {
		opacity: 0;
		transform: scale(0);
	}
	50% {
		opacity: 1;
		transform: scale(1);
	}
}