/* This file is generic */

/* Old color scheme
--red-50 : #CB666E;
--red : #bb3640;
--red-100 : #910020;

--purple-50 : #9C7ACE;
--purple : #7d50bf;
--purple-100 : #3e0073;

--blue-50 : #3E91D0;
--blue : #016fc1;
--blue-100 : #015ba0;

--green-50 : #3DA07E;
--green : #008255;
--green-100 : #076a46; */

:root {
    --black : #000000;
    --black-50 : #000000c2;
    --white : #ffffff;
    --grey-50 : #ebebec;
    --grey : #BCBCBD;

    --red-50 : #CB666E;
    --red : #CB666E;
    --red-100 : #bb3640;

    --purple-50 : #9C7ACE;
    --purple : #9C7ACE;
    --purple-100 : #7d50bf;

    --blue-50 : #3E91D0;
    --blue : #3E91D0;
    --blue-100 : #016fc1;

    --green-50 : #3DA07E;
    --green : #3DA07E;
    --green-100 : #008255;


    --font-size-xs : 10px;
    --font-size-xs : 12px;
    --font-size-sm : 14px;
    --font-size-m : 16px;
    --font-size-l : 20px;
    --font-size-xl : 24px;
    --font-size-xxl : 34px;
    --font-size-h1 : 42px;
}

.w-100 {
    width: 100%;
}

html, body
{
    padding:0;
    margin:0;
    color: var(--black);
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-m);
}

html {
    background-color: var(--white);
}

