/*base style*/
:root {
    --light-color: #fff;
    --light-color-alt: coral;
    --primary-background-color: linear-gradient(#fff, rgba(255, 127, 80, .1));
    --secondary-background-color: #fff;
    --other-color: #212D3A;
    --input-color: gray;
    --placeholder-color: #fff;
}

body.dark-theme{
    --light-color: #fff;
    --light-color-alt: coral;
    --primary-background-color: #212D3A;
    --secondary-background-color: #415266;
    --other-color: #fff;
    --input-color: rgb(240, 240, 240);
    --placeholder-color: gray;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* border: 1px solid red; */
}

html {
    /*font-size: 10px;*/
    font-size: 62.5%;
    background-color: var(--primary-background-color);
}

body {
    font-family: "Lato";
    color: var(--other-color);
    background: var(--primary-background-color);
    background-repeat: no-repeat;
    transition: background-color .25s, color .25s;
    max-width: 160rem;
    overflow-x: hidden !important;
    margin-inline: auto;
    /* font-family: "Merienda"; */
}

.the-box {
    max-width: 160rem;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    /* max-width: 100%; */
    display: block;
}

ul {
    list-style: none;
    z-index: 9999999999;
}

.place-items-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle-btn {
    margin-right: .5em;
}

main {
    margin-top: 1em;
}

.view-sm {
    display: flex;
}

.view-lg {
    display: none;
}

.fade-in {
    opacity: 0;
    transition: opacity 250ms ease-in-out;
}

.fade-in.appear {
    opacity: 1;
}

.slide-in {
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 250ms ease-in,
     transform 400ms ease-in;
}

.slide-in.appear {
    transform: translateX(0);
    opacity: 1;
}

.slide-out {
    transform: translateX(50%);
    opacity: 0;
    transition: opacity 250ms ease-in,
     transform 400ms ease-in;
}

.slide-out.appear {
    transform: translateX(0);
    opacity: 1;
}

.jump-in {
    transform: translateY(50%);
    opacity: 0;
    transition: opacity 250ms ease-in,
     transform 400ms ease-in;
}

.jump-in.appear {
    transform: translateX(0);
    opacity: 1;
}


/* toggle theme */
.moon-icon {
    display: block;
}

.sun-icon {
    display: none;
}

.dark-theme .sun-icon {
    display: block;
}

.dark-theme .moon-icon {
    display: none;
}

/* submit-joke */
.article {
    max-width: 768px;
}

.submit-headere-text {
    color: var(--input-color);
}

.form-control {
    border: none;
    background-color: var(--input-color);
}

.form-control:hover {
    background-color: #fff;
}

.form-control::placeholder {
    color: var(--placeholder-color);
}

#alertComment {
    color: rgb(255, 119, 119);
    visibility: visible;
    font-size: .5em;
}

#sendJoke {
    opacity: .4;
}

#sendJoke.activated {
    opacity: 1;
}
/* aside */

aside {
    box-shadow: 0 3px 2px -2px var(--light-color-alt);
    z-index: 99999;
}

.site-header {
    color: var(--light-color-alt);
    font-weight: bold;
}

.site-header span i {
    rotate: 45deg;
}

.sign-in {
    color: var(--light-color-alt);
    border: 2px solid var(--light-color-alt);
    /* border-radius: 8px; */
}

.menu1-lists {
    margin-left: 10vw;
}



#menu2-lists {
    visibility: hidden;
    opacity: 0;
    scale: 0;
    transform: translateX(-100vw);
    /* transition: opacity 200ms ease-in-out; */
    right: 5%;
    z-index: 9999999999;
    background-color: var(--primary-background-color);
}

#menu2-lists .link-lists {
    background-color: var(--secondary-background-color);
    padding: 0 2em 2em 2em;
    width: 100vw;
    /* width: 100%; */
    /* right: 10%; */
}

#menu2-lists .link-lists .link-list {
    padding: 2em;
    background-color: var(--secondary-background-color);
    color: var(--light-color-alt);
    width: 100%;
}

.link-list-d:hover .ri-arrow-drop-right-line {
    rotate: 90deg;
}

