:root {
--main-color: #122331;
--accent-color: #e1aa52;
--text-color: #7c7e82;
--nSpace: #fff;
}

@font-face {
    font-family: 'Cambay Devanagari Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Cambay Devanagari Regular'), url('/fonts/CambayDevanagari-Regular.AH.woff') format('woff');
    }

@font-face {
    font-family: 'Cambay Devanagari Oblique';
    font-style: normal;
    font-weight: normal;
    src: local('Cambay Devanagari Oblique'), url('/fonts/CambayDevanagari-Oblique.AH.woff') format('woff');
    }

@font-face {
    font-family: 'Cambay Devanagari Bold';
    font-style: normal;
    font-weight: normal;
    src: local('Cambay Devanagari Bold'), url('/fonts/CambayDevanagari-Bold.AH.woff') format('woff');
    }
 
@font-face {
    font-family: 'Cambay Devanagari Bold Oblique';
    font-style: normal;
    font-weight: normal;
    src: local('Cambay Devanagari Bold Oblique'), url('/fonts/CambayDevanagari-BoldOblique.AH.woff') format('woff');
    }

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0px;
    background-color: var(--nSpace);
    font-family: 'Cambay Devanagari Regular';
    color: var(--main-color);
}

h1 {
    font-family: museo-slab, serif;
    font-weight: 500;
    font-style: normal;
    font-size: 24px;
    color: var(--main-color);
}

.title h1 {
    margin: 0px;
    text-align: left;
}

h2, p {
    font-size: 18px;
    margin: 0px;
}

h2 {
    color: var(--main-color);
    text-transform: uppercase;
}

p {
    color: var(--text-color);
    line-height: 20px;
}


a {
    text-decoration: none;
}

header {
    height: 77px;
    display: flex;
        align-items: center;
        justify-content: space-between;
    position: absolute;
    width: 100vw;
    z-index: 2;
}

#logoTag {
    width: 60px;
    background-color: var(--main-color);
    height: 52.5px;
    padding: calc((52.5px - 35px) / 2);
    text-align: right;
    position: relative;
    z-index: 3;
}

#logoTag svg {
    fill: var(--accent-color);
    height: 35px;
}

header > a:focus-visible #logoTag svg{
    fill: var(--nSpace);
}

/*Invisible Checkbox for Hamburger----------------------------*/

#menuToggle input {
    cursor: pointer;
    display: block;
    height: 50px;
    margin: 0px;
    opacity: 0;
    position: absolute;
        right: 17px;
        top: 15px;
    width: 50px;
    z-index: 3;
}

/*Hamburger Menu----------------------------------------------*/

#menuToggle span {
    --hamburger-width: 34px;
    background-color: var(--main-color);
    display: block;
    height: 2px;
    margin-bottom: 8px;
    position: relative;
        top: 4px;
        right: calc(var(--hamburger-width) - 12px);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
        background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
        opacity 0.55s ease;
    transform-origin: 4px 0px;
    width: var(--hamburger-width);
    z-index: 2;
}

/*Hamburger Animation-----------------------------------------*/

#menuToggle span:first-of-type {
    transform-origin: 100% 0%;
}

#menuToggle span:nth-of-type(2) {
    width: calc(var(--hamburger-width) - 11px);
    right: calc(var(--hamburger-width) - 23px);
    transform-origin: 100% 0%;
}

#menuToggle span:nth-of-type(3) {
    transform-origin: 100% 0%;
}

#menuToggle input:checked ~ span:first-of-type {
    background: var(--main-color);
    opacity: 1;
    transform: rotate(-45deg) translate(-1px, -1px);
}

#menuToggle input:checked ~ span:nth-of-type(2) {
    transform: rotate(0deg) scale(0, 1);
    opacity: 0.2;
}

#menuToggle input:checked ~ span:nth-of-type(3) {
    transform: rotate(45deg) translate(3px, 3px);
    background: var(--main-color);
}

#menuToggle input:focus-visible ~ span {
    background-color: var(--accent-color); 
}

/*Main Menu---------------------------------------------------*/

#menu {
    background-color: rgba(255, 255, 255, .9);
    height: 100vh;
    position: absolute;
        top: 0px;
        right: 0px;
    opacity: 0;
    user-select: none;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    width: 100vw;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
}

/*Menu Animation----------------------------------------------*/

#menuToggle input:checked ~ #menu {
    opacity: 1;
    user-select: auto;
    pointer-events: auto;
    visibility: visible;
}

