@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

* {
    box-sizing: border-box;
}




/*****************************/
/*                           */
/*   Admin Styles            */
/*                           */
/*****************************/

body.admin {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: radial-gradient(circle at top, #c8e4ed 30%, #3e6b79);
}

.admin a {
    text-decoration: none;
}

.admin .page-wrapper {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: 136px 72px auto;
    gap: 0rem;
    max-width: 1200px;
    min-height: calc(100vh - 32px);
    margin: 0;
    box-shadow: 1px 3px 6px rgba(0,0,0,.2);
}

@media (min-width: 700px) {
    .admin .page-wrapper {
        grid-template-columns: 72px auto;
        grid-template-rows: 136px auto;
        margin: 1rem;
    }
}

@media (min-width: 1232px) {
    .admin .page-wrapper {
        margin: 1rem auto;
    }
}

.admin header {
    background-color: rgb(21, 58, 92);
    width: 100%;
    max-width: 100vw;
    padding: 24px;
    height: 136px;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgb(200, 228, 237);
    border-radius: 4px;
    grid-column: auto;
}

@media (min-width: 700px) {
    .admin header {
        grid-column: span 2;
    }
}

.admin header h1 {
    display: flex;
    align-items: center;
    width: 336px;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 24px 0 0;
    line-height: 1;
    text-shadow: 2px 2px 3px rgb(2, 22, 34);
}

.admin header h1 img {
    max-height: 30px;
    width: auto;
    padding-right: 1rem;
}

.admin header a {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    opacity: .6;
}

.admin header a:hover {
    opacity: 1;
}

.admin header a img {
    float: left;
    width: 14px;
    height: 14px;
    margin-right: 8px;
}

.admin nav {
    display: flex;
    flex-direction: rpw;
    align-items: center;
    border-top: 1px dashed rgb(200, 228, 237);
    border-bottom: 1px dashed rgb(200, 228, 237);
    border-radius: 4px;
    padding: 1rem .5rem;
    max-width: 100vw;
    background: linear-gradient(to bottom, #608fbb, #2e5376);
}

@media (min-width: 700px) {
    .admin nav {
        flex-direction: column;
        border-bottom: none;
        border-right: 1px dashed rgb(200, 228, 237);
    }
}

.admin nav a, .admin nav form {
    text-decoration: none;
    color: #fff;
    opacity: .8;
    flex: 1;
    height: 100%;
    text-align: center;
}

@media (min-width: 700px) {
    .admin nav a, .admin nav form {
        flex: unset;
        height: auto;
    }
}

.admin nav a img, .admin nav button {
    width: 40px;
    height: 40px;
    margin: 0;
    padding: .5rem;
    border: none;
    background: transparent;
}


.admin nav a:hover, .admin nav button:hover {
    opacity: 1;
}

.admin .content-wrapper {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    background: linear-gradient(to bottom, #ffffff, #b5b5b5);
    position: relative;
    border-top: 1px dashed rgb(200, 228, 237);
    border-left: 1px dashed rgb(200, 228, 237);
    border-radius: 4px;
    padding: 1.5rem;
}

.admin .content-wrapper h2 {
    color: rgb(21, 58, 92);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin: 0 auto 1rem 0;
}

.admin .content-wrapper h3 {
    color: rgb(21, 58, 92);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: .5rem;
}

.admin .content-wrapper .cards {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
}

.admin .content-wrapper .cards .card {
    display: block;
    flex: 1;
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid lightblue;
    border-radius: 8px;
    box-shadow: 0px 2px 3px rgba(0,0,0,.2);
}

.admin .content-wrapper .cards .card:hover {
    border: 1px solid rgb(125, 199, 224);
    box-shadow: 0px 4px 6px rgba(0,0,0,.2);
}

.admin .content-wrapper .heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.admin .content-wrapper .heading a {
    display: block;
    padding: .25rem 1rem;
    margin-left: 1rem;
    background-color: #28a745;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
}

.admin .content-wrapper .ck-editor .ck-content {
    min-height: 350px;
}

th {
    text-align: left;
}

.table_title {
    width: auto;
    padding: 1rem;
}

.td_title {
    padding: .5rem 1rem;
}

.table_status {
    width: 100px;
}

.table_created {
    width: 115px;
}

.table_updated {
    width: 115px;
}

.table_tools {
    width: 105px;
}

.td_tools {
    display: flex;
    justify-content: space-between;
    padding: .5rem 1rem 0 0;
}




/*****************************/
/*                           */
/*   Blog Styles             */
/*                           */
/*****************************/

body.blog {
    background-color: #000;
    background-position: center bottom, center top;
    background-repeat: no-repeat;
    /* font-family: "Open Sans", sans-serif; */
    font-family: system-ui, system, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    overflow-x: hidden;
    margin: 0;
    padding: 0 8px;

    --yellow: #EBFF78;
    --green: #47D77D;
    --teal: #35C8B5;
    --blue: #649FE2;
    --purple: #A179E2;
}

body.blog h1, body.blog h2, body.blog h3, body.blog h4, body.blog h5, body.blog h6 {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.blog a {
    text-decoration: none;
}

.blog h1 {
    font-size: 3rem;
    margin: 0 auto 0 0;
    line-height: 1;
}

.blog .wrapper {
    width: 100%;
    max-width: 688px;
    background: linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.8) 20%, rgba(255,255,255,.8) 80%, rgba(255,255,255,.9) 100%);
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
    min-height: calc(100vh - 18vw);
    margin: 18vw auto 0;
    padding: calc(48vw - 36px) 0 88px;
    position: relative;
    box-shadow: inset 0px 0px 6px rgba(0,0,0,.1);
}

@media (min-width: 375px) {
    .blog .wrapper {
        padding-top: calc(35vw - 36px);
    }
}

@media (min-width: 430px) {
    .blog .wrapper {
        padding-top: calc(28vw - 36px);
    }
}

@media (min-width: 700px) {
    .blog .wrapper {
        padding-top: calc(30vw - 36px);
        margin: 20vw auto 0;
    }
}

@media (min-width: 980px) {
    .blog .wrapper {
        min-height: calc(100vh - 250px);
        margin: 250px auto 0;
        padding-top: 194px;
    }
}

.blog .logo {
    position: absolute;
    display: block;
    top: -18vw;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 700px) {
    .blog .logo {
        top: -20vw;
    }
}

@media (min-width: 980px) {
    .blog .logo {
        top: -250px;
    }
}

.blog .logo img {
    max-width: 105vw;
}

.blog nav {
    width: 100vw;
    height: auto;
    position: absolute;
    top: 20vw;
    left: -10px;
    padding: 8px;
    background-color: #fff;
}

@media (max-width: 699px) {
    .blog nav {
        background-image: none !important;
    }
}

@media (min-width: 700px) {
    .blog nav {
        width: 722px;
        height: 139px;
        position: absolute;
        top: 13vw;
        left: 50%;
        transform: translateX(-49.5%);
        padding: 0;
        background-color: transparent;
    }
}

@media (min-width: 980px) {
    .blog nav {
        top: 75px;
    }
}

.blog nav .nav-wrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}

@media (min-width: 700px) {
    .blog nav .nav-wrapper {
        flex-wrap: no-wrap;
        position: absolute;
        top: 51px;
        left: 17px;
        width: 680px;
        transform: rotate(-6.15deg);
    }
}

.blog nav .nav-wrapper a, .blog nav .nav-wrapper button {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -.5px;
    color: var(--teal);
    text-decoration: none;
    border: none;
    background: none;
}

.blog nav .nav-wrapper a:hover, .blog nav .nav-wrapper button:hover {
    color: var(--green);
}

.blog nav .nav-wrapper a:not([href]) {
    text-decoration: line-through;
}

.blog .post, .blog .single-post {
    padding: 36px 36px 0;
}

.blog .post-content .featured-image a {
    margin: 0;
    line-height: 1;
    padding: 0;
    display: block;
}

.blog .post-content .featured-image a:after {
    content: '';
    display: none;
    margin: 0;
    padding: 0;
}

.blog .post-content .featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* .blog .post .featured-image::before {
    content: '';
    display: block;
    height: 300px;
    width: 20px;
    position: absolute;
    top: 7px;
    right: -20px;
    border: 2px solid #fff;
    transform: skewY(45deg);
    background: linear-gradient(var(--teal), var(--blue));
}

.blog .post .featured-image::after {
    content: '';
    display: block;
    height: 20px;
    width: calc(100% + 2px);
    position: absolute;
    border: 2px solid #fff;
    bottom: -20px;
    left: 7px;
    transform: skewX(45deg);
    background: linear-gradient(90deg, var(--yellow), var(--green), var(--blue))
}*/

.blog .post-content figure, .blog .post-content .featured-image {
    position: relative;
    width: 100%;
    height: auto;
    margin-left: -8px;
    margin-bottom: 35px;
    border: 2px solid #fff;
}

.blog .post-content figure:before, .blog .post-content .featured-image:before {
    content: '';
    display: block;
    height: calc(100% - 1px);
    width: 20px;
    position: absolute;
    top: 9px;
    right: -24px;
    border: 2px solid #fff;
    transform: skewY(45deg);
    background: linear-gradient(var(--teal), var(--blue));
}

.blog .post-content figure:after, .blog .post-content .featured-image:after {
    content: '';
    display: block;
    height: 20px;
    width: calc(100% - 1px);
    position: absolute;
    border: 2px solid #fff;
    bottom: -24px;
    left: 9px;
    transform: skewX(45deg);
    background: linear-gradient(90deg, var(--yellow), var(--green), var(--blue))
}

.blog .post h2.post-title {
    margin: 0 auto 5px 0;
    font-size: 2.25rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.blog .post h2.post-title a {
    text-decoration: none;
    font-weight: 800;
}

.blog .post .post-meta {
    font-size: .875rem;
    margin: 0 auto 24px 0;
    line-height: 1;
    opacity: .6;
}

.blog .post a, .blog .single-post a {
    color: var(--blue);
    font-weight: 600;
    position: relative;
}

.blog .post a:visited, .blog .single-post a:visited {
    color: var(--purple);
}

.blog .post a:hover, .blog .single-post a:hover {
    color: var(--teal);
}

.blog .post-content {
    font-size: 1rem;
    line-height: 1.9;
    color: #333;
}

.blog .post-content a:after {
    content: '';
    position: absolute;
    display: block;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--blue) 50%, var(--purple) 100%);
}