/* #menu2-lists .link-lists .link-list:hover {
    color: #fff;
    background-color: var(--light-color-alt);
} */

#menu2-lists .categories {
    margin-top: 1em;
}

.ri-menu-3-fill {
    color: var(--light-color-alt);
}

.link-lists .link-list .category {
    padding: 1em 2em 1em 1em;
    background-color: var(--secondary-background-color);
    color: var(--light-color-alt);
    border-bottom: 1px solid rgb(255, 204, 185);
    width: 100%;
    /* border-radius: 8px; */
}

#menu2-lists.active {
    visibility: visible;
    opacity: 1;
    scale: 1;
    transform: translateX(0);
    transition: transform 200ms ease-in-out;
}

#menu-icon.active {
    display: block;
}

.link-list {
    cursor: pointer;
}

.link-list:hover {
    scale: 1.2;
}

.link-list-d:hover {
    scale: 1;
}

.categories-box:hover {
    scale: 1.2;
}



.categories-lg {
    display: none;
    z-index: 9999999;
    width: max-content;
}

.link-list-d:hover .categories-lg {
    display: block;
}



.categories ol:hover {
    background-color: var(--light-color-alt);
    color: rgb(255, 249, 247);
}

.sign-links {
    margin-right: -30vw;
}

/* notif box */
#notif-box1,
#notif-box2 {
    width: fit-content;
    color: #000;
    font-size: 1em;
    right: 0;
    left: 0;
    top: 0;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    background-color: #d3ffd3;
    visibility: hidden;
    z-index: 99999999999999;
}

.ri-check-line {
    color: green;
}



/* main */

main {
    /* background-color: rgb(255, 252, 251); */
    background-image: url(./humphrey-muleba-Cc-CQTUkbH0-unsplash.jpg);
    background-repeat: no-repeat;
    background-position: right;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    object-position: right;
    -webkit-object-position: right;
    -moz-object-position: right;
    -o-object-position: right;
    color: rgb(255, 252, 251);
    /* margin-left: 2.5vw;
    margin-right: 2.5vw; */
    /* border-radius: 8px; */
    width: 100vw;
    height: 80vh;
}

.header-title {
    width: fit-content;
    font-weight: bold;
}

.sign-up,
.log-out {
    background-color: rgb(255, 188, 163);
    /* border-radius: 8px; */
    color: #fff;
}

.sign-up:hover,
.log-out:hover {
    background-color: var(--light-color-alt);
    /* border-radius: 8px; */
    color: #fff;
    scale: 1.3;
}

.sign-in:hover {
    scale: 1.3;
}

.header-image {
    right: 5%;
    width: 50vw;
    height: 30vh;
    bottom: -65%;
    /* border-radius: 8px; */
}

/* buttons */
.start-laughing {
    background-color: var(--light-color-alt);
    /* border-radius: 8px; */
    color: #fff;
    margin: 30px;
    margin-top: 5em;
    
}

.start-laughing:hover {
    color: var(--light-color-alt);
    border: 1px solid var(--light-color-alt);
    background-color: var(--primary-background-color);
    scale: 1.3;
}

/* what is randojokes */
.what-is-design {
    background-color: coral;
    height: 100px;
    width: 100px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 0;
    transform: rotate(-90deg);
    top: 10%;
    right: -10%;
}

/* request page */

.request-image {
    width: 90vw; 
    height: 200px; 
    /* border-radius: 8px; */
}

.request-image-1 {
    rotate: 15deg;
}

.submit-here {
    background-color: var(--light-color-alt);
    color: #fff;
    /* border-radius: 8px; */
    padding: .5em; 
    align-items: center;
 }

 .request-image-box {
    margin-top: 2em;
 }

 .request-box {
    width: 90vw;
    height: 200px;
    background-color: var(--light-color-alt);
    /* border-radius: 50%; */
    z-index: -1;
    transform: skew(-20deg);
 }


 .request-title {
    font-weight: bolder;
    top: 10%;
    right: 0;
    margin-left: 50%;
    margin-right: 50%;
    left: 0;
    margin-left: 50%;
    margin-right: 50%;
}

