@import url('https://fonts.googleapis.com/css2?family=Caveat&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Raleway:ital,wght@0,400;0,600;1,400;1,600&display=swap');

body {
    background-image: url('bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Raleway';
    font-size: 16px;
    line-height: 1.6;
}

h1 {
    font-family: 'Caveat';
    text-align: center;
    font-weight: normal;
    font-size: 80px;
    margin: 0;
    padding: 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,.3);
}

h2, h3, h4, h5 {
    font-family: 'Libre Baskerville';
    font-weight: normal;
    font-style: italic;
    text-shadow: 2px 2px 6px rgba(0,0,0,.3);
}

a {
    color: var(--main-color);
    transition: all 0.3s ease-in-out 0s;
}

a:hover {
    color: #000;
    text-shadow: 2px 2px 6px rgba(0,0,0,.3);
}

#wrapper {
    background: #fff;
    -webkit-box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.26);
    -moz-box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.26);
    box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.26);
    width: 100%;
    max-width: 1100px;
    margin: 50px auto 30px auto;
    border-top: 10px solid var(--main-color);
    border-bottom: 10px solid var(--main-color);
}

.content {
    width: 100%;
    padding: 30px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.info-content {
    background: #ECE6E2;
    width: 100%;
    padding: 30px;
    margin: 50px auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: flex;
}

.info-content > div {
    width: 40%;
}

.info-content > div:nth-child(2) {
    width: 60%;
    padding-left: 170px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: 'Libre Baskerville';
    font-style: italic;
    line-height: 1.9;
    font-size: 1.1rem;    
    display: flex;
    align-items: center;
}

.register {
    text-align: center;
    font-family: 'Libre Baskerville';
    font-style: italic;
    line-height: 1.9;
    font-size: .9rem;
    display: block;
    color: var(--main-color);
    margin-top: -10px;
}

.merites {
    text-align: center;
    font-family: 'Libre Baskerville';
    font-style: italic;
    line-height: 1.9;
    font-size: 1.1rem;
    display: block;
    color: var(--main-color);
}
.lista img {
	
    border-radius: 10px;
}

.big-img {  
    display: block;
    margin: -50px auto;
    border-radius: 20px;
}
.img-listaus { 
    margin: 10px auto;
}

.img-listaus img {
    -webkit-box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.26);
    -moz-box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.26);
    box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.26);
    border-radius: 15px;
    width: auto;
    height: 200px;
    margin-right: 20px; 
	margin-bottom: 10px;
	margin-top: 10px;

    
    
}
.img-gallery {
    text-align: center;
    margin: 10px auto;
}

.img-gallery img {
    -webkit-box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.26);
    -moz-box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.26);
    box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.26);
    border-radius: 15px;
    width: auto;
    height: 120px;
    margin: 10px;
    filter: saturate(.3);
    transition: all 0.3s ease-in-out 0s;
}

.img-gallery img:hover {
    filter: saturate(1);
}
.img-oikea {
    text-align: center;
    margin: 10px auto;
}

.img-oikea img {
    -webkit-box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.26);
    -moz-box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.26);
    box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.26);
    border-radius: 15px;
    width: auto;
    height: 190px;
    margin: 10px;
    filter: saturate(.3);
    transition: all 0.3s ease-in-out 0s;
}

.img-oikea img:hover {
    filter: saturate(1);
}

.copy {
    text-align: center;
    font-family: 'Libre Baskerville';
    font-style: italic;
	font-size: 12px;
    display: block;
}

.pedigree {
    width: 100%;
    border-spacing: 15px;
}

.pedigree td {
    padding: 5px 10px;
    background: #faf6f4;
    border-radius: 15px;
}
.pedigree p {
	
	vertical-align: middle;
}

.pedigree strong {
    font-weight: normal;
    font-family: 'Libre Baskerville';
    font-style: italic;
}

.pedigree small {
    font-family: 'Libre Baskerville';
    font-style: italic;
    color: #8a786d;
}

.tiered-comps {
    width: 80%;
    margin: 0 auto 40px auto;
    display: flex;
}

.tiered-comps > div {
    width: 50%;
}

.points span {
    display: block;
    margin-bottom: -14px;
    padding: 0;
    line-height: 1;
}

.points span::first-letter {
    text-transform: uppercase;
}

.competitions, .offspring {
    width: 100%;
    border-collapse: collapse;
}

.competitions td, .offspring td {
    border: 1px solid #eee;
    padding: 5px 10px;
    transition: all 0.3s ease-in-out 0s;
}

.competitions tr:nth-child(odd) td, .offspring tr:nth-child(odd) td {
    background: #faf6f4;
}

.competitions tr:hover td, .offspring tr:hover td {
    background: #f6efea;
}

.competitions .tumma, .offspring th {
    font-family: 'Libre Baskerville';
    font-style: italic;
    text-align: center;
    font-weight: normal;
    padding: 10px;
    background: #ECE6E2 !important;
}

.diary h3 {
    background: #fff;
    overflow: hidden;
    position: relative;
}

.diary h3::after {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    margin-right: -100%;
    border-bottom: 1px solid #ECE6E2;
    position: absolute;
    top: -14px;
    margin-left: 7px;
}
  
footer {
    font-family: 'Libre Baskerville';
    font-style: italic;
    text-align: center;
    font-size: .9rem;
    margin-bottom: 50px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}
.input {
    position: absolute;
    opacity: 0;
}
.label {
    width: 100%;
    padding: 10px 25px;
    margin: 0 10px;
    background: #ECE6E2;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.1s, color 0.1s;
    border-radius: 15px;
    font-family: 'Libre Baskerville';
    font-style: italic;
    transition: all 0.3s ease-in-out 0s;
}
.label:hover {
    background: var(--main-color);
    color: #fff;
}
.label:active {
    background: #ccc;
}
.input:focus + .label {
    z-index: 1;
}
.input:checked + .label {
    background: var(--main-color);
    color: #fff;
}
.panel {
    display: none;
    padding: 20px 30px 30px;
    width: 100%;
    background-color: #fff;
}
.input:checked + .label + .panel {
    display: block;
}
@media (min-width: 768px) {
    .label {
        width: auto;
    }
    .panel {
        order: 99;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 45px;
    }

    .info-content {
        flex-direction: column;
        margin: 20px auto;
    }

    .info-content > div {
        width: 100% !important;
    }

    .big-img {
        margin: 0 auto 30px auto;
    }
    
    .panel {
        padding: 10px 0;
        overflow: scroll;
    }

}

 .piilodiv {
    display:none; /* älä muuta tätä, tai muuten div ei oletuksena ole piilossa. */
}
