* {
    padding: 0;
    margin: 0;
}

/* font */
@font-face {
    font-family: shabnam;
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/shabnam/Shabnam-Light-FD.eot');
    src: url('../fonts/shabnam/Shabnam-Light-FD.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ url('../fonts/shabnam/Shabnam-Light-FD.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url('../fonts/shabnam/Shabnam-Light-FD.ttf') format('truetype');
}

@font-face {
    font-family: shabnam;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/shabnam/Shabnam-FD.eot');
    src: url('../fonts/shabnam/Shabnam-FD.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ url('../fonts/shabnam/Shabnam-FD.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url('../fonts/shabnam/Shabnam-FD.ttf') format('truetype');
}

@font-face {
    font-family: shabnam;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/shabnam/Shabnam-Bold-FD.eot');
    src: url('../fonts/shabnam/Shabnam-Bold-FD.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ url('../fonts/shabnam/Shabnam-Bold-FD.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url('../fonts/shabnam/Shabnam-Bold-FD.ttf') format('truetype');
}

body {
    background-color: #efefef;
    font-family: "shabnam";
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    max-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.rtl {
    direction: rtl;
}

.ltr {
    direction: ltr;
}

.container {
    padding: 2rem;
}

.logo {
    text-align: center;
}

.logo img {
    display: block;
    width: 128px;
    margin: auto;
    margin-top: 50px;
}

h1 {
    font-size: 4rem;
    font-family: "shabnam";
    background: -webkit-linear-gradient(#3e9bc0, #4A64BF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(62, 155, 192, 0.3);
    margin-top: 20px;
}

/*hamid*/


a.pointer {
    cursor: pointer;
}

.footer {
    margin-top: 50px;
    text-align: center;
    color: #999;
    font-weight: 100;
}

.footer .heart {
    display: inline-block;
    font-size: 1.5rem;
    color: #f62a58;
    text-shadow: 0 2px 10px rgba(246, 42, 88, 0.3);
    animation: heartbeat 2s infinite;
}

.footer .heart img {
    width: 25px;
}

@keyframes heartbeat {
    0% {
        transform: scale(.75);
    }
    20% {
        transform: scale(1);
    }
    40% {
        transform: scale(.75);
    }
    60% {
        transform: scale(1);
    }
    80% {
        transform: scale(.75);
    }
    100% {
        transform: scale(.75);
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
        width: 100%;
    }

    .logo img {
        width: 90px;
    }

    h1 {
        font-size: 2rem;
        font-family: "shabnam";

    }
}

@import url("https://fonts.googleapis.com/css?family=Karla|Space+Mono");
root {
    contentHeight: 30vh;
    sectionWidth: 700px;
}

* {
    outline: 0;
    box-sizing: border-box;
}

section {
    max-width: var(--sectionWidth);
    max-width: 800px;
    margin: 40px auto; 
    width: 97%;
    color: #fff;
    padding: 0 5%;
}

summary {
    display: block;
    cursor: pointer;
    padding: 10px;
    background: #fff;
    box-shadow: 0 5px 15px #efefef;
    border-radius: 10px;
    margin:20px 0;
    font-family: shabnam;
    color: #4a64bf;
    font-size: 22px;
    -webkit-transition: .3s;
    transition: .3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
details{
    background: #ffff;
    border-radius: 10px;
}
details > div {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
    height: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 0 20px;
    font-family: shabnam;
    line-height: 1.5;
}

details > div > img {
    align-self: flex-start;
    max-width: 100%;
    margin-top: 20px;
}

details > div > p {
    -webkit-box-flex: 1;
    flex: 1;
    color: black;
    font-family: shabnam;
    font-style: normal;
    font-weight: normal;
}

details[open] > summary {
    color: red;
}

@media (min-width: 768px) {
    details[open] > div > p {
        opacity: 0;
        -webkit-animation-name: showContent;
        animation-name: showContent;
        -webkit-animation-duration: 0.6s;
        animation-duration: 0.6s;
        -webkit-animation-delay: 0.2s;
        animation-delay: 0.2s;
        -webkit-animation-fill-mode: forwards;
        animation-fill-mode: forwards;
        margin: 0;
        padding-left: 20px;
    }

    details[open] > div {
        -webkit-animation-name: slideDown;
        animation-name: slideDown;
        -webkit-animation-duration: 0.3s;
        animation-duration: 0.3s;
        -webkit-animation-fill-mode: forwards;
        animation-fill-mode: forwards;
    }

    details[open] > div > img {
        opacity: 0;
        height: 100%;
        margin: 0;
        -webkit-animation-name: showImage;
        animation-name: showImage;
        -webkit-animation-duration: 0.3s;
        animation-duration: 0.3s;
        -webkit-animation-delay: 0.15s;
        animation-delay: 0.15s;
        -webkit-animation-fill-mode: forwards;
        animation-fill-mode: forwards;
    }
}

@-webkit-keyframes slideDown {
    from {
        opacity: 0;
        height: 0;
        padding: 0;
    }
    to {
        opacity: 1;
        height: var(--contentHeight);
        padding: 20px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        height: 0;
        padding: 0;
    }
    to {
        opacity: 1;
        height: var(--contentHeight);
        padding: 20px;
    }
}

@-webkit-keyframes showImage {
    from {
        opacity: 0;
        -webkit-clip-path: inset(50% 0 50% 0);
        clip-path: inset(50% 0 50% 0);
        -webkit-transform: scale(0.4);
        transform: scale(0.4);
    }
    to {
        opacity: 1;
        -webkit-clip-path: inset(0 0 0 0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes showImage {
    from {
        opacity: 0;
        -webkit-clip-path: inset(50% 0 50% 0);
        clip-path: inset(50% 0 50% 0);
        -webkit-transform: scale(0.4);
        transform: scale(0.4);
    }
    to {
        opacity: 1;
        -webkit-clip-path: inset(0 0 0 0);
        clip-path: inset(0 0 0 0);
    }
}

@-webkit-keyframes showContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes showContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/*linka button*/

/*
=====
DEPENDENCIES
=====
*/

.r-link {
    display: var(--rLinkDisplay, inline-flex) !important;
}

.r-link[href] {
    color: var(--rLinkColor) !important;
    text-decoration: var(--rLinkTextDecoration, none) !important;
}

.text-underlined {
    /*
        1. I use pixels units because others units (em, rem, vw, vh, etc) can
        lead to the mistake of displaying a circumcised line
    */

    --uiTextUnderlinedLineHeight: var(--textUnderlinedLineHeight, 2px); /* 1 */
    --uiTextUnderlinedLineGap: var(--textUnderlinedLineGap, .5rem);
    --uiTextUnderlinedPaddingBottom: calc(var(--uiTextUnderlinedLineHeight) + var(--uiTextUnderlinedLineGap));

    padding-bottom: var(--uiTextUnderlinedPaddingBottom) !important;
    position: var(--textUnderlinedPosition, relative) !important;
    z-index: var(--textUnderlinedZindex, 1) !important;
}

.text-underlined::after {
    content: "";
    width: var(--textUnderlinedLineWidht, 100%) !important;
    height: var(--uiTextUnderlinedLineHeight) !important;
    background-image: var(--textUnderlinedBackgroundImage, linear-gradient(to top, var(--textUnderlinedLineColor, currentColor) 30%, rgba(0, 0, 0, 0) 45%)) !important;

    position: absolute;
    left: var(--textUnderlinedLineLeft, 0) !important;
    bottom: var(--textUnderlinedLineBottom, 0) !important;
    z-index: var(--textUnderlinedLineZindex, -1) !important;
}

/*
=====
CORE
=====
*/

.link {
    outline: none!important;
    --textUnderlinedLineHeight: 100%;
    --textUnderlinedLineGap: 0;
    --textUnderlinedLineColor: #fed330;

    padding-left: .75rem;
    padding-right: .75rem;
}

.link::after {
    will-change: width;
    transition: width .1s ease-out;
    transform: rotate(-2deg);
    transform-origin: left bottom;
}

.link:hover {
    --textUnderlinedLineWidht: 0;
}

.link:hover::after {
    transition-duration: .15s;
}

/*
* These styles for text decoration. The demo will be work without it
*/

.link {
    font-weight: 700;
    text-transform: uppercase;
}

.link:focus {
    outline: 2px solid #fed330;
    outline-offset: .5rem;
}

/*
=====
DEMO
=====
*/

:root {
    --rLinkColor: #222;
}

.page {
    box-sizing: border-box;
    width: 100%;
    max-width: 25rem;
    padding: 1rem;
    margin: auto;
    flex: none;
}