html {
    --bg-color: rgb(47,61,65);
    --bg-card: #101a1d;
    --border-checkbox: rgba(255,255,255,0.7);
    --text-color: rgba(255,255,255,1);
    --text-50: rgba(255,255,255,0.5);
    --text-30: rgba(255,255,255,0.3);
    --text-10: rgba(255,255,255,0.1);
    --primary: rgb(42, 127, 153);
    --primary-faded: rgb(27, 88, 106);
    --main-fuck: rgba(255,255,255,1);
    background: #101A1D;
    background: radial-gradient(circle at center top, #2F3D41 0%, #101A1D 80%) no-repeat;
}

body { 
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    min-height: 100vh;
}

/* when the fork parameter is active */
body.forkingred {
    --main-fuck: #c10101;
    --primary: #c10101;
    --primary-faded: #d15e5e;
    --bg-card: #101a1d;
}

.cardContainer {
    position: relative;
    margin: 2vh auto 0;
    perspective: 500px;
    width: 370px;
    height: 640px;
}

.front,
.back {
  position: absolute;
  padding: 1.2vh 2em;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  /*-webkit-backface-visibility: hidden;*/
  display: flex;
  flex-flow: column wrap;
  transform: rotateX(0deg);
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.9s;
    transform-style: preserve-3d;
    margin: 0 auto;
    border-radius: 1em;
    background: var(--bg-card);
    color: var(--text-color);
    box-shadow: 0px 4px 12px rgba(0,0,0,0.4);
    text-transform: uppercase;
}

.cardContainer.created .card {
    transform: rotateY( 180deg ) ;
    transition: transform 0.6s;
}

.pre, .post {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    transition: all ease-in-out 300ms;
    font-size: 0.95em;
}

.choice {
    width: 50%;
    margin: 0 0 0.45em 0;
    transition: all ease-in-out 300ms;
}

.card .checkbox {
    appearance: none;
    margin: 0 0.1em 0 0;
    font: inherit;
    width: 1.5em;
    height: 1.5em;
    border-radius: 0.3em;
    border: solid 1px var(--border-checkbox);
    transform: translateY(0.28em);
    background: transparent;
    display: inline-block;
    cursor: pointer;
    
}

.card .checkbox:checked {
    background-color: transparent;
    background-image: linear-gradient(#fff, #fff);
    border: solid 2px var(--border-checkbox);
    background-repeat: no-repeat;
    background-position: 0.2em 0.2em;
    background-size: 0.83em 0.83em;
}

.card .customtext {
    background-color: transparent;
    border: 0;
    width: 90%;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all ease-in-out 200ms;
    border-radius: 0.3em;
    padding: 0.3em 0;
    margin: 0.1em 0;
    color: var(--text-color);
    /*font-style: italic;*/
    opacity: 0.8;
}

.card .customtext:focus {
    border: solid 1px var(--text-30); 
    outline: transparent;
    padding: 0.3rem 0.5rem;
    opacity: 1;
    transition: all ease-in-out 200ms;
}

.card label {
    color: var(--border-checkbox);
    font-size: 1.1em;
}

.card .checkbox:checked ~ label {
    font-weight: 700;
    color: var(--text-color);
}

.card label:hover {
    cursor: pointer;
}

body.forkingred #c15 ~ label::after,
body.forkingred #c1 ~ label::before {
    content: " of here!";
    rotate: -5deg;
    color: var(--primary);
    display: inline-block;
    letter-spacing: -1px;
    padding: 0 0 0 0.2rem;
}

body.forkingred #c1 ~ label::before {
    content: "now ";
    padding: 0 0.2rem 0 0;
}

.text {
    width: 100%;
}

.text input {
    margin: 0 0 0.9em;
    background: transparent;
    border: 0;
    border-bottom: solid 1px var(--border-checkbox);
    width: 100%;
    padding: 0.4em 0.5em;
    border-radius: 0;
    color: var(--text-color);
    font-size: 1.1em;
    letter-spacing: -1px;
    opacity: 0.4;
    transition: all ease-in-out 100ms;
}

.text input:focus {
    opacity: 1;
    border-bottom: solid 1px var(--text-color);
    outline: transparent;
    transition: all ease-in-out 100ms;
}

.text input.from  {
    margin: 0.7rem  0 0;
    text-align: right;
    font-style: italic;
}

.fuck h1 {
    margin: 0.2rem auto 0.5rem;
    font-size: 6.5rem;
    line-height: 100%;
    text-align: left;
    color: var(--main-fuck);
}

body.forkingred .fuck h1 {
    rotate: -5deg;
    font-style: italic;
}


/* ==================
AFTER CARD CREATION 
====================*/ 

.back {
    transform: rotateY( -180deg );
    justify-content: space-between;
}

.back .pre,
.back .post {
    flex-flow: column;
    flex-grow: 1;
}

.back .pre {
    justify-content: flex-end;
}

.back .post {
    justify-content: flex-start;
}

.back .fuck {
    text-align: center;
}

.phrase {
    font-size: 1.4rem;
    width: 100%;
    margin: 0.1em 0;
    text-align: center;
}

.phrase .fuckoff {
    object-fit: cover;
    width: 90%;
    margin: auto;
    display: block;
}

body.forkingred #cb14.phrase,
body.forkingred #cb2.phrase,
body.forkingred #cb0.phrase {
    rotate: -5deg;
}

body.forkingred #cb14.phrase::after,
body.forkingred #cb0.phrase::before {
    content: " of here!";
    padding: 0 0 0 5px;
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
}

