.body {
  background-color: rgb(0, 0, 0);
}

/* Index */

.h1 {
  text-align: center;
  color: white;
  font-size: 2.5em;
  font-family: "Courier New", Courier, monospace;
  font-weight: lighter;
  margin-top: 10%;
}

.h2 {
  text-align: center;
  color: white;
  font-size: 1.5em;
  font-family: "Courier New", Courier, monospace;
  font-weight: lighter;
}

.logo {
  display: flex;
  justify-content: center;
  padding-top: 10%;
}
.resize {
  max-width: 39%;
  max-height: 39%;
}

/*Portfolio*/

.hover :hover{
  filter: opacity(50%);
}

.portfoliotitel{
  color: white;
  font-family: 'Courier New', Courier, monospace;
  font-size: 40px;
  margin-top: 200px;
  margin-bottom: 100px;
  text-align: center;
}

img{
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
  padding-bottom: 5px;
}

.section{
  margin-bottom: 200px;
}

.container{
  max-width: 2560px;
  margin: 100px 30px 30px 30px;
  column-count: 4;
  column-gap: 5px;
}

@media screen and (max-width: 1200px) {
  .container{
    column-count: 3;
  }
  
}

@media screen and (max-width: 900px) {
  .container{
    column-count: 2;
  }
  
}

@media screen and (max-width: 640px) {
  .container{
    column-count: 1;
  }
  
}


#wrapper {
  display: table;
  width:100%;
  height:100%;
}

#wrapper-inner {
  display: table-cell;
  vertical-align:middle;
  width:100%;
  height:100%;
}

#scroll-down {
    display: block;
    position: relative;
    padding-top: 79px;
  text-align:center;
}
.arrow-down {
    display: block;
    margin: 0 auto;
    width: 10px;
    height: 38px;
}
.arrow-down:after {
    content: '';
    display: block;
    margin: 0;
    padding: 0;
    width: 8px;
    height: 8px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    behavior: url(-ms-transform.htc);
    -moz-transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    transform: rotate(135deg);
}
#scroll-title {
    display: block;
    text-transform: uppercase;
    color: white;
  font-family: Helvetica Neue, Helvetica, Arial;
  font-size:14px;
  font-weight:bold;
  letter-spacing:.1em;
  margin-bottom: 100px;
}
#scroll-down::before {
    -webkit-animation: elasticus 1.2s cubic-bezier(1, 0, 0, 1) infinite;
    /* Safari 4+ */
    
    -moz-animation: elasticus 1.2s cubic-bezier(1, 0, 0, 1) infinite;
    /* Fx 5+ */
    
    -o-animation: elasticus 1.2s cubic-bezier(1, 0, 0, 1) infinite;
    /* Opera 12+ */
    
    animation: elasticus 1.2s cubic-bezier(1, 0, 0, 1) infinite;
    /* IE 10+, Fx 29+ */
    
    position: absolute;
    top: 0px;
    left: 50%;
    margin-left: -1px;
    width: 2px;
    height: 90px;
    background: white;
    content: ' ';
}

@-moz-keyframes elasticus {
    0% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
    50% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    50.1% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    100% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
}
@-o-keyframes elasticus {
    0% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
    50% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    50.1% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    100% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
}
@keyframes elasticus {
    0% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
    50% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    50.1% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    100% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
}


#paschka {
  display: block;
  color:white;
  font-family:helvetica neue, helvetica, arial;
  font-size:32px;
  text-decoration: none;
  position: fixed;
  bottom:0px;
  right:0px;
  padding:0px;
  transition: all .1s ease;
  background:#000;
  height:40px;
  line-height:30px;
  width:40px;
  text-align:center;
  border-radius: 5%;
  bottom:20px;
  right:20px;
}

/*Projects*/

.projecttitel{
  text-align: center;
  margin-top: 100px;
  font-size: 7vw;
  border-bottom: white solid 1px;
  border-top: white solid 1px;
  padding: 5px;
  margin-left: 100px;
  margin-right: 100px;
  margin-bottom: 50px;
}

/*CyberHelp*/



.section2{
    margin-bottom: 30px;
}

.CHT{
  margin:5px auto;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  list-style: none;
  max-width: 1000px;
  font-size: 18px; 
}


.container2{
  max-width: 2560px;
  column-count: 3;
  column-gap: 5px;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
}


.container3{
  max-width: 2560px;
  margin: 100px 50px 30px 50px;
  column-count: 3;
  column-gap: 5px;
}

@media screen and (max-width: 1400px) {
  .container3{
    column-count: 2;
  }
  
}

@media screen and (max-width: 900px) {
  .container3{
    column-count: 1;
  }
  
}

