﻿
/***** HORSE AREA FORMATTING *****/
.btn {
  font-family: "Google Sans", "EB Garamond", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  display: inline-block;
  white-space: nowrap;
  color: #ffffff;
  background: rgba(0,0,0,0.65);
  border: 1.5px solid #c9a227;
}

.btn:hover {
  background: #c9a227;
  color: #0a0a0a;
  border-color: #c9a227;
}

#widehorselistingpic {
	text-align: center;
}

.smallimage {
	display: block;
	margin-right: auto;
	margin-left: auto;
	margin-top:10px;
	width:100%;
	max-width:300px;
	/*height:200px;*/
	overflow:hidden;
	object-fit: cover;
	object-position:center;
	padding: 0px;
 border-top:5px solid #EFAA1E;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 90%,
    transparent 100%
 );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 80%,
    transparent 100%
  );

}

.largeimage {
	display: block;
	margin-right: auto;
	margin-left: auto;
	margin-bottom:20px;
	width:100%;
	max-width:600px;
	-webkit-box-shadow: 0px 5px 5px 2px rgba(0,0,0,0.55);
-moz-box-shadow: 0px 5px 5px 2px rgba(0,0,0,0.55);
box-shadow: 0px 5px 5px 2px rgba(0,0,0,0.55);
 border-top:5px solid #EFAA1E;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 90%,
    transparent 100%
 );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 80%,
    transparent 100%
  );
}

#table2 th, td {
  padding: 10px; /* Applies 12px of padding to all four sides */
  font-size:14px;
}

.largepedtable td {
	vertical-align: middle;
}

.medpedtable td {
	vertical-align: middle;
}

.smallpedtable td {
	vertical-align: middle;
}

.pedigreeline {
	max-width: 95%;
	text-align: left;
	margin-left: 0;
	margin-top: 0px;
  color: #efaa1e;
}

.smallFont {
	font-size: 0.8em;
}

.gallerytext{
	font-size: 0.8em;
	max-width:250px;
	word-wrap: break-word;	
}

/* for Sale Comment and Sold */
.hiLiteComment {
	background-color: #000000;
	color: #C89A57;
	font-weight: bold;
	font-size:11pt;
}

/* for horse name on details page and for horse type heading on listing pages */
.horseHeading{
	color: #A27A3C;
	font-size:32px;
	text-shadow: 2px 2px 2px #000;
	text-align:center;
	text-transform:uppercase;
}

.pageheading {
	/*font-size: 12pt; font-variant: small-caps; color: #954A00; font-weight: bold */
	color: #efaa1e;
	font-size:32px;
	text-shadow: 2px 2px 2px #000;
	text-align:left;
}

/* for header links in listing table */
.header {
	font-family: Arial, serif;	
	font-weight: bold;
	font-size: 14pt;
}

