@font-face {
    font-family: 'Shantell Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    /*
    src: url(assets/fonts/Shantell_Sans/Shantell_Sans.woff2) format('woff2');
    */
}

body {
	background-color: whitesmoke;
	font-family: "Shantell Sans", serif;
  	font-weight: 500;
  	font-style: normal;

	background: #edeaf9 url("assets/backgrounds/stars-and-veins-purple.png") repeat fixed top left;
	background-size: 1500px 1500px;
}

h1, h2 {
	font-weight: normal;
}

.shantell-sans-123 {
  font-family: "Shantell Sans", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings:
    "BNCE" 0,
    "INFM" 0,
    "SPAC" 0;
}

/* prevent these from being selectable */
#upperMessageArea, #biteContainer, #playerTreats, #lowerMessageArea, #animalSelection {

    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */

}

#upperMessageArea { 

	margin-top: 25px;
	font-size: 40px;
	font-weight: bold;
	text-align: center;

}

#lowerMessageArea {

    margin: 15px 0;

}

#beginButtonWrapper {

	text-align: center;

}

#beginButton {

	width: 6em;
	height: 1.6em;
	margin: 0 auto;
	margin-top: 5px;
	background-color:rgb(104, 98, 199);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	user-select: none;
	border-radius: 15px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);	

}

/* used for both the player treat list and an individual treat */
.treatWrapper {
    max-width: 325px;
    margin: 0 auto;

}

.treatHeader {
	text-align: center;
	font-size: 25px;
}

.treatRow {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.treatValue {
    font-size: 28px;
    font-weight: bold;
    color: #333;
	margin-left: 5px;
    margin-right: 12px;
    flex-shrink: 0;
    width: 50px;
    text-align: right;
	vertical-align: middle;
	font-family: sans-serif;
}

.treatIcon {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    margin-right: 12px;
    flex-shrink: 0;
	vertical-align: middle;
}

.treatName {
    font-size: 18px;
    color: #555;
	vertical-align: middle;
	word-wrap: break-word;
	flex-grow: 1;
}

.treatImage {
	width: 250px;
	display: block;
    margin: auto;
}

.treatWrapper h2 {
	margin-top: 0;
	text-align: center;
	font-size: 45px;
}

/* NEW Treat Large Card Styles */

.treatCardLargeWrapper {
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #f3f4f6; */
    padding: 0;
}

.treatCardLargeBox {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background-color: #f3f4f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 20rem;
    max-width: 325px;
    text-align: center;
    transition: all 0.3s ease;
}

.treatCardLargeBox:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.treatCardLargeHeader {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.treatCardLargeImageWrapper {
    padding: 0.5rem;
}

.treatCardLargeImage {
    width: 12rem;
    height: 12rem;
    border-radius: 1.5rem;
    object-fit: cover;
    margin: 0 auto;
    transform: scale(1) rotate(0);
    transition: transform 0.3s ease;
}

.treatCardLargeImage:hover {
    /* transform: scale(1.05) rotate(2deg); */
    transform: scale(1.1) rotate(5deg); 
}

.treatCardLargeName {
    margin-top: 1rem;
    color: #4b5563;
    font-size: 35px;
    margin-bottom: 1rem;
}



/*    */

#form { 
	margin-top: 5px;
	text-align: center;
}

#form input {

	font-size: 20px;

}

#animalInput {

	width: 45px;
	margin-right: 8px;

}

#extended-info {
	margin-top: 25em;
	font-size: 2em;
}

/* Format the Full Display of the Treat Collection */
.treatCollection img { 
	vertical-align: middle;
	width: 35px;

}

/* Totals Table */

    .totals-wrapper {
        display: flex;
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
        /*height: 100vh;*/
    }

    .totals-table {
        border-collapse: collapse;
        margin: 10px;
    }
    .totals-table th, .totals-table td {
        border: 1px solid rgb(147, 147, 147);
        padding: 8px;
        text-align: center;
    }
    .totals-table th {
        background-color: #f2f2f2;
    }

/* Bite Indicator */

    #biteContainer {
        padding: .85rem .2rem .2rem .2rem;
        background-color: rgb(241, 245, 249);
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
        /* max-width: 100px; */
        width: fit-content;
        margin: 1rem auto;
        padding-left: 12px;
        padding-right: 12px;
        display: none;
        /*visibility: collapse;*/
    }

    .bites {
        display: flex;
        justify-content: center;
        gap: .5rem;
        margin-bottom: .8rem;
    }

    .bite {
        width: .8rem;
        height: .8rem;
        border-radius: 50%;
        border: 2px solid rgb(156, 163, 175);
        background-color: white;
        transition: all 0.3s ease;
    }

    .bite.active {
        background-color: rgb(220, 38, 38);
        border-color: rgb(220, 38, 38);
    }

