/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

@font-face {
    font-family: 'TH Epika Serif';
    src: url(/fonts/epika-serif-regular.woff2) format('woff2'), url(/fonts/epika-serif-regular.woff) format('woff');
}

html, body {
    padding: 0;
    margin: 0;
    font-family: -apple-system, Helvetica, sans-serif;
}

body {
    background: #e7e7de;
    /*overflow: hidden;*/
}

h1, h2 {
    font-family: "TH Epika Serif", Georgia, serif;
    margin: 0;
    font-weight: unset;
}

h1 {
    font-size: 30px;
    letter-spacing: -1px;
}

.newsletter-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.newsletter-callout {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    border-bottom: 1px solid #cfcfbb;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap;
}

.newsletter-callout p {
    font-family: -apple-system, BlinkMacSystemFont, Helvetica, sans-serif;
    color: #7a7a6d;
    font-size: 16px;
    margin: 0 auto 0 2px;
    line-height: 1.45;
}

.newsletter-preview {
    position: relative;
    flex: 1;
}

.newsletter-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.ml-block-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 5px;
    margin-left: 25px;
}

.ml-field-group input[type=email] {
    width: 89%;
    max-width: 400px;
    height: 40px;
    background: #e1e1d4;
    border: 1px solid #cfcfbb;
    border-radius: 5px;
    box-shadow: 0 30px 30px rgb(0 0 0 / 2%), 0 0 8px rgb(0 0 0 / 3%), 0 1px 0 rgb(0 0 0 / 5%);
    font-size: 1rem;
    outline: 0;
    padding: 5px 15px;
}

.ml-block-form button[type=submit] {
    background: #393934;
    color: #e7e7de;
    border-radius: 5px;
    outline: 0;
    border: 0;
    padding: 16px 30px;
    font-family: -apple-system, BlinkMacSystemFont, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 18px;
    box-shadow: 0 30px 30px rgb(0 0 0 / 2%), 0 0 8px rgb(0 0 0 / 3%), 0 1px 0 rgb(0 0 0 / 5%);
}

.links-container {
    width: 90%;
    max-width: 700px;
    margin: 20px auto;
}

.links-container .branding {
    text-align: center;
}

.links-container .branding img {
    width: 100px;
}

.links-container .branding p {
    font-family: -apple-system, BlinkMacSystemFont, Helvetica, sans-serif;
    margin-top: 0;
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    color: #7a7a6d;
}

.links-section {
    background: #f8faf7;
    border-radius: 10px;
    -webkit-box-shadow: 0 2px 15px -8px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 2px 15px -8px rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 15px -8px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddddcf;
    margin-top: 25px;
}

.links-section form {
    display: flex;
    border-bottom: 1px solid #e4e4cf;
    align-items: center;
}

.links-section form input[type=text] {
    box-sizing: border-box;
    border: 0;
    background: transparent;
    outline: 0;
    padding: 18px 20px;
    font-size: 16px;
    border-right: 1px solid #e4e4cf;
}

.new-link-form-controls {
    display: flex;
    align-items: center;
}

.new-link-form-controls input[type=radio] {
    width: 0;
    height: 0;
    opacity: 0;
}

.new-link-form-controls input[type=radio] + label img {
    opacity: 0.4;
    width: 20px;
    height: 20px;
    transition: all 0.2s;
    cursor: pointer;
}

.new-link-radio-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 18px 0 12px;
    grid-gap: 10px;
}

.new-link-form-controls input[type=radio]:checked + label img {
    opacity: 1;
}

.links-section form #url {
    flex: 1;
}

.links-section form #code {
    max-width: 150px;
}

.new-link-form-controls input[type=submit] {
    background: rgb(84, 48, 48);
    border: 0;
    height: 54px;
    border-top-right-radius: 10px;
    width: 92px;
    border-left: 1px solid #e4e4cf;
    font-size: 16px;
    color: #e7e7de;
    font-weight: 600;
    cursor: pointer;
}

