
/* Layout */

* {
    box-sizing: border-box;
}

body {
    margin:0;
    padding:0;
    height: 100vh;
    width: 100%;
}

body > * {
    padding: 0 calc((100% - 1080px)/2);
}

section, 
section[row] {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    /* border: 2px solid green; */
}

section > *, 
section[row] > * {
    flex: 1 1 auto;
    order:1;
}

section > header,
section[row] > header {
    flex: 1 1 100%;
    text-align: center;
}

@media (orientation: portrait) {
    section {
        flex-flow: column wrap;
        align-items: stretch;
        text-align: center;
    }
}

section[col] {
    display: flex;
    flex-flow: column wrap;
    align-items: stretch;
    text-align: center;
}

section[col] > * {
    flex: 1 1 auto;
    order: 1;
}

img {
    width:100%; 
    height:100%; 
    object-fit: contain;
}


/* color palatte */
:root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    
}


/* Links */

a {
    text-decoration: none;
    color: hsl(0, 0%, 5%);
    cursor: pointer;
}

a:hover {
    color: hsl(216, 100%, 50%);
    font-weight: bold;
}

a>i {
    color: hsl(216, 100%, 50%);
    border: 2px solid hsl(216, 100%, 50%);
    border-radius: 5px;
    padding: 0.5rem 2rem;
    display: inline-block;
}

a>i:hover {
    background-color: hsl(216, 100%, 50%);
    color: hsl(0, 0%, 100%);
    border: 2px solid hsl(216, 100%, 50%);
}

a>b, button {
    background-color: hsl(216, 100%, 50%);
    color: hsl(0, 0%, 100%);
    border: 2px solid hsl(216, 100%, 50%);
    border-radius: 5px;
    padding: 0.5rem 2rem;
    display: inline-block;
}
button:hover {
    background-color: hsl(216, 100%, 40%);
    border: 2px solid hsl(216, 100%, 40%);
}

button {
    cursor:pointer;
}

button:disabled {
    cursor: progress;
    opacity: 0.5;
}

a>b:hover {
    background-color: hsl(216, 100%, 40%);
    border: 2px solid hsl(216, 100%, 40%);
}

/*Input*/

input {
    border: 1px solid blue;
    border-radius: 5px;
    font-size: 1.5rem;

}

/*Box model for border effects*/
.box{
    border: 1px solid #e9e9e9;
    border-radius: 5px;
    margin: 1rem;
    padding: 1.25rem;
    box-shadow: 2px 2px 10px #f4f4f4;
}
.box:hover{
    box-shadow: 2px 2px 10px #e9e9e9;
}

/*This class will be visible only in landscape mode*/
@media (orientation: portrait) {
    .landscape {
        display: none;
    }
}

/*This class will be visible only in portrait mode*/
@media (orientation: landscape) {
    .portrait {
        display: none;
    }
}

/***
Custom Styles
****/

@media (orientation: portrait) {
    #menu {
        padding-top: 1rem;
    }
}

@media (orientation: portrait) and (min-width: 555px){
    #menu {
        padding-top: 4rem;
    }
}


/*Typing effect*/

#typing {
    position: relative;
    float: left;
    white-space: nowrap;
    font-size: 1.4em;
}

#typing span{
    position: absolute;
    top: 0;
    right: 0;
    

    background: hsl(0, 0%, 95%);
    width: 100%;
    /* border-left: .1em solid transparent; */
    border-left: .1em solid hsl(0, 0%, 95%);
    /* animation: name duration timing-function delay iteration-count direction fill-mode; */
    animation: typing 4s steps(40) 0s 2 alternate none,
                caret 1s infinite;
}
@keyframes typing{
    0%{ width: 100%;}
    100%{ width: 0;}
}

@keyframes caret{
    50% { border-color: white;}
}


/* 2 Images slideshow */
.slideshow {
    --images: 2;
    --delay: 2s;
    --duration: calc(var(--images) * var(--delay));

    
    height: 100%;
    position: relative;
}


.slideshow > * {
    visibility: hidden;
    position: absolute;
    top:0;
    /* animation: var(--duration) autoplay1 infinite; */
    animation: 4s autoplay2 infinite;
}

@keyframes autoplay2 {
    0% {visibility: visible;}
    50% {visibility: hidden;} /*  1/(No.of Images)  */
}

.slideshow:hover > * {
    animation-play-state: paused;
    cursor: pointer;
}

/* .slideshow > *:nth-child(1) {animation-delay: calc(var(--delay) * 0);} */
.slideshow > *:nth-child(1) {animation-delay: 0s;}
.slideshow > *:nth-child(2) {animation-delay: 2s;}

@media (orientation: portrait) {
    .slideshow {
        order: 0;
    }
}

/* 3 Images slideshow */
.slideshow3 {
    --images: 3;
    --delay: 2s;
    --duration: calc(var(--images) * var(--delay));

    
    height: 100%;
    position: relative;
}


.slideshow3 > * {
    visibility: hidden;
    position: absolute;
    top:0;
    /* animation: var(--duration) autoplay1 infinite; */
    animation: 6s autoplay3 infinite;
}

@keyframes autoplay3 {
    0% {visibility: visible;}
    33.33% {visibility: hidden;} /*  1/(No.of Images)  */
}

.slideshow3:hover > * {
    animation-play-state: paused;
    cursor: pointer;
}

/* .slideshow > *:nth-child(1) {animation-delay: calc(var(--delay) * 0);} */
.slideshow3 > *:nth-child(1) {animation-delay: 0s;}
.slideshow3 > *:nth-child(2) {animation-delay: 2s;}
.slideshow3 > *:nth-child(3) {animation-delay: 4s;}

@media (orientation: portrait) {
    .slideshow3 {
        order: 0;
    }
}


.ctab > * {
    margin: 2rem; 
}

@media (orientation: portrait) {
    .ctab > * + *{
        margin-top: 0rem; 
    }
}

#footer, #social {
    background-color: black;
    color: gray;
}

#footer>* a {
    color: gray;
}

#footer>* a:hover {
    color: white;
}