a:link.header {color: #ffffff; text-decoration: underline;}
a:visited.header{color: #ffffff; text-decoration: underline;}
a:active.header {color: #ffffff; text-decoration: none;}
a:hover.header {color: #666666; text-decoration: none;}


a:link.readmore {color: #ff0000; text-decoration: underline; text-transform:uppercase}
a:visited.readmore {color: #ff0000; text-decoration: underline; text-transform:uppercase}
a:active.readmore {color: #ff0000; text-decoration: none; text-transform:uppercase}
a:hover.readmore {color: #efaa1e; text-decoration: none; text-transform:uppercase}


/* for horse name Links on listing pages */
.nameLink {
  font-weight: bold;
	font-size: 22px;
	text-transform:uppercase;
	color:#fff;
}

a:link.nameLink {color: #fff; text-decoration: none;}
a:visited.nameLink {color: #fff; text-decoration: none;}
a:active.nameLink {color: #fff; text-decoration: none;}
a:hover.nameLink {color: #efaa1e; text-decoration: none;}

/* for links in pedigree table */
.pedName {
  font-family: "Google Sans", "EB Garamond", sans-serif;
	text-transform:uppercase;
	color:#ffffff;
}

a:link.pedName {color: #efaa1e;	text-decoration: underline;}
a:visited.pedName {color: #efaa1e; text-decoration: underline;}
a:active.pedName {color: #efaa1e; text-decoration: none;}
a:hover.pedName {color: #ffffff; text-decoration: none;}

.pedNotes {
	font-size: 8pt;
}

.backlink{font-size: 10pt;}

.tiny {
	font-size: 10pt;
}
a:link.tiny {color: #666666; text-decoration: underline;}
a:visited.tiny {color: #666666;	text-decoration: underline;}
a:active.tiny {color: #666666; text-decoration: none;}
a:hover.tiny {color: #ffffff; text-decoration: none;}

.listingLink a {
	margin-bottom:20px;
	padding-bottom:20px;
}

#horseBackground {
background: url("../images/bg6.jpg") no-repeat bottom center;
background-size: cover;
padding: 30px;
}

/* Horse Card Container */
.horse-container {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
margin: 0 0 20px;
box-sizing: border-box;
}

/* Horse Cards */
.horse-item {
position: relative;
box-sizing: border-box;
flex: 1 1 calc(33.333% - 14px);
max-width: 700px;
min-width: 0;
padding: 20px;
margin: 0;
text-align: center;
border: 1px solid #5A2C08;

-webkit-box-shadow: 0px 0px 15px 0px rgba(7, 30, 46, 0.95);
-moz-box-shadow: 0px 0px 5px 0px rgba(7, 30, 46, 0.95);
box-shadow: 0px 0px 5px 0px rgba(7, 30, 46, 0.95);

background-image: url('../images/backgroundpattern.jpg');
background-position: center top;
background-size: cover;

line-height: 1.25;
overflow: hidden;
color: #fff;
}

/* Horse Name */
.horse-item .name {
font-size: 24px;
font-weight: bold;
color: #E4171C;
text-transform: uppercase;
}

/* Horse Title */
.horse-item .title {
font-size: 16px;
font-weight: normal;
color: #A27A3C;
}

/* Horse Image */
.horse-item img {
display: block;
margin: auto;
max-height: 350px;
max-width: 100%;
width: auto;

border-top: 5px solid #EFAA1E;

-webkit-mask-image: linear-gradient(
to bottom,
#000 0%,
#000 90%,
transparent 100%
);

mask-image: linear-gradient(
to bottom,
#000 0%,
#000 80%,
transparent 100%
);
}

/* Horse Heading */
.horse-item h1 {
font-size: 26px;
font-weight: bold;
padding: 10px;
}

/* Horse Description */
.horse-item p {
text-align: left;
color: #ffffff;
line-height: 1.25;
font-size: 16px;
margin-top: 20px;
}

/* Horse Details */
.horse-item ul {
text-align: left;
color: #000;
line-height: 1.25;
margin-left: 30px;
}

/* Owner */
.owner {
text-align: center;
margin-bottom: 14px;
color: #A27A3C;
}

/* ---------------------------------------
SOLD RIBBON
--------------------------------------- */

.sold {
position: absolute;
top: 25px;
right: -55px;

width: 220px;
padding: 8px 0;

background: #930202;
color: #ffffff;

font-size: 22px;
font-weight: bold;
line-height: 1;
text-align: center;
text-transform: uppercase;

transform: rotate(45deg);
transform-origin: center;

z-index: 10;

box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

/* Keep sold text styling if it is used separately */
.soldtext {
color: #FF0000;
font-weight: bold;
font-size: 24px;
text-align: center;
display: block;
padding: 4px;
}

/* ---------------------------------------
VIDEO BUTTON
--------------------------------------- */

.videobtn {
display: block;
margin: 10px auto;
text-align: center;
white-space: nowrap;
vertical-align: middle;
color: #fff;
font-weight: bold;
font-family: Arial, sans-serif;
text-decoration: none !important;
}

.videobtn:hover {
text-decoration: none !important;
}

.videobtn a {
text-decoration: none !important;
color: #fff;
}

/* ---------------------------------------
2 COLUMNS
--------------------------------------- */

@media (max-width: 1000px) {
.horse-item {
flex-basis: calc(50% - 10px);
}
}

/* ---------------------------------------
1 COLUMN
--------------------------------------- */

@media (max-width: 700px) {
#horseBackground {
padding: 20px 15px;
}

.horse-container {
gap: 20px;
}

.horse-item {
flex-basis: 100%;
}

.sold {
top: 20px;
right: -60px;
width: 220px;
font-size: 20px;
}
}

/* Pedigree Modal */
#pedigree-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

#pedigree-modal.show {
  display: flex;
}

#pedigree-modal .modal-content {
  position: relative;
  background: #fff;
  width: 95%;
  max-width: 900px;
  height: 90vh;
  max-height: 800px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

#pedigree-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #333;
  color: #fff;
  font-family: Arial, sans-serif;
}

#pedigree-modal .modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

#pedigree-modal .close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
}

#pedigree-modal .close-btn:hover {
  color: #ff6b6b;
}

#pedigree-modal iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
}
