@font-face {
    font-family: 'sunlight';
    src: url('Sunflower-Light.ttf');
}

@font-face {
    font-family: 'sunmedium';
    src: url('Sunflower-Medium.ttf');
}

@font-face {
    font-family: 'sunbold';
    src: url('Sunflower-Bold.ttf');
}

body {
    font-size: 18px;
    font-family: 'sunlight';
    transition: 0.8s;
    /* background: #E5E5E5; */
}
#infoimg{
    content: var(--infoimg);
}

svg {
    stroke: var(--text-color);
}

.title {
    margin: 5px 0px;
    font-size: 30px;
    font-weight: 500;
}

.modal-dialog {
    max-width: 500px;
}

.modal-content {
    border-left: 3px solid var(--text-color);
    border-right: 3px solid var(--text-color);
    border-radius: 0;
}

.modal-content:before {
    content: "";
    background: var(--text-color);
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 80%;
}

.modal-content:after {
    content: "";
    background: var(--text-color);
    position: absolute;
    bottom: 0;
    right: 0;
    height: 3px;
    width: 80%;
}


.modal {
    --bs-modal-bg: var(--background-color);

}

.modal-header {
    display: block;
    padding: 2px 10px;
    border: none;
}

.close {
    color: var(--text-color);
    font-size: 2.8rem;
    background: none;
    border: none;
    padding: 0 .5rem;
    opacity: 1;
    transition: .8s;
    float: right;
    font-weight: 700;

}

/* ---------------New box style borders---------------------------- */
input {
    color: var(--text-color);
    border: 0px;
    background: none;
    width: 100%;
}

input:focus {
    outline: 0px;
}

.textbox {
    width: fit-content;
    position: relative;
    padding: 5px;
    border-left: 3px solid var(--text-color);
    border-right: 3px solid var(--text-color);
}

.textbox:before {
    content: "";
    background: var(--text-color);
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 40%;
}

.textbox:after {
    content: "";
    background: var(--text-color);
    position: absolute;
    top: 0;
    right: 0;
    height: 3px;
    width: 40%;
}

.menu {
    width: fit-content;
    position: relative;
    padding: 8px 40px;
    font-weight: bold;
    border-left: 3px solid var(--text-color);
    border-right: 3px solid var(--text-color);
}

.menu:after {
    content: "";
    background: var(--text-color);
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 80%;
}

.menu:before {
    content: "";
    background: var(--text-color);
    position: absolute;
    top: 0;
    right: 0;
    height: 3px;
    width: 80%;
}

.menu2 {
    width: fit-content;
    position: relative;
    padding: 5px 10px;
    font-weight: bold;
}

.menu2:after {
    content: "";
    background: var(--text-color);
    position: absolute;
    bottom: 0;
    left: 0;
    height: 70%;
    width: 2px;
}

.menu2:before {
    content: "";
    background: var(--text-color);
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 80%;
}

.news {
    position: relative;
}

.news:after {
    content: "";
    background: var(--text-color);
    position: absolute;
    bottom: 0;
    right: 0;
    height: 70%;
    width: 3px;
}

.news:before {
    content: "";
    background: var(--text-color);
    position: absolute;
    bottom: 0;
    right: 0;
    height: 3px;
    width: 50%;
}

.news2 {
    position: relative;
    border-left: 3px solid var(--text-color);
    text-align: right;
}

.news2:after {
    content: "";
    background: var(--text-color);
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 25%;
}

.news2:before {
    content: "";
    background: var(--text-color);
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 25%;
}

.menuham {
    width: fit-content;
    position: relative;
    padding: 8px 40px;
    font-weight: bold;
    border-left: 3px solid var(--text-color);
    border-top: 3px solid var(--text-color);
}

.menuham:after {
    content: "";
    background: var(--text-color);
    position: absolute;
    bottom: 0;
    right: 0;
    height: 3px;
    width: 80%;
}

.menuham:before {
    content: "";
    background: var(--text-color);
    position: absolute;
    bottom: 0;
    right: 0;
    height: 80%;
    width: 3px;
}

/* --------------------------------------------- */
.main-summary {
    font-style: italic;
    font-weight: bold;
    padding: 20px 10px;
    border-top: 2px dotted var(--text-color);
    border-bottom: 2px dotted var(--text-color);
}

.fontbtn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    font-weight: bold;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

.logo {
    font-family: 'sunbold';
    font-style: italic;
}

nav {
    transition: 0.8s;
    background-color: var(--background-color);
    border-bottom: 2px dotted var(--text-color);
}

.hamburer img {
    height: 18px;
}

.title {
    font-family: 'sunmedium';
    /* padding-right: 4rem; */
}

.summary {

    white-space: pre-wrap;
    /* padding-right: 4rem; */
}

.hamburger-img {
    height: 18px;
    width: 18px;
}

.details-hamburger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.hmbbtn {
    background-color: var(--ham-color);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-container {
    display: flex;
    padding: 10px;
}

/* -----------------------------------Details page style css------------ */

.detail-container .story-img {
    width: 100%;
    margin-bottom: 1rem;
    /* object-fit: contain; */
}

@media screen and (min-width: 820px) {
    .detail-container .story-img {
        height: 500px;
        object-fit: contain;
    }
}

.newpopup {
    width: 180px;
    height: 240px;
    padding: 30px 20px;
    background: var(--ham-color);
    z-index: 2;
    text-align: center;
    display: none;
    position: absolute;
    /* bottom: 98px; */
    right: 65px;
    top: 20px;
}

.newpopup.active {
    display: block;
    position: absolute;
    /* animation: wiggle 2s linear;
    animation-duration: 4s; */
    /* -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.5s;
    animation-name: animatetop;
    animation-duration: 0.5s */

}

.info {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
}

.popup {
    width: 180px;
    height: 240px;
    padding: 30px 20px;
    background: var(--ham-color);
    z-index: 2;
    text-align: center;
    display: none;
    position: fixed;
    bottom: 98px;
    right: 51px;
}

.popup.active {
    display: block;
    position: fixed;
    /* animation: wiggle 2s linear;
    animation-duration: 4s; */
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.5s;
    animation-name: animatetop;
    animation-duration: 0.5s
}
.polarity{
    font-size: medium;
    /* padding: 0px 5px; */
    font-weight: bold;
    width: 50%;
}
i{
    width: 50%;
}

@-webkit-keyframes animatetop {
    from {
        bottom: 50px;
        right: 2px;
        opacity: 0
    }

    to {

        opacity: 1
    }
}

@keyframes animatetop {
    from {
        bottom: 50px;
        right: 2px;
        opacity: 0
    }

    to {

        opacity: 1
    }
}

@keyframes wiggle {

    0%,
    7% {
        transform: rotateZ(0);
    }

    15% {
        transform: rotateZ(-15deg);
    }

    20% {
        transform: rotateZ(10deg);
    }

    25% {
        transform: rotateZ(-10deg);
    }

    30% {
        transform: rotateZ(6deg);
    }

    35% {
        transform: rotateZ(-4deg);
    }

    40%,
    100% {
        transform: rotateZ(0);
    }
}

/* -----------------------------------Details page------------ */
#toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    height: 4rem;
    background-color: var(--ham-color);
    color: var(--text-color);
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 20%;
    font-size: 17px;
}

#toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}