/* Animal Cards */

.animals-container {
    display: grid;
    /* Instead of auto-fill, let's use auto-fit */
    grid-template-columns: repeat(auto-fit, 240px); /* Fixed width that includes some breathing room */
    justify-content: center; /* Center the entire grid */
    gap: 20px;
    /* padding: 20px; */
}

.animal-card {
    width: 200px;
    justify-self: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.animalCardContainerSolo {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

/* Temperament Indicator */		

    .temperament-container {
        /* max-width: 250px; */
        padding: 0px;
        padding-top: 5px;
        font-family: Arial, sans-serif;
        margin-bottom: 4px;
    }

    .temperament-row {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        height: 18px;

        padding: 14px 2px;
        margin: 6px 0;			
    }

    .temperament-row.highlighted {
        background: linear-gradient(90deg, 
            rgba(255, 68, 68, 0.25), 
            rgba(68, 68, 255, 0.25)
        );
        /* Make the row slightly larger */
        border-radius: 0.5rem;
    }

    .temperament-player-name {
        width: 45px;  /* Reduced from 65px */
        font-weight: bold;
    }

    .temperament-scale {
        position: relative;
        width: 100%;  /* Make it responsive */
        max-width: 180px;  /* Reduced from 300px to fit in smaller cards */
        height: 10px;
        background: linear-gradient(to right, #ff4444 0%, #4444ff 100%);
        border-radius: 25px;
        margin: 0 19px;  /* Reduced side margins */
    }

    .temperament-icon {
        position: absolute;
        transform: translateX(-50%) translateY(-50%);
        top: 50%;
        transition: left 0.3s ease, transform 0.3s ease;
        font-size: 24px;
        /* Remove any default text selection */
        user-select: none;
    }

    .temperament-value {
        width: 50px;
        text-align: right;
    }

    /* Scale markers */
    .temperament-scale-marker {
        position: absolute;
        top: -20px;
        transform: translateX(-50%);
        color: #666;
        z-index: 1;

    }

    .temperament-scale-marker.left {
        left: 0;
    }

    .temperament-scale-marker.center {
        left: 50%;
        top: -14px;
        font-size: 30px;
        z-index: -1000;
    }

    .temperament-scale-marker.right {
        left: 100%;
    }		

/* Cascading Hearts */

/*
    body {
        margin: 0;
        overflow: hidden;
        min-height: 100vh;
        background: #f0f0f0;
    }
*/
    .heart {
        position: fixed;
        font-size: 24px;
        pointer-events: none;
        animation: heartFloat 4s linear forwards;
    }

    @keyframes heartFloat {
        0% {
        opacity: 1;
        transform: translateY(0) translateX(0);
        }
        100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(var(--offsetX));
        }
    }

/* Radiating Grumps */

/*
    body {
        margin: 0;
        overflow: hidden;
        min-height: 100vh;
        background: #f0f0f0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
*/
    .source-container {
        width: 100px;
        height: 100px;
        background: #333;
        border-radius: 10px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-family: Arial, sans-serif;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 2;
    }

    .floating-bite {
        position: fixed;
        width: 40px;
        height: 40px;
        user-select: none;
        pointer-events: none;
        animation: biteFloat 3s linear forwards;
        z-index: 1;
    }

    .floating-bite img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    @keyframes biteFloat {
        0% {
            transform: translate(0, 0) rotate(0deg) scale(0.5);
            opacity: 0;
        }
        10% {
            transform: translate(var(--offsetX), var(--offsetY)) rotate(36deg) scale(1);
            opacity: 1;
        }
        90% {
            transform: 
                translate(
                    calc(var(--offsetX) * 3), 
                    calc(var(--offsetY) * 3)
                ) 
                rotate(calc(var(--rotation) * 1deg)) 
                scale(0.8);
            opacity: 1;
        }
        100% {
            transform: 
                translate(
                    calc(var(--offsetX) * 4), 
                    calc(var(--offsetY) * 4)
                ) 
                rotate(calc(var(--rotation) * 1.2deg)) 
                scale(0.5);
            opacity: 0;
        }
    }
