/**

Theme Name: Talvikavio 1.0
Theme URI: http://talvikavio.lasikuula.net
Author: Lasikuula
Author URI: http://lasikuula.net
Description: Talvikavion ensimmäinen uskoasu
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, responsive, clean
Text Domain: mytheme

Main color palette:

primary color: #210F37
Secondary color: #A55B4B
Primary text: #DCA06D
Secondary text: #DCA06D
highlight, cta etc: #A55B4B

*/

body {
    margin:0;
    padding: 0;
    background-color: #FDFBF7;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    align-self: center;
    font-family: "Titillium Web", sans-serif;
    width: 800px;
    font-size: 18px;
    font-weight: 500;
    margin: 10px;
    padding: 10px;
    color:#210F37;
}

footer {
    background-color: #4F1C51;
    box-shadow: 0px -8px 10px 0px rgba(0, 0, 0, 0.1);
    color: #DCA06D;
    margin-top: auto;
    padding: 8px;
}

main h1 {
    border-bottom: 3px solid #DCA06D;
    font-weight: 500;
}

main h2 {
    border-bottom: 1px solid #A55B4B;
    font-weight: 400;
}

a {
    color:#A55B4B;
    font-weight: bold;
    text-decoration: underline dotted;
}

a:hover {
    color:#210F37;
}

.content_image {
    display: flex;
}

.content_image figure {
    margin-right: 20px;
    float:left;
}

.content_image figure img {
    box-shadow: 3px 1px 11px 0px rgba(0, 0, 0, 0.1);
    border: 5px solid #DCA06D;
    
}

/* Restores missing layout mechanics for Gutenberg core blocks */
.gallery {
    display: flex;
    width: 100%;
    box-shadow: 3px 1px 11px 0px rgba(0, 0, 0, 0.1);
    flex-flow: row wrap;
}

.gallery figure {
    padding: 10px;
    height: 200px;
    min-width: 200px;
}

.gallery .wp-block-image {
    display: flex;
    flex-basis: 30%;
}

.gallery .wp-block-image img {
    object-fit: cover;
}

.primary_cta_button {
    display: flex;
    align-content: center;
    justify-content: center;
}

