/* RIPYA HART STYLESHEET RESET */

@charset "UTF-8";

/* {{NOTES}}:
-rem sizes calculated for a root size of 16px
/*

/*--------------------------((BODY & GENERAL PG FORMAT))-------------------------*/

/*------ (main body) ----------------------------------*/

html {height: 100%}

body {
    height: 100vh; /*100%*/
    background-color: white;
    background-size: cover;
    text-align: justify;
    font-family: 'Special Elite';
    font-weight: 300;
    font-size: 0.875rem; /*14px*/
    color: #4C5053;
    margin-top: 0;
    margin-bottom: 0;
    padding: auto;
    line-height: 1.6;
}

/*------ (divs and articles) --------------------------*/

/* center div - main body div */
#centerdiv {
    background: white;
    padding: 1.25rem; /*20px*/
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* margin-top: 20px; */
}

/* container box - center */
.container {
    background-color: white;
    border-radius: 10px;
    max-width: 1200px;
    margin: 15px auto;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.post-it {
    background-color: #FF0000;
    color: white;
    align: center;
    width: fit-content;
    margin: auto;
    padding: 1rem 2rem 1rem 1rem;
    transform: rotate(1.5deg) scale(0.9); /* tilt between -3 and 3 */
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.centerbox {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

/*---------------------------------((HEADER))----------------------------------- */
.header{
    background-color: white;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    display: flex;
    align-content: center;
    align-items: center;
    padding: 0.1rem 0.5rem;
    top: 0;
    gap: 0.2rem;
    text-align: center;
    line-height: 300%;
    font-family: 'Source Code Pro', monospace;
    font-weight: 300;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/*------ (rh logo) -------------------------------------*/
.logo {
    background-color: white;
    width: 15%;
    align-self: flex-start;
    display: flex;
    justify-content: flex-start;
    align-content: center;
    flex-basis: auto;
    object-fit: contain;
    margin: 0.5rem 0;
}

.logo img.rhlogo {
    width: 95%;
    max-width: 70px;
    min-width: 30px;
    height: auto;
}

/*------ (nav menu) -----------------------------------*/
.nav{
    width: 100%;
    height: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.2s ease-out;
    text-align: center;
    background-color: white;
}

/* menu link styling */
.nav a.navlink {
    text-align: center;
    color: #FF0000;
    text-decoration: none;
    padding: 0 8px; 
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.0);
    transform: rotate(0deg) scale(1.0);
    display: inline-block;
}

.nav a:hover {
    background-color: #262626;
    color: white;
    text-decoration: none;
    padding: 0 8px; /* spacing inside the label h, w*/
    display: inline-block; /* keep the label contained */
    transform: rotate(3.0deg) scale(0.9); /* tilt between -3 and 3 */
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Drop shadow for glued effect */
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.nav a.active {
    background-color: #FF0000;
    color: white;
    text-decoration: none;
    padding: 0 8px; /* spacing inside the label h, w*/
    display: inline-block; /* keep the label contained */
    transform: rotate(-1.5deg) scale(1.0); /* tilt between -3 and 3 */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Drop shadow for glued effect */
    text-align: center;
    /*border-radius: 5px;*/
}

/* menu hamburguer icon */
.hamb{
    cursor: pointer;
    position: relative;
    padding: 0.8rem 0.1rem;
    margin: 0.3rem -0.1rem;
    order: 1;
    align-self: baseline;

}/* style label tag */

.hamb-line {
    background: #FF0000;
    display: block;
    height: 2px;
    position: relative;
    width: 30px;
} /* style span tag */

.hamb-line::before,
.hamb-line::after{
    background: red;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.hamb-line::before{
    top: 7px;
}
.hamb-line::after{
    top: -7px;
}

.side-menu {
    display: none;
} /* to hide checkbox */


/* toggle menu icon */
.side-menu:checked ~ nav {
    max-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.0rem;
}
.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top:0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}

body:has(.side-menu:checked) {
  overflow: hidden;
}

/*------ (rh banner) ---------------------------------*/
.banner-box {
    background-color: white;
    margin: auto;
    padding: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Lacquer', sans-serif;
    font-size: 3.5rem;
    color: #FF0000;
    text-align: center;
}

.banner {
    margin: auto;
    max-width: 1000px;
}

.banner img.rhbanner {
    object-fit: contain;
    max-width: 90%;
    max-height: 80%;
    margin: auto;
}

.banner-text {
    background-color: white;
    margin-top: 1.3rem;
    font-family: 'Special Elite', serif;
    font-size: 2.8rem;
    color: #424242;
    text-align: center;
    transform: rotate(1.5deg);
}

/*-------------------------------((FOOTER))---------------------------------- */
.footer {
    background-color: white;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    object-fit: contain;
    padding: 0.5rem 0;
    margin: auto;
    gap: 0.1rem;
    position: -webkit-sticky; /* Safari */
    position: sticky;
}

/*------ (rh footer tag) -----------------------------*/

.tag {
    display: flex;
    justify-content: flex-end;
    align-self: center;
    width: 25%;
    flex-basis: auto;
    object-fit: contain;
    padding: 0.2rem;
}

.tag img.rhtag {
    width: 95%;
    max-width: 120px;
    min-width: 55px;
    height: auto;
}

/*------ (footer icons) -----------------------------*/
.footer-box {
    background-color: white;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    object-fit: contain;
    width: 50%;
    gap: 0.2rem;
    padding: 0.1rem;
}

.footer-box img.icon {
    background-color: white;
    width: 100%;
    max-width: 50px;
    min-width: 25px;
}

.footer-box a.sm-icon {
    background-color: white;
    padding: 0.1em;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.0);
    transform: rotate(0deg) scale(1.0);
}

a.sm-icon:hover {    
    background-color: #FFFFFF;
    text-decoration: none;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0);
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

/*------------------------((TEXT AND IMAGE FORMATTING))------------------------*/

/*------ (paragraph texts) --------------------------*/
p {
  font-family: 'Special Elite', serif;
  font-weight: 400;
  font-size: 1rem;
  color: #4C5053;
  line-height: 1.5;
}

p b, p strong {
    color: #FF0000;
    font-weight: 400;
}

p.handwrite {
    font-family: 'Gaegu', serif;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

p.handwrite b, p.handwrite strong {
    font-weight: 600;
    color: #FF0000;
    font-size: 1.22rem;
}

p.simple {
    font-family: 'Source Code Pro', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #4C5053;
    line-height: 1.6;
}

/*------ (links) ------------------------------------*/
a:link {
    color: #FF0000;
    text-decoration: none;
    padding: 2px 10px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    transform: rotate(-0.5deg);
    display: inline-block;
}

a:hover {
    color: #FFFFFF;
    background-color: #666666;
    text-decoration: none;
    padding: 2px 10px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.2s ease-in-out;
    display: inline-block;
}

a:active {
    color: whitesmoke;
    background-color: #FF0000;
}

a:visited {
    color: #FF0000;
    text-decoration: none;
    transform: scale(1.05);
}

/*------ (headings) --------------------------------*/
h1 {
    font-family: 'Lacquer', system-ui;
    font-size: 2.5rem;
    font-weight: 400;
    color: #FF0000;
    text-align: center;
}

h2 {
    font-family: 'Special Elite';
    font-size: 1.7rem;
    font-weight: 400;
    color: white;
    background-color: #262626;
    padding: 2px 10px;
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: 10px;
}

h3 {
    font-family: 'Special Elite', monospace;
    text-transform: uppercase;
    font-size: 1.7rem;
    font-weight: 400;
    color: #FF0000;
    transform: rotate(1deg);
}

h4 {
    font-family: 'Gaegu', serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.5rem;
    color: #FF0000;
}

h5 {
    font-family: 'Gaegu', serif;
    text-transform: uppercase;
    font-size: 1.3rem;
    font-weight: 400;
    color: #636363;
}

h6 {
    font-family: Gaegu, serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #636363;
}

/*------ (images) ----------------------------------
img {
    border: none;
    padding: 0px 10px;
}*/

figure, figure.img, figure a:link {
    display: inline-block;
    justify-content: center;
    align-content: center;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-left: auto auto;
    max-width: 100%;
}
figcaption, figcaption b {
    font-family: Gaegu;
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.0rem;
    color: #636363;
}

/* marginalia (Doodles) */
.marginalia {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    object-fit: contain;
    padding: 10px;
}

/*------ (tables) ----------------------------------*/
table {
    width: 80%;
    border-collapse: collapse;
    margin: auto;
    font-size: 1.0rem;
    overflow-x: scroll;
}

table a:hover {
    color: white;
}

caption {
    text-align: left;
    padding: 10px;
    border: none;
}

tr {
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
}

td {
    padding: 5px 15px;
    text-align: left;
    border: 0px solid;
    border-right: 0;
    border-left: 0;
    border-top: 0;
    font-family: 'Special Elite', serif;
    font-size: 1rem;
    color: #636363;
}

td b {
    font-weight: 500;
    color: #262626;
}

th {
    padding: 5px;
    font-family: 'Gaegu';
    font-weight: 400;
    font-size: 1.2rem;
    width: 1.5rem;
    color: #FF0000;
    text-align: center;
    text-transform: uppercase;
}

/*-----------------------------((RESPONSIVENESS))---------------------------- */

/* general: from big -> small screen */
@media screen and (max-width: 768px) {
    .banner-text {font-size: 1.5rem;}

    .header {font-size: 1.15rem;}

    p, td {font-size: 0.8rem}
    p.handwrite {font-size: 0.98rem}
    h1 {font-size: 1.88rem}
    h2, h3 {font-size: 1.28rem}
    h4 {font-size: 1.13rem}
    h5 {font-size: 0.98rem} 
    h6 {font-size: 0.9rem;}
    th {font-size: 1.1rem}
    table, td {font-size: 0.8rem;}
}

/* hamburger nav menu: from small -> big screen */
@media (min-width: 768px) {
    .nav {
        max-height: none;
        top: 0;
        width: 70%;
        height: 100%;
        text-align: center;
        padding: 0.3rem;
    }

    .hamb {display: none;}

    .logo {align-self: center;}
    .side-menu:checked ~ .hamb {display: block;}
    .side-menu:checked ~ .logo {align-self: flex-start;}
}