body {
    background-image: url(assets/Tile.png);
    background-position: -20px 5px;
    background-position-x: -20px;
    background-position-y: 5px;
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: 75px;
    height: auto;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

header{
    background-color: var(--white);
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Three columns: left, center, and right */
    align-items: center;
    padding: 1.2rem 2rem;
    height: 4.5rem;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.3s ease-out;
}

a:hover, a:focus {
    text-decoration: underline var(--red-50) solid 1px;
    color: var(--red-50);
}

code {
    background-color: var(--grey-50);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.left {
    display: flex;
    justify-content: flex-start;
}

.center {
    display: flex;
    justify-content: center;
}

.right {
    display: flex;
    justify-content: flex-end;
}

nav {
    display: flex;
}

.page-wrapper {
    padding: 0 2rem;
    min-height: 85dvh;
}

.page {
    max-width: 1200px;
    /* background: var(--white); */
    border-radius: 12px;
    /* outline: var(--black) solid 3px; */
    outline-offset: -1.5px;
    margin: 2rem auto;
    overflow: hidden;
}

.container{
    display: flex;
    flex-direction: row;
    outline: var(--black) solid 3px;
    outline-offset: -1.5px;
    border-radius: 8px;
    margin: 1rem;
    overflow: hidden;
}

.card {
    background-color: var(--white);
    outline: var(--black) solid 3px;
    outline-offset: -1.5px;
    padding: 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    justify-content: space-between;
}

.card-center-h {
    justify-content: center;
}
.card-center-w {
    align-items: center;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 3rem auto;
}

form div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

input:not([type='checkbox']), textarea {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid var(--grey);
    font-size: var(--font-size-m);
    width: 25vw;
    min-width: 200px;
}

textarea {
    height: 10vh;
    max-height: 30vh;
    resize: vertical;
}

.checkbox-container{
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin: 1rem 0;
    width: 25vw;
    min-width: 200px;
}

.checkbox-container span{
    text-wrap: auto;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 5px;
    background-color: var(--black);
    color: var(--white);
    text-decoration: none;
    border: none;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease-out;

    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: .5rem;
}

.btn:hover, .btn:focus {
    background-color: var(--black-50);
    text-decoration: none;
    color: var(--white);
}

.btn-square span {
    display: none;
}

.btn-red {
    background-color: var(--red);
}
.btn-red:hover, .btn-red:focus {
    background-color: var(--red-50);
}

.btn-purple {
    background-color: var(--purple);
}
.btn-purple:hover, .btn-purple:focus {
    background-color: var(--purple-50);
}

.btn-blue {
    background-color: var(--blue);
}
.btn-blue:hover, .btn-blue:focus {
    background-color: var(--blue-50);
}

.btn-green {
    background-color: var(--green);
}
.btn-green:hover, .btn-green:focus {
    background-color: var(--green-50);
}

.btn-discord {
    background: #7289da;
}
.btn-discord:hover, .btn-discord:focus {
    background: #7289dac2;
}

.btn-insta {
    background: #833ab4;
    background: linear-gradient(
        to right,
        #833ab4,#fd1d1d,#fcb045
    );
    transition: opacity 0.3s ease-out;
}

.btn-insta:hover, .btn-insta:focus {
    opacity : 0.76;
}

/* Background colors */
.bg-black {
    background-color: var(--black);
    color: var(--white);
}
.bg-white {
    background-color: var(--white);
    color: var(--black);
}
.bg-grey-50 {
    background-color: var(--grey-50);
    color: var(--black);
}
.bg-grey {
    background-color: var(--grey);
    color: var(--black);
}
.bg-red {
    background-color: var(--red);
    color: var(--white);
}
.bg-purple-50 {
    background-color: var(--purple-50);
    color: var(--white);
}
.bg-purple {
    background-color: var(--purple);
    color: var(--white);
}
.bg-purple-100 {
    background-color: var(--purple-100);
    color: var(--white);
}
.bg-blue {
    background-color: var(--blue);
    color: var(--white);
}
.bg-green {
    background-color: var(--green);
    color: var(--white);
}

/* Font colors */
.font-red-50 {
    color: var(--red-50);
}
.font-red {
    color: var(--red);
}
.font-purple-50 {
    color: var(--purple-50);
}
.font-purple {
    color: var(--purple);
}
.font-blue-50 {
    color: var(--blue-50);
}
.font-blue {
    color: var(--blue);
}
.font-green-50 {
    color: var(--green-50);
}
.font-green {
    color: var(--green);
}

/* Back to top arrow */
button.back-to-top{
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
      height: 0px;
    width: 0px;
    overflow: hidden;
      border-radius: 50px;
      -webkit-border-radius: 50px;
      -moz-border-radius: 50px;
    color: transparent;
      clear: both;
    visibility: hidden;
    position: fixed;
    cursor: pointer;
    display: block;
    border: none;
    right: 50px;
      bottom: 75px;
    font-size: 0px;
    outline: 0 !important;
    z-index: 99;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}
button.back-to-top:hover, button.back-to-top:active, button.back-to-top:focus {
    outline: 0 !important;
}
button.back-to-top::before, button.back-to-top::after {
    content: "";
    display: block;
    /* vertical-align: middle; */
    border-bottom: solid 10px var(--red-50);
    border-left: solid 10px transparent;
    line-height: 0;
    border-right: solid 10px transparent;
    height: 0;
    margin: 18px auto 0;
    width: 0;
    border-radius:20px;
    visibility: hidden;
}
button.back-to-top.show::after, button.back-to-top.show::before {
    visibility: visible;
}
button.back-to-top::after {
    border-bottom-color: var(--white);
    position: relative;
    top:-24px;
}
button.back-to-top.show {
    display: block;
    background: var(--white);
    color: var(--green);
    font-size: 25px;
    right: 25px;
    bottom: 50px;
    height: 50px;
    width: 50px;
    visibility: visible;
    box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.25);
}
button.back-to-top.show:active {
    box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.25);
}

.logo img {
    height: 3rem;
}

.paragraph-img {
    max-width: 85%;
    height: auto;
    border-radius: 12px;
    margin: 0 auto 2rem auto;
}

h1, h2, h3, h4, h5
{
    font-family: 'Libre Baskerville', display, serif;
    text-transform: uppercase;
}

