@import url("https://fonts.googleapis.com/css2?family=Righteous&display=swap");
body,
html {
    font-family: "Montserrat", sans-serif;
    text-shadow: 1px 1px 5px rgb(0, 0, 0);
    height: 100%;
    color: rgb(255, 255, 255);
    background-image: url("ivoand_full.jpg");
    background-attachment: fixed;
    background-position: right top;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax {
    width: 100%;
    height: 100vh;
}

.parallax-layout {
    position: relative;
    margin: 0;
    width: 100%;
    height: fit-content;
    background: linear-gradient( rgba(54, 54, 54, 0.514), rgba(255, 255, 255, 0.658));
    border-bottom: 1px solid rgb(41, 41, 41);
}

.container {
    position: relative;
    margin: 0;
    width: 100%;
    padding-bottom: 30px;
    height: fit-content;
    min-height: 24em;
    box-shadow: 0px 4px 10px rgb(190 190 190 / 57%);
}

.lang-bgr {
    display: inline-block;
}

.lang-bgr:hover .language-btn span {
    animation: none;
}

.language-btn {
    display: inline-block;
    box-shadow: 1px 1px 3px rgba(190, 190, 190, 0.548);
    padding: 9px 6px;
    text-decoration: none;
    color: rgb(196, 196, 196);
    border-radius: 3px;
    text-align: center;
    font-size: 20px;
    width: 50px;
}

.language-btn span {
    text-shadow: 1px 1px 5px rgb(255, 255, 255);
    animation-name: flash;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

.language-btn:nth-child(2) span {
    animation-delay: 1s;
}

.language-btn:hover span {
    color: red;
    text-shadow: 1px 1px 2px white;
}

.language-btn:active {
    box-shadow: 1px 1px 6px rgb(190, 190, 190);
    font-size: 18px;
}

.logo-layout {
    position: absolute;
    top: calc(45% - 100px);
    left: calc(20% - 105px);
}

#img1 {
    width: 100%;
    height: auto;
}

#img2 {
    display: none;
    width: 100%;
}

.my-name {
    color: rgb(255, 255, 255);
    font-family: "Righteous", cursive;
    font-size: 7vw;
}

.logo-layout>div {
    text-shadow: 1px 1px 3px rgb(117, 117, 117);
}

@keyframes flash {
    0%,
    50%,
    100% {
        opacity: 1;
    }
    25%,
    75% {
        opacity: 0.3;
    }
}

.flex-container {
    display: flex;
    justify-content: center;
}

.skill-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

h1 {
    margin: 0;
    padding-top: 30px;
    text-align: center;
}

h2 {
    margin: 0;
    font-size: 2em;
}

.text-layout-1,
.text-layout-2 {
    width: 40%;
    height: fit-content;
    margin: 48px;
    padding: 6px 16px;
    background: rgba(104, 104, 104, 0.144);
    box-shadow: 5px 5px 4px rgba(0, 0, 0, 0.301);
}

.text-layout-1 {
    width: auto;
}

.text-layout-3 {
    margin: 20px;
    margin-top: 25px;
    text-align: center;
    height: 9em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-layout-3>img {
    width: 80%;
    height: 80%;
}

p {
    font-size: 1.8em;
    text-indent: 50px;
    text-align: justify;
}

img {
    max-width: 100%;
    height: auto;
}

.contact-bgr {
    display: flex;
    justify-content: center;
    justify-items: center;
    padding: 20px;
    flex-direction: column;
    align-items: center;
}

.stars {
    display: inline-flex;
    width: 69%;
}

.star1 {
    fill: rgb(251, 255, 0);
}

@keyframes fill {
    0% {
        fill: rgba(255, 255, 0, 0);
    }
    50% {
        fill: yellow;
    }
    100% {
        fill: rgba(255, 255, 0, 0);
    }
}

.star2 {
    animation-name: fill;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }
    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }
    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }
    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }
    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }
    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }
    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }
    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }
    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }
    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }
    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.hobby-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.hobby-container>.text-layout-3>img {
    height: 80%;
    width: auto;
    padding: 35px;
}

.social-container {
    border-radius: 5px;
    background-color: #f2f2f242;
    box-shadow: 5px 5px 4px rgb(0 0 0 / 30%);
    padding: 20px;
    height: fit-content;
    width: 75%;
    margin: 5px;
    text-align: center;
}

.social-container>a>svg {
    width: 40px;
    margin: 0 25px 0 25px;
}

.contact-container {
    border-radius: 5px;
    background-color: #f2f2f242;
    box-shadow: 5px 5px 4px rgb(0 0 0 / 30%);
    margin: 5px;
    padding: 20px;
    height: fit-content;
    width: 75%;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
}

.antispam {
    display: none;
}

.border_color {
    border: 1px solid red;
}

button {
    background-color: #616161;
    color: white;
    padding: 12px 20px;
    border: none;
    box-shadow: 0px 0px 4px rgb(255, 0, 0);
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

#poga {
    margin: 17px;
    font-size: 15px;
    border-radius: 22px;
}

.up-poga {
    display: none;
    padding: 14px;
    position: fixed;
    bottom: 20px;
    right: 30px;
    border-radius: 50%;
    height: 5em;
    width: 5em;
    background-color: #00b7ff13;
}

.pogas-bgr {
    position: relative;
    background-color: rgba(146, 0, 0, 0);
    clip-path: polygon(100% 46%, 75% 46%, 75% 100%, 25% 100%, 25% 46%, 0 46%, 50% 0);
    width: 40px;
    height: 40px;
    margin: 0 0 0 0;
}

.bulta {
    position: relative;
    background: linear-gradient(rgb(255, 0, 0), rgb(146, 0, 0), rgb(146, 0, 0));
    top: 0;
    width: 100%;
    animation: fill-up 5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    background-position: center;
}

@keyframes fill-up {
    0% {
        top: 50px;
        height: 0;
    }
    50% {
        top: 0;
        height: 100%;
    }
}


/* hover līdz telefona formātam */

@media only screen and (min-width: 768px) {
    .my-name:hover span {
        color: rgb(161, 0, 0);
        transition: 1s;
    }
    .social-container>a:hover>svg {
        animation-name: shake;
        animation-duration: 0.5s;
        animation-iteration-count: infinite;
    }
}

@media only screen and (max-width: 1115px) {
    .text-layout-2 {
        width: auto;
    }
    p {
        font-size: 1.3em;
    }
}


/* telefonam */

@media only screen and (max-width: 768px) {
    body,
    html {
        background-image: url("ivoand_mob.jpg");
        background-attachment: fixed;
    }
    #img1 {
        display: none;
    }
    #img2 {
        display: block;
    }
    .logo-layout {
        top: calc(75% - 100px);
        left: calc(35% - 105px);
    }
    .my-name {
        width: 50vw;
    }
    .text-bgr {
        top: calc(50% - 0px);
        left: calc(36% - 77px);
    }
    .flex-container {
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
    }
    .text-layout-1 {
        width: 33%;
    }
    .text-layout-2 {
        width: 82%;
    }
    .hobby-container>.text-layout-3>img {
        padding: 15px;
    }
    h2 {
        font-size: 1em;
    }
}