.blog hr {
    width: calc(100% + 72px);
    height: 2px;
    background: #fff;
    margin: 36px -36px 0;
    border: none;
    box-shadow: 0px 0px 10px rgba(0,0,0,.1);
}

.blog .archive-index .year h2.year {
    font-size: 2rem;
    margin: 20px auto 20px 0;
}

.blog .archive-index .year h3.month {
    font-size: 1.5rem;
    margin: 0 auto 15px 0;
    line-height: 1;
}

.blog .archive-index .year h4 {
    font-size: 1.125rem;
    margin: 0 auto 10px 0;
    padding: 0;
    line-height: 1;
}

.blog .archive-index .year h4 a {
    color: var(--blue);
}

.blog .archive-index .year h4 a:visited {
    color: var(--purple);
}

.blog .archive-index .year h4 a:hover {
    color: var(--teal);
}

.blog .archive-index .year h4 span {
    font-weight: 400;
}

.blog .single-post h1 {
    font-size: 2.5rem;
    margin: 0 auto 5px 0;
    line-height: 1;
}

.blog .single-post .post-meta {
    font-size: .875rem;
    margin: 0 auto 20px 0;
    line-height: 1;
    opacity: .9;
}

.blog footer {
    padding: 0 36px;
    bottom: 36px;
    font-display: 1rem;
    color: #333;
    position: absolute;
}