ul.all-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.all-links li {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    padding: 0 24px;
    align-items: center;
}

ul.all-links .link-item-frame:last-child {
    border: 0;
}

.link-details {
    flex: 1;
}

ul.all-links .link-item-frame {
    display: block;
    border-bottom: 1px dashed #e4e4cf;
}

a {
    text-decoration: none;
}

p.short-link {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 20px;
    color: #000;
}

p.full-link {
    color: #7a7a6d;
    font-style: italic;
    font-size: 14px;
    margin-top: 0;
}

.full-link-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.full-link-edit {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.full-link-edit img {
    width: 12px;
    height: 12px;
    opacity: 0.4;
    margin-top: 2px;
}

.full-link-form {
    display: flex;
    align-items: flex-start !important;
    gap: 10px;
    border: 0 !important;
    padding-bottom: 11px;
}

.full-link-form input[type=text] {
    box-sizing: border-box;
    border: 0 !important;
    background: transparent;
    outline: 0;
    padding: 0 !important;
    font-size: 14px !important;
}

.full-link-form-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.full-link-form-controls img {
    width: 12px;
    height: 12px;
}

.full-link-form-controls button[type=submit] {
    border: 0 !important;
    background: transparent !important;
    cursor: pointer;
}

.full-link-form-controls .cancel {
    color: #7a7a6d;
    font-size: 13px;
    font-weight: 600;
}

span.link-domain {
    opacity: 0.5;
}

ul.all-links li .link-controls {
    position: absolute;
    right: 0;
    top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    visibility: hidden;
    opacity: 0;
    grid-gap: 10px;
    transition: opacity 0.2s ease-in-out;
}

ul.all-links li .link-controls img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

ul.all-links li:hover .link-controls {
    visibility: visible;
    opacity: 1;
}

.link-analytics {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.link-analytics p {
    font-size: 12px;
    background: #e7e7de;
    padding: 4px 10px;
    border-radius: 16px;
    font-weight: 600;
    color: #7a7a6d;
}

ul.all-links li:hover .link-analytics {
    visibility: hidden;
    opacity: 0;
}

ul.all-links li .link-controls .copy span {
    display: none;
}

ul.all-links li .link-controls .copy {
    cursor: pointer;
}

ul.all-links li .link-meta-section {
    position: relative;
}

.link-overview {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.analytics-cards {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

.analytics-data {
    box-sizing: border-box;
    padding: 20px;
}

.analytics-data h4 {
    color: #7a7a6d;
    margin: 0 0 10px 0;
}

ul.analytics-data-list {
    padding: 10px 0 0 0;
    margin: 0;
    list-style: none;
    border-top: 1px dashed #cfcfbb;
}

ul.analytics-data-list li {
    display: flex;
    align-items: center;
}

ul.analytics-data-list li p {
    font-weight: 600;
    font-size: 15px;
    margin: 6px 0;
}

.expanded {
    flex: 1;
}

.no-margin {
    margin: 0;
}

@keyframes breathe {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.newsletter-preview .loader {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    animation-name: breathe;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.newsletter-preview .loader img {
    width: 120px;
}

.link-type img {
    width: 16px;
    opacity: 0.5;
}

.link-type {
    align-self: flex-start;
    margin-top: 25px;
    margin-right: 14px;
}

.home-container {
    width: 90%;
    max-width: 550px;
    margin: 20px auto;
    border: 1px solid #cfcfbb;
}

.home-container a.home-branding img {
    width: 150px;
}

@media only screen and (max-width: 480px) {
    .ml-block-form {
        margin-top: 15px;
        margin-left: -15px;
    }

    h1 {
        font-size: 26px;
    }

    .ml-field-group input[type=email] {
        max-width: 150px;
    }

    .ml-block-form button[type=submit] {
        margin-left: 5px;
    }
}