#currentPage {
    box-shadow: 0 2px 0 0 var(--main-color);
}

.button {
    padding: 0px;
    margin: 0px;
    cursor: pointer;
}

/*To Top Arrow------------------------------------------------*/

#toTop {
    position: fixed;
    bottom: 28px;
    right: 17px;
    height: 52.5px;
    width: 52.5px;
    font-size: 50px;
    stroke: var(--main-color);
    opacity: 1;
    transition: 0.5s;
    pointer-events: auto;
    user-select: auto;
}

#toTop.light {
    stroke: var(--main-color);
}

#toTop.dark {
    stroke: var(--nSpace);
}

#toTop.checkedFX {
    opacity: 0.2;
    user-select: none;
    pointer-events: none;
}

/*END HEADER==================================================*/

main {
    padding: 82px 17px 17px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: filter 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

.checkedFX {
    filter: blur(2px);
}

main.checkedFX {
   position: fixed;
}

.title {
    padding: 35px 0px;
    min-height: 160px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
}

.wrapper {
    overflow: hidden;
}

.wrapper img, .wrapper video {
        width: 100%;
}

.wrapper img {
    transition: transform 1.5s;
    transform-origin: bottom;
}

#preFooterSecretButton {
    padding-top: 20px;
/*    text-align: center;*/
/*    margin: auto;*/
}

footer {
    background-color: var(--main-color);
    padding: 40px 17px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

footer.checkedFX {
    display: none;
}

footer img {
    width: 200px;
}

footer > #icons {
    display: flex;
/*    width: 150px;*/
    width: 115px;
    justify-content: space-between;
}

footer #icons svg {
    display: block;
    height: 30px;
    fill: var(--nSpace);
}

footer #icons svg:hover, footer a:focus svg {
    fill: var(--accent-color) !important;
}

/*HOME--------------------------------------------------------*/

#Home .wrapper img:hover, a:focus > .wrapper img {
    transform: scale(1.04); 
}

#wordCarousel h1 {
    display: inline;
}

#wordCarousel div {
    display: inline-block;
    position: relative;
    height: 36px;
    overflow: hidden;
    margin: 0px;
    top: 8px;
    margin-top: -12px;
}

 #wordCarousel .flip {
     animation: flip 10s cubic-bezier(0.23, 1, 0.32, 1.2) 1.5s infinite;
     line-height: 40px;
     position: relative;
     margin: 0px;
     padding: 0px;
}

#wordCarousel li {
    list-style-type: none;
}

@keyframes flip {
    0% {top: -176px;}
    5% {top: -132px;}
    25% {top: -132px;}
    30% {top: -88px}
    50% {top: -88px}
    55% {top: -44px}
    75% {top: -44px}
    80% {top: 0px}
    99.99% {top: 0px}
    100% {top -176px}
}

/*ABOUT-------------------------------------------------------*/

#About .grid p {
    padding-bottom: 20px;
}

#formDiv {
    position: relative;
}

form {
    display: grid;
        grid-gap: 10px;
    font-size: 24px;
    color: var(--text-color);
    grid-template-columns: 1fr;
    grid-template-rows: 40px 40px 100px 40px;
    grid-template-areas: 
        "name"
        "email"
        "message"
        "button";
}

form > *:not(label):not(button):not(div) {
    border: 2px solid var(--main-color);
    border-radius: 0px;
    font-size: 18px;
    font-family: 'Cambay Devanagari Regular';
    transition: 0.5s border;
}

form input {
    padding: 0px 10px;
     -webkit-appearance: none;
/*    max-width: 400px;*/
}

textarea {
    font-family: 'Cambay Devanagari Regular';
    padding: 10px;
    resize: none;
    -webkit-appearance: none;
}

form button {
    text-align: left;
    color: var(--main-color);
    font-family: 'Cambay Devanagari Regular';
    border: none;
    background: none;
    width: 80px;
    cursor: pointer;
}

    
form input:focus, textarea:focus, a:focus {
    outline: none; 
}

.thankYou {
    filter: blur(2px);
}

#thankYouBox {
    text-align: center;
    height: 100%;
    position: absolute;
    left: -5px;
    top: -5px;
    width: 100%;
    background-color: rgba(255, 255, 255, .9);
    z-index: 1;
    box-sizing: content-box;
    padding: 5px;
}

#thankYouBox h2 {
    padding-top: 69px;
}

/*CASE STUDIES------------------------------------------------*/

#caseStudy .description {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#caseStudy .title {
    text-align: left;
}