.primary_cta_button a {
    background: linear-gradient(
        to right, 
        #4F1C51, 
        #210F37 70%); 
    color: #DCA06D;
    border-radius: 5px;
    box-shadow: 3px 1px 11px 0px rgba(0, 0, 0, 0.1);
}

.primary_cta_button a:hover {
    background: linear-gradient(
        to right, 
        #7d2c80, 
        #3e1d68 70%);
    border-radius: 5px;
    color:white;
}

.copytxt {
    text-align: right;
}

.navbar {  
    display: flex;
    background-color: #4F1C51;
    position: sticky;
    top:0;
    font-size: 16px;
    overflow: hidden;
    align-items: center;
    padding: 10px;
    border-bottom: 8px solid #DCA06D;
    box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.navbar h1 {
    font-family: "Aladin", system-ui;
    font-style: normal;
    font-weight: 600;
    font-size: 56px;
    color:#DCA06D;
    margin: 0;
    flex:auto;
    text-align: center;
}

.navbar ul {    
    display: flex;
    flex: auto;
    margin: 0;
    list-style-type: none;
    justify-content: center;
}

.navbar li {
    font-family: "Titillium Web", sans-serif;
    font-weight: 400;
    font-style: normal;
    display: flex;  
    padding: 14px 20px;
    margin: 5px;
}

.navbar a {
    text-decoration: none;  
    text-align: center;
    color: #DCA06D;
}

.navbar a:hover a:active {
    color: rgb(180, 79, 194); 
    text-decoration: underline;
}

/** Tallipäiväkirja */

#tallipaivakirja {
    display: flex;
    flex-direction: column;
}

/** Horse pages */

.horse_basic_info {
    width: 100%;
    border-collapse: collapse;
    border-left: 5px solid #DCA06D;
    box-shadow: 3px 1px 11px 0px rgba(0, 0, 0, 0.1);
    
}


.horse_basic_info td {
  max-height: 50px;
  padding: 15px;
  vertical-align: bottom;
  border: 1px solid #DCA06D;
  width: 25%;
}

.horse_basic_info td:nth-child(odd) {
    color:#A55B4B;
    font-weight: bold;
    width: 25%;
}



.horse_basic_info tr td {
  border-top: 0;
  border-left: 0;
  border-right: 0;
}

.horse_basic_info tr:last-child td {
  border-bottom: 0;
}





.horse_family {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: scroll;
}

.horse_family th, td {
vertical-align: bottom;
}

.horse_family th { 
border-bottom: 2px solid #A55B4B;
text-align: left;
}

.horse_family .bio {
vertical-align: top;
}

.horse_family td {
padding-left: 1rem;
padding-bottom: 0.25rem;
}

.horse_family .grand {
padding-top: 2rem;
}

.horse_family .line-bottom {
border-bottom: 1px solid #A55B4B;
}

.horse_family .line-left-down {
border-left: 1px solid #A55B4B;
}

.horse_family .line-left-up {
border-left: 1px solid #A55B4B;
}

.horse_family .line-left {
border-left: 1px solid white;
}

.horse_images {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.horse_paivakirja {
    display: flex;
    flex-direction: row;
}

.horse_paivakirja ul {
    list-style-type: none;
    display: flex;
    flex: auto;
    margin: 0;
    justify-content: center;
}

.horse_paivakirja li {
    font-family: "Titillium Web", sans-serif;
    font-weight: 400;
    font-style: normal;
    display: flex;
    flex-grow: 1;
    flex-basis: 0;
    flex-direction: column;
    border-left: 5px solid #DCA06D;
    box-shadow: 3px 1px 11px 0px rgba(0, 0, 0, 0.1);
    border-radius: 5px;  
    padding: 14px 20px;
    margin: 5px;
}

.horse_paivakirja li a,
.horse_paivakirja li time,
.horse_paivakirja li div
 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
 }

.horse_paivakirja li a {
    color:#4F1C51;
    font-weight: 400;
    font-size: 26px;
    text-decoration: none;
}

.horse_paivakirja li a:hover {
    color:#A55B4B;
    text-decoration: underline solid;
}

.horse_paivakirja li a img {
    display: flex;
    flex:1;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.horse_paivakirja time {
    font-weight: lighter;
    font-style: italic;
}

.horse_paivakirja wp-block-latest-posts__featured-image, wp-block-latest-posts__post-title, wp-block-latest-posts__post-date, wp-block-latest-posts__post-excerpt {
    display: flex;
}

.horse_paivakirja .wp-block-latest-posts__post-excerpt a {
    margin-top:10px;
    font-size: 20px;
    color:#A55B4B;
    font-weight: 400;
    text-decoration: underline dotted;
}

.horse_paivakirja .wp-block-latest-posts__post-excerpt a:hover {
    color:#210F37;
}

/** Horse listing */

.horse_listing {
    display: flex;
    flex-direction: row;
    border-radius: 5px;
    margin-bottom: 10px;
    height: 200px;
}

.horse_listing .wp-block-column {
    display: flex;
    flex-direction: row;
    height: 100%;
    flex: 1 30%;
    margin-left: 10px;
    border-left: 5px solid #DCA06D;
    box-shadow: 3px 1px 11px 0px rgba(0, 0, 0, 0.1);
}

.horse_listing h3 {
    color:#DCA06D;
    font-weight: bold;
}

.horse_listing .wp-block-column .horse {
    display: flex;
    justify-content: center;
    align-items: center;
}

.horse_listing .wp-block-column .horse figure {
    margin:0;
    height: 100%;
}

.horse_listing .wp-block-column .horse figure img {
   height: 100%;
   width: 200px;
   object-fit: cover;
}

.horse_listing .wp-block-column .horse .wp-block-media-text__content {
    padding: 10px;
}

/** Mobile styles **/

@media only screen and (max-width: 800px) {

    main {
        width: 90%;
        padding: 20px;
    }

    /** Nav */

  .navbar {
    flex-direction: column;
  }

  .navbar ul {
    flex-direction: row;
    padding: 0;
  }

  .navbar h1 {
    font-size: 40px;
  }


  /** Horse listing */
  .horse_listing {
    flex-direction: column;
    height: auto;
  }

  .horse_listing .wp-block-column {
    margin-bottom: 10px;
  }

    /** Horse pages */
    .horse_basic_info {
    width: 100%;
    }

    .horse_basic_info tr {
        display: flex;
        flex-wrap: wrap;
    }

    .horse_basic_info td {
        display: block;
        width: 50% !important;
        box-sizing: border-box;
    }

    .horse_basic_info tr:last-child td {
    border-bottom: 1px solid #DCA06D;
    }

    .horse_family {
    width: 100%;
    }

    .horse_paivakirja {
    display: flex;
    flex-direction: column;
}

.content_image {
    flex-direction: column;
}


}