.request-page {
    background-color: var(--secondary-background-color);
    /* border-radius: 8px; */
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
}

/* cube */

.cube {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    transform: rotateX(240deg) rotateY(-5deg) rotateZ(-155deg);
    left: 0;
    bottom: 0;
    z-index: -3;
    margin-top: 3em;
    margin-left: 2em;
  }
  
  .side {
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    position: absolute;
    /* border-radius: 8px; */
  }
  
  .top {
    transform: translateZ(-80px);
    background: orange;
  }
  
  .front {
    transform: rotateX(90deg);
    transform-origin: bottom;
    background: orange;
  }
  
  .left {
    width: 80px;
    transform: translateZ(-80px) rotateY(90deg);
    transform-origin: right;
    background: orange;
  }
  

/* how to use */
.how-to-use {
    background-color: var(--secondary-background-color);
    width: 90vw;
    /* border-radius: 8px; */
    margin-left: auto;
    margin-right: auto;
    padding: 2em;
}

.how-to-list {
    min-height: 100px;
}

.how-to-note {
    justify-content: left;
    min-width: 60vw;
    font-size: .7em;
}

.how-to-note-lg {
    min-width: 50vw;
}

.how-to-img {
    width: 50px;
    height: 100px;
    /* border-radius: 10px; */
}

.how-to-img-lg {
    height: 50px;
    width: 100px;
}

.random {
    color: var(--light-color-alt);
    padding-inline: .1em;
    border: 2px solid var(--light-color-alt);
    /* border-radius: 8px; */
}

.how-to-img-l {
    margin-right: 30px;
}

/* footer */
.footer {
    background-color: var(--light-color-alt);
    margin-top: 7.5%;
    padding: 1em;
    color: var(--secondary-background-color);
}

.footer .company-data .logo {
    color: #fff;
}

.footer * {
    margin-bottom: .5em;
}

.company-data {
    display: flex;
    flex-direction: column;
    order: 1;
}

.company-description {
    margin-block: 1em;
    max-width: 75%;
}

.social-media {
    margin-bottom: 2em;
}

.copyright-notice {
    opacity: .6;
}

.footer-list {
    flex-direction: column;
    align-items: flex-start;
}

.footer-list .list-item a:hover {
    color: var(--secondary-background-color);
    border: 2px solid var(--secondary-background-color);
}

.footer-title {
    font-size: 1em;
    text-transform: uppercase;
    margin-bottom: 1em;
    font-size: bolder;
}


@media screen and (min-width: 700px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-container-inner {
        align-items: center;
    }
    
    .company-data {
        order: 0;
    }
    
    .author {
        grid-template-columns: 25rem 1fr;
    }

}


@media screen and (min-width: 1024px) {
    #theme-toggle-btn2 {
        display: none;
    }

    .view-sm {
        display: none;
    }

    .view-lg {
        display: flex;
    }

    .what-is-design {
        height: 200px;
        width: 200px;
        transform: rotate(-90deg);
        top: 10%;
        right: 0;
        z-index: -1;
    }

    .request-title {
        font-weight: bolder;
        top: 10%;
        right: 20%;
    }

    .submit-here {
       background-color: var(--light-color-alt);
       color: #fff;
       /* border-radius: 8px; */
       padding: 1em; 
    }

    .request-page {
        background-color: var(--secondary-background-color);
        /* border-radius: 8px; */
        width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }

    .request-image {
        width: 30vw; 
        height: 20vw; 
        /* border-radius: 40px; */
    }

    .request-image-box {
        margin-left: 4em;
    }
    
    .request-box {
        width: 30vw;
        height: 20vw;
        background-color: var(--light-color-alt);
     }

    /* how to use */

    .how-to-img {
        width: 50px;
        height: 100px;
    }

    .how-to-img-lg {
        height: 50px;
        width: 100px;
    }

    .how-to-note {
        justify-content: left;
        min-width: none;
        font-size: unset;
    }

    /* footer */
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .company-data {
        grid-column: span 2;
    }

    .copyright-notice {
        margin-top: auto;
    }
}

@media screen and (min-width: 160rem) {
    .the-box {
        margin: auto;
    }
}