#caseStudy .title div:first-of-type {
    padding-bottom: 20px;
}

/*TABLET AND DESKTOP----------------------------------------------------------------------------------------------------------*/

@media only screen and (min-width: 481px) {
    
}

@media only screen and (min-width: 761px) {
    
    h1 {
        font-size: 32px;
    }
    
    p {
        line-height: 24px;
    }
    
    p, h2 {
        font-size: 22px;
    }
    
    header {
        height: 110px;
        position: fixed;
    }
    
    #logoTag {
        width: 130px;
        height: 75px;
        padding: calc((75px - 45px) / 2);
    }
    
    #logoTag svg {
        height: 45px;
    }
    
/*Invisible Checkbox for Hamburger----------------------------*/
    
    #menuToggle input {
        right: 70px;
        top: 30px;
    }
    
/*Hamburger Menu----------------------------------------------*/

    #menuToggle span {
        --hamburger-width: 43px;
        right: calc(var(--hamburger-width) + 32px);
        margin-bottom: 10px;
        width: var(--hamburger-width);
        height: 3px;
    }
    
    #menuToggle span:nth-of-type(2) {
        right: calc(var(--hamburger-width) + 18px);
        width: calc(var(--hamburger-width) - 14px);
    }
    
    .button h1:hover {
        box-shadow: 0 3px 0 0 var(--accent-color);
    }
    
    a:focus-visible .button h1 {
        box-shadow: 0 3px 0 0 var(--accent-color);
    }
    
    #currentPage {
        box-shadow: 0 3px 0 0 var(--main-color)
    }
    
/*Color Change------------------------------------------------*/

    #menuToggle span.light {
        background-color: var(--main-color);
    }

    #menuToggle span.dark {
        background-color: var(--nSpace);
    }
     
/*END HEADER==================================================*/
    
    main {
        padding: 110px 65px 65px;   
    }
    
    /*Hide back to top arrow*/
    .mobileOnly {
        display: none;
    }
    
    main.checkedFX {
        overflow: scroll;
        height: auto;
        position: inherit;
    }
    
    .title {
        padding: 40px 0px 70px;
        width: 80%;
        max-width: 1000px;
        min-height: 220px;
    }
    
    .grid {
        grid-gap: 50px;
    }
    
    #preFooterSecretButton {
    padding-top: 50px;
    }
    
    footer {
        padding: 45px 65px;
        height: 150px;
        flex-direction: row;
        align-items: center;
    }
    
    footer.checkedFX {
        display: flex;
    }
    
/*HOME--------------------------------------------------------*/
    
    #wordCarousel div {
        top: 9px;
        margin-top: -9px;
        height: 40px;
    }
    
    #wordCarousel .flip {
        animation: flip 10s cubic-bezier(0.23, 1, 0.32, 1.2) 1.5s infinite;
    }
    
    @keyframes flip {
        0% {top: -188px;}
        5% {top: -141px;}
        25% {top: -141px;}
        30% {top: -94px;}
        50% {top: -94px;}
        55% {top: -47px;}
        75% {top: -47px;}
        80% {top: 0px;}
        99.99% {top: 0px;}
        100% {top: -188px;}
    }
    
/*WORK--------------------------------------------------------*/
    
    #Home .grid {
        grid-template-columns: 1fr 1fr;
    }
    
/*ABOUT-------------------------------------------------------*/
    
    #About .grid {
        grid-template-columns: 1fr 1fr;
    }
    
    #About .grid h2 {
        display: inline-block;
    }
    
    #About .underline:hover, #About a:focus .underline, #About button:focus .underline {
        box-shadow: 0 3px 0 0 var(--accent-color) !important;
    }
    
    #About .grid a:focus, #About button:focus {
        outline: none;
    }

    /*Form Styling*/
    form {
        padding-bottom: calc(100vh - 790px)
    }

    form > *:not(label):not(button):not(div) {
        border: 3px solid var(--main-color);
        font-size: 22px;
    }
    
    form > *:not(button):hover {
        border: 3px solid var(--text-color);
    }

    form > *:not(button):focus {
        border: 3px solid var(--accent-color);
    }
    
/*CASE STUDIES------------------------------------------------*/
    
    #caseStudy .title {
        display: grid;
        grid-template-rows: 1fr;
        grid-template-columns: 1fr 1fr;
    }
    
    #caseStudy .title div:first-of-type {
        padding-bottom: 0;
    }
    
    #next {
        padding-top: 50px;
    }
}