body.forkingred #cb0.phrase::before {
    content: "now";
    padding: 0 5px 0 0;
}

.to {
    width: 100%;
    padding: 0 0 0.7rem;
    text-align: left;
    font-size: 1.2em;
    border-bottom: solid 1px var(--text-10);
}

.from { 
    width: 100%;
    padding:  0.7em 0 0;
    text-align: right;
    font-size: 1.2em;
    border-top: solid 1px var(--text-10);
    align-self: flex-end;

}

.to span,
.from span {
    opacity: 0.3;
    font-size: 0.8rem;
    margin: 0 0 0.15rem;
    display: block;
}

.stamp {
    text-align: center;
    font-size: 0.7rem;
    padding-bottom: 1vh;
    color: var(--text-30);
}


/* ==================
FOOTER ACTIONS
====================*/ 

.actions {
    margin: 2.5vh auto 0;
    display: flex;
    flex-wrap: wrap;
    width: 380px;
}

/*@media (max-width: 400px) {
    .actions {
        width: 100%;
        padding: 2vh 0;
        background: rgba(17, 69, 85, 0.4);
        backdrop-filter: blur(15px);
        position: fixed;
        bottom: 0;
    }
  }*/

.before,
.after {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8em;
    position: relative;
    transition: all ease-in-out 200ms;
}

.mainButton {
    padding: 0.4em 0.7em;
    border-radius: 0.5em;
    border: solid 1px var(--primary);
    background: transparent;
    color:  var(--text-color);
    font-size: 1.3em;
    letter-spacing: -1px;
    cursor: pointer;
    transition: all ease-in-out 200ms;
}

.mainButton:hover {
    background: var(--primary);
    transition: all ease-in-out 200ms;
}

.share {
    padding: 0.5em 1em;
    margin: 0;
    width: 2.6rem;
    border-radius: 50%;
    border: solid 1px var(--primary);
    background: no-repeat center;
    background-size: 24px;
    color:  var(--primary);
    font-size: 0;
    overflow: hidden; 
    cursor: pointer;
    transition: all ease-in-out 200ms;
}

.share.mastodon { background-image: url(images/tabler-icon-brand-mastodon.svg);  }
.share.twitter { background-image: url(images/tabler-icon-brand-twitter.svg);  }
.share.link { background-image: url(images/tabler-icon-link.svg); }
.share.image { background-image: url(images/camera-share.svg); }
.share.all { background-image: url(images/share-2.svg);  }

.share:hover {
    background-color: var(--primary);
    transition: all ease-in-out 200ms;
}

.hoverinfo { 
    height: 0;
    visibility: hidden;
    opacity: 0;
    color: var(--text-color);
    background: rgba(0,0,0,0.2);
    padding: 0.4em 0.8em;
    border-radius: 0.5em;
    position: absolute;
    top:-2.5em;
    right: 3.5em;
    transition: opacity ease-in-out 200ms;
 }

.share.all:hover ~ .hoverinfo.all,
.share.image:hover ~ .hoverinfo.image { 
    height: auto;
    visibility: visible;
    opacity: 1;
    transition: opacity ease-in-out 200ms; 
}

.share img {
    color: #fff;  
}

.socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8em;
}

.copiedDialog {
    display: block;
    color: var(--text-color);
    background: rgba(0,0,0,0.2);
    padding: 0.4em 0.8em;
    border-radius: 0.5em;
    position: absolute;
    top: -4em;
    opacity: 0;
    transition: all ease-in-out 200ms;
}

.copiedDialog.active {
    display: block;
    height: auto;
    opacity: 1;
    top: -2.5em;
    transition: all ease-in-out 200ms;
}

.credits {
    width: 100%;
    text-align: center;
    margin: 2vh 0 0 0;
    opacity: 0.7;
    color: var(--text-50);
}

.credits a { 
    color: var(--text-50);
    text-decoration: none;
}

/* ==================
ABOUT
====================*/ 

.thecredits {
    width: 375px;
    background: var(--bg-card);
    color: var(--border-checkbox);
    box-shadow: 0px 4px 12px rgba(0,0,0,0.4);
    padding: 0;
    margin: 2vh auto;
    border-radius: 1em;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.thecredits .content {
    padding: 0.5em 1.5em 1.5em;
}

.thecredits p {
    line-height: 140%;
    font-size: 1em;
    font-weight: 400;
}

.thecredits h2 { 
    margin-top: 1.2em;
    font-weight: 700;
    letter-spacing: -1px;
    font-size: 1.6em;
}

.thecredits p a {
    color: var(--primary);
    text-decoration: none;
}

.thecredits p a.donutlink {
    display: block;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    width: 60%;
    font-size: 1.2em;
    text-align: center;
    border: solid 1px var(--primary);
    color: var(--text-color);
    border-radius: 0.6em;
}


.thecredits p a.donutlink:hover {
    background-color: var(--primary);
}

.thecredits img {
    object-fit: cover;
    width: 100%;
    border-radius: 1em 1em 0 0;
}

.thecredits .mainButton {
    text-decoration: none;
    display: block;
    text-align: center;
    width: 55%;
    margin: 1em auto 0;
}

.thanks ul {
    color: var(--text-50);
    margin: 0 0 0 1rem;
    padding: 0;
}

.thanks li {
    padding: 0 0 1rem 0;
}

.thanks a {
    color: var(--text-color);
    text-decoration: none;
}

/* Main classes to hide and show things */
.hide { display: none;}
.show { display: block;}