@media screen and (max-width: 640px) {
  .container3{
    column-count: 1;
  }
  
}

.werk{
align-self: center;
max-width: 50%;
margin: 30px auto;
}

/*Kyiv*/

.KD{
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 5%;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.KD > * {
flex: 1 1 10em;
max-width: 80ch;
min-width: 20%; 
}

.KDS{
  padding-left: 15%;
  padding-right: 15%;
  padding-top: 5%;
  padding-bottom: 5%;
  display: flex;
  flex-wrap: wrap;
  gap: 1em; 
}

.KDS > * {
  flex: 1 1 10em;
  max-width: 80ch;
  min-width: 15%; 
  }

.KDT{
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  max-height: 100%;
  max-width: 100%;
  min-width: 200px;
}

.KDT2{
  margin: 20px auto;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  margin-top: 20px;
  list-style: none;
  max-width: 1000px;
  font-size: 18px;
}

.KDP{
max-height: 100%;
max-width: 100%;
padding-top: 5%;
}

.KDPS{
max-height: 100%;
max-width: 100%;
width: 200px;
}

.KDIC{
  margin-bottom: 50px;
}

/*About*/

.flex-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Center items vertically */
  padding: 0;
  margin-top: 80px;
  list-style: none;
  height: 100vh; /* Ensure the container takes the full viewport height */
}

.flex-item {
  display: flex;
  flex-direction: column; /* Ensure children are stacked vertically */
  align-items: center; /* Center children horizontally */
  padding: 5px;
  margin: 20px 50px; /* Simplified margin */
  max-width: 750px;
}

.flex-item img {
  align-self: center; /* Center the image horizontally */
  margin-bottom: 10px; /* Optional: Add some space below the image */
}

/*Contact Form*/

body {
  background: rgb(0, 0, 0);
}
form {
  max-width: 420px;
  margin: 50px auto;
}

.feedback-input {
  color: white;
  font-family: "Courier New", Courier, monospace;
  font-weight: 500;
  font-size: 18px;
  border-radius: 5px;
  line-height: 22px;
  background-color: transparent;
  border: 2px solid #b80202;
  transition: all 0.3s;
  padding: 13px;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
  outline: 0;
}

.feedback-input:focus {
  border: 2px solid #7c0000;
}

textarea {
  height: 150px;
  line-height: 150%;
  resize: vertical;
}

[type="submit"] {
  font-family: "Courier New", Courier, monospace;
  width: 100%;
  background: #6d0000;
  border-radius: 5px;
  border: 0;
  cursor: pointer;
  color: white;
  font-size: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
  transition: all 0.3s;
  margin-top: -4px;
}
[type="submit"]:hover {
  background: #6d0000;
}

.sm {
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  gap: 5px;
  padding-bottom: 30px;
}

/*All Pages the same*/

.nav {
  display: flex;
  justify-content: center; /* Centers the links horizontally */
  align-items: center; /* Aligns the links vertically if needed */
  padding-top: 5px;
  font-size: 18px;
  font-family: "Courier New", Courier, monospace;
  color: white;
  text-align: center;
  flex-wrap: wrap; /* Allow items to wrap if necessary */
}

.links {
  padding-left: 55px;
  padding-right: 55px;
}

.active {
  color: red;
  opacity: 50%;
  padding-left: 55px;
  padding-right: 55px;
}

.footer {
  font-family: "Courier New", Courier, monospace;
  font-size: small;
  color: rgb(71, 71, 71);
  text-align: center;
}

/*Floating Back-To-Top Button*/
#myBtn {
  position: fixed;
  bottom: 20px;
  float: right;
  right: 20%;
  left: 80%;
  height: 40px;
  max-width: 40px;
  width: 100%;
  font-size: 20px;
  font-family: 'Courier New', Courier, monospace;
  text-decoration: none;
  border-color: rgba(85, 85, 85, 0.2);
  background-color: white(0, 0, 0);
  padding: .5px;
  border-radius: 4px;
  opacity: 50%;
}


/*about2*/

form {
  background-color: #000000;
  color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  font-family: 'Courier New', Courier, monospace;
  margin-top: 50px;
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  background-color: #ffffff;
  color: #000000;
}

input[type="submit"] {
  background-color: hwb(0 0% 58%);
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #c70000;
}



/*Script*/

body {
  font-family: 'Courier New', Courier, monospace;
  margin: 5% auto;
  max-width: 2560px;
}


h1 {
  text-align: center;
}

label {
  display: block;
  margin-top: 10px;
}

input, button, textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  margin-bottom: 10px;
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}

textarea {
  resize: none;
}