@font-face {
    font-family: 'fffont-dannysdiary';
    src: url('/fonts/Caveat-VariableFont_wght.woff2') format('woff2'),
    url('/fonts/Caveat-VariableFont_wght.woff') format('woff');
}

.dd-title {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-bottom: 5rem;
}

.dd-title img {
    width: 20%;
    height: auto;
    max-width: 200px;
    max-height: 200px;
    margin: 0 0.5rem;
}

*.dd {
    font-family: 'fffont-dannysdiary', cursive;
}

section.content .copy h1.dd {
    font-size: 8rem;
    margin-bottom: 0;
    color: #2266bb;
    transform: rotate(-5deg);
    letter-spacing: -0.05rem;
}

p.links a.button {
    display: inline;
}

p a.button .cta:hover {
    transform: scale3d(0.95,0.95,0.95);
}

span.dl {
    display: none;
}

.articles {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.articles .article {
    width: 30%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.articles .article.latest {
    width: 60%;
    margin: 5rem 15%;
}

.article-image-wrap, .video-prompt {
    position: relative;
}

.article-image-wrap h2.dd, .article-image-wrap h3.dd, .video-prompt h2.dd, .diary-image h2.dd {
    max-width: 60%;
    text-align: center;
    position: absolute;
    top: -2rem;
    left: -2rem;
    transform: rotate(-5deg);
    z-index: 2;
}

.no-vid-no-img h2.dd {
    max-width: 100%;
    text-align: center;
    transform: rotate(-5deg);
}

*.white-outline, .article-image-wrap h2.dd, .article-image-wrap h3.dd, .video-prompt h2.dd, .diary-image h2.dd, section.content .copy h1.dd {
    text-shadow:    3px 0 #fff, -3px 0 #fff, 0 3px #fff, 0 -3px #fff,
                    2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
                    1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
}

.articles .article a:active, .articles .article a:visited, .articles .article a:link {
    text-decoration: none;
    transition: transform 1s ease;
    transform: scale3d(1,1,1);
    margin: 0 1rem;
}

.articles .article a:hover {
    transform: scale3d(0.95,0.95,0.95);;
}

.articles .article a img {
    width: 100%;
    height: auto;
    max-width: 1280px;
    max-height: 720px;
    border-radius: 2rem;
    box-shadow: 0rem 0rem 0.5rem 0.15rem rgba(0,0,0,0.2);
    transition: box-shadow 1s ease;
}

.articles .article a:hover img {
    box-shadow: 0rem 0rem 0rem 0rem rgba(0,0,0,0.2);
}

.articles .article a p {
    font-weight: 700;
    margin: 0 auto; padding: 0;
    line-height: 1;
}

.articles .article a p small {
    font-weight: 400;
    text-transform: uppercase;
    color: #888888;
    font-size: 0.75rem;
}

.video-prompt {
    width: 60%;
    max-width: 1280px;
    margin: 2rem auto;
    cursor: pointer;
    transition: transform 1s ease;
    transform: scale3d(1,1,1);
}

.video-prompt:hover {
    transform: scale3d(0.95, 0.95, 0.95);
}

.video-cta {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
}

.video-cta img {
    width: 100%; height: auto; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    border-radius: 2rem;
    box-shadow: 0rem 0rem 0.5rem 0.15rem rgba(0,0,0,0.2);
    transition: box-shadow 1s ease;
}

.video-cta img:hover {
    box-shadow: 0rem 0rem 0rem 0rem rgba(0,0,0,0.2);
}

.video-cta .video-overlay {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: black;
    fill: black;
    position: absolute;
    bottom: 0.5rem;
    left: 0; right: 0;
    z-index: 2;
}

.video-cta .video-overlay svg {
    padding: 0 0.25rem;
    margin: 1rem 0.1rem;
}

.video-cta .video-overlay h4 {
    padding: 0 0.25rem;
    margin: 1rem 0.1rem 1.75rem 0.1rem;
    font-size: 2.5rem;
}

.diary-image {
    width: 60%;
    max-width: 1280px;
    margin: 2rem auto;
    position: relative;
}

.diary-image img {
    width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0rem 0rem 0.5rem 0.15rem rgba(0,0,0,0.2);
}

.footer-image {
    width: 100%;
    height: 0;
    padding-bottom: 20%;
    position: fixed;
    bottom: 0;
    right: 0;
    background: white url('/images/backgrounds/dannys-diary.jpg') bottom right no-repeat;
    background-size: contain;
    z-index: -1;
    opacity: 0;
}



@media screen and (orientation:portrait) {

    .dd-title {
        margin-bottom: 4rem;
    }
    
    .dd-title img {
        width: 25%;
        margin: 0 0.15rem;
    }
    
    section.content .copy h1.dd {
        font-size: 4rem;
        transform: rotate(-5deg);
    }

    .article-image-wrap h2.dd, .article-image-wrap h3.dd, .video-prompt h2.dd {
        font-size: 1.5rem;
        max-width: 80%;
        top: -1rem;
        left: -1rem;
    }

    .articles .article.latest {
        width: 100%;
        margin: 3rem 0;
    }

    .articles {
        flex-direction: column;
    }

    .articles .article {
        width: 100%;
        padding-bottom: 1rem;
    }

    .articles .article a img {
        border-radius: 1rem;
    }

    .footer-image {
        background-position: bottom center;
        padding-bottom: 40%;
        position: relative;
        bottom: auto;
        right: auto;
    }

    .video-prompt {
        width: 100%;
    }

    .video-cta, .video-cta img {
        border-radius: 1rem;
    }

    .video-cta .video-overlay svg, .video-cta .video-overlay h4 {
        padding: 0 0.15rem;
        margin: auto 0;
        font-size: 1.5rem;
    }

    *.white-outline, .article-image-wrap h2.dd, .article-image-wrap h3.dd, .video-prompt h2.dd, .diary-image h2.dd, section.content .copy h1.dd {
        text-shadow:    1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
    }

    .diary-image {
        width: 100%;
    }

    .diary-image img {
        border-radius: 1rem;
    }
}