
@import url('https://fonts.googleapis.com/css2?family=Lovers+Quarrel&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&family=Tangerine:wght@400;700&display=swap');

body {
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center;
	background-size: cover;
	margin: 0;
}

.yla {
	position: relative;
	background-color: rgba(255,255,255,.7);
	padding-top: 16px;
}

.yla::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 16px;
	background: rgba(255,255,255,.7);

	-webkit-mask:
		linear-gradient(0deg, transparent 6px, #000 0),
		radial-gradient(6px, #000 calc(100% - 1px), transparent) bottom / 11.1px 12px repeat-x;
	mask:
		linear-gradient(0deg, transparent 6px, #000 0),
		radial-gradient(6px, #000 calc(100% - 1px), transparent) bottom / 11.1px 12px repeat-x;
}

.ylasisalto {
    max-width: 1000px;
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.navi ul {
    margin-block: 0;
    padding: 0;
    margin-left: auto;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    order: 1;
}

.navi li {
    font-family: 'Roboto Condensed', sans-serif;
    margin: 0;
    display: inline-block;
}

.navi li a {
    font-family: 'Roboto Condensed', sans-serif;
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: 300;
    border-radius: 20px;
}

.navi li a:hover {
    color: rgba(0, 0, 0, 1);
}

.otsikko {
    text-align: right;
    order: 2;
    margin: 0;
}

h1 {
    font-family: 'Lovers Quarrel', cursive;
    font-size: 5em;
    font-weight: lighter;
    text-align: center;
    line-height: 1.2;
    margin: 0;
}

.teksti {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9em;
    max-width: 1000px;
    margin: 30px auto;
    background-color: rgba(255, 255, 255, .8);
    border-radius: 20px;
    padding: 10px 40px 5px;
    overflow: auto;
}

h2, h3 {
	font-family: 'Tangerine', cursive;
	margin-bottom: -10px;
	font-size: 3em;
}

h3 { font-size: 2em; }

p { text-align: justify; }

a { text-decoration: none; }
a:hover { text-decoration: underline; }

.koriste {
	margin: 40px auto;
	width: 100%;
}

.koriste img {
	display: inline-block;
	width: 30%;
	border-radius: 30px;
	margin: 0px 10px;
	padding: 3px;
}

.ala {
	width: 100%;
	margin-top: 5px;
	color: rgba(0, 0, 0, .4);
	font-size: .7em;
	float: right;
}

.ala a {
	color: rgba(0, 0, 0, .5);
	text-decoration: none;
}

.ala a:hover {
	color: rgba(0, 0, 0, 1);
}

.ala p {
	text-align: right;
	line-height: 1.2em;
}

/* 2 palstaa */
#palsta2_1 { width: 46%; padding: 2%; float: left;  } /* Vasen palsta */
#palsta2_2 { width: 46%; padding: 2%; float: right; } /* Oikea palsta */


/* 3 palstaa */
#col3_1 { width: 29%; padding: 2%; float: left; } /* Vasen palsta */
#col3_2 { width: 29%; padding: 2%; float: left; } /* Keskimmäinen palsta */
#col3_3 { width: 29%; padding: 2%; float: left; } /* Oikea palsta */


/* Heppaulkoasu */ 
#perustiedot {
	width: 100%;
	border-spacing:5px;
}

#perustiedot td {
	padding: 5px 8px;
	float: center;
}

.sukutaulu {
	border-bottom: 1px solid #cccccc;
	text-align: center;
}

.sukutaulu2 {
	text-align: center;
}

.suku {
	width: 100%;
	cellpadding: 2px;
	border-collapse: collapse;
}

#kisakalenteri {
	width: 100%;
	border-spacing:5px;
}

#kisakalenteri td {
	padding: 5px 8px;
	float: center;
}

.hevosenkuva {
	max-width: 80%;
	border-radius: 30px;
	margin: 0 auto;
	display: block;
	padding: 3px;
	box-shadow: 0px 5px 10px 1px rgba(58, 62, 40, .4);
}

/* Porrastetut */
.porrastetut {
	display: flex;
	align-items: center;
	justify-content: center;
}

.porr-column {
    flex: 1 1;
}

/* Suora linja tasoille */
.level-bar {
    width: 80%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin: 10px 0;
    position: relative;
}

.level-bar-inner {
    height: 100%;
    border-radius: 8px;
    position: relative;
}

.level-bar-inner span {
    position: absolute;
    color: white;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translateY(-50%) translateX(-50%); /* KeskittÃ€Ã€ tekstin */
    font-size: 14px;
    font-weight: bold;
}

/* Ympyrä tasoille */
.level-circle {
    width: 150px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(#458393 0%, #f0f0f0 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    border: 4px solid #ccc;
}

.level-circle span {
    position: absolute;
    font-size: 14px;
    color: #000;
    font-weight: bold;
}

#kisakalenteri {
	width: 100%;
	border-spacing:5px;
}

#kisakalenteri td {
	padding: 5px 8px;
	float: center;
}

button.accordion {
	background-color: transparent;
    cursor: pointer;
    padding: 0px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
}

div.panel {
    padding: 0px;
    max-height: 0;
    overflow-y: hidden;
    transition: max-height 0.5s ease-out;
	text-align: justify;
}

#hevoslistaus {
	width: 100%;
	border-spacing: 5px;
	display: flex;
}

#hevoslistaus td {
	padding: 5px 8px;
	float: center;
}

.hevoslistauskuva {
	max-width: 70%;
	border-radius: 30px;
	margin: 0 auto;
	display: block;
	padding: 3px;
	box-shadow: 0px 5px 10px 1px rgba(58, 62, 40, .4);
}

pre {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9em;
}

.copy {
	font-family: 'Source Sans 3', sans-serif;
	font-style: italic;
    font-size: 0.8em;
	float: left;
} 


/* Style the tab */
.tab {
	overflow: hidden;
	border: 0px solid #ccc;
	background-color: #f1f1f1;
}

/* Style the buttons that are used to open the tab content */
.tab button {
	background-color: inherit;
	float: left;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 14px 16px;
	transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
	background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
	background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
	display: none;
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-top: none;
}

@media (max-width: 830px){
    .ylasisalto{
        justify-content: center;
    }
    .navi ul{
        width: 100%;
    }
}