h1 {
    font-size: var(--font-size-h1);
    letter-spacing: -0.2px;
    margin: 0.5rem 0;
}
h2 {
    font-size: var(--font-size-xxl);
    letter-spacing: 0;
    margin: 0.5rem 0;
}
h3 {
    font-size: var(--font-size-xl);
    font-weight: bold;
    letter-spacing: 0.1px;
    margin: 0.6rem 0;
}
h4 {
    font-size: var(--font-size-l);
    font-weight: bold;
    letter-spacing: 0.2px;
    margin: 0.7rem 0;
}

p {
    font-size: var(--font-size-m);
    letter-spacing: 0.1px;
    margin: 0.7rem 0;
}
.subtext {
    font-size: var(--font-size-sm);
    letter-spacing: 0.1px;
    margin: 0.25rem 0;
}

.rive-animation {
    min-width: 75px;
    width: 8vw;
}

.img-contained {
    height: 50vh;
    min-width: 60vh;
    object-fit: cover;
    padding: 0;
}
.img-banner {
    width: 100%;
    height: 40vh;
}
.img-right {
    object-position: right;
}

.gif{
    border-radius: 5px;
}

.text-wrapper h1{
    margin-bottom: 1.5rem;
}
.text-wrapper h2{
    margin-bottom: 1.2rem;
}

.text-wrapper p{
    max-width: 55vw;
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 3rem auto;
    padding: 1rem;
}

footer{
    background-color: var(--green-50);
    color: var(--white);
    padding: 1.5rem 2rem 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

footer p{
    margin: 0;
}

footer nav{
    display: flex;
    justify-content: space-between;
}

footer .flex {
    display: flex;
    gap: 1rem;
    align-items: center;
}

footer .bar{
    height: 1px;
    background-color: var(--white);
    width: 100%;
    margin: 1rem 0;
}

footer a{
    color: var(--white);
    text-decoration: none;
}

footer a:hover, footer a:focus {
    text-decoration: underline var(--grey-50) solid 1px;
    color: var(--grey-50);
}

footer nav .btn{
    padding: 0.5rem 0.5rem;
    background-color: unset;
    color: var(--black);
}

footer nav .btn:hover, footer nav .btn:focus {
    background-color: unset;
    outline: var(--green) solid 2px;
    text-decoration: none;
}

footer .btn-wrapper{
    display: flex;
    gap: 0;
}

/* smaller Desktop */
@media screen and (max-width: 1400px) {
    header .btn span{
        display: none;
    }
    
}

/* Tablet */
@media screen and (max-width: 1200px) {
    .card {
        padding: 1.6rem 1.8rem;
    }
    /* To counter card padding */
    .img-contained {
        padding: 0;
    }
}

/* smaller Tablet */
@media screen and (max-width: 850px) {
    :root {
        --font-size-xs: 10px;
        --font-size-xs: 12px;
        --font-size-sm: 12px;
        --font-size-m: 14px;
        --font-size-l: 16px;
        --font-size-xl: 20px;
        --font-size-xxl: 24px;
        --font-size-h1: 28px;
    }
    header {
        height: 3.5rem;
        grid-template-columns: auto 1fr;
    }
    header .left{
        display: none;
    }
    header .center {
        justify-content: start;
    }
    header .logo img {
        height: 2rem;
    }
    
    .page-wrapper {
        padding: 0 1rem;
    }
    .container:not(.no-resp) {
        flex-direction: column;
    }
    .card {
        padding: 1.4rem 1.6rem;
    }
    .card.w-100 {
        width: auto;
    }
    /* To counter card padding */
    .img-contained {
        height: 60vw;
        min-width: 60vw;
        padding: 0;
    }
    .img-banner {
        width: 100%;
        aspect-ratio: 1/1;
    }

    footer .requirements{
        flex-direction: column;
        align-items: start;
    }
}

/* Mobile */
@media screen and (max-width: 500px) {
    header .center {
        justify-content: start;
    }
    header .btn{
        padding: .5rem .7rem;
        margin: 0 .25rem;
    }
    header .btn svg{
        width: 20px;
        height: 20px;
    }
    .card {
        padding: 1.2rem 1.4rem;
    }
    /* To counter card padding */
    .img-contained {
        padding: 0;
    }
    .text-wrapper p{
        max-width: none;
    }
}