*{
    font-family: "Audiowide", sans-serif;
}

p{
  text-align: justify;
}

nav{
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 50px;
    width: 100%;
}

nav *{
    flex-grow: 1;
    border: none;
}

nav a button{
    width: 100%;
    height: 100%;
    border-bottom: solid;
    border-color: cyan;
}

#navigation{
  display: flex;
  width: 100%;
  flex-direction: column;
  border-top: solid;
  border-color: cyan;
  transition: all 0.3s ease;
  z-index: 1000;
}
#navigation.sticky {
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header{
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-top: 25px;
    background: linear-gradient(to bottom, white, grey);
}

html{
    height: 100%;
}
body{
    margin: 0;
    background: linear-gradient(to right, rgb(0, 200, 200), rgb(0, 150, 150), rgb(0, 150, 150), rgb(0, 200, 200));
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.rotating-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
  }
  
  .rotating-card {
    position: relative;
    width: max-content;
    transform-style: preserve-3d;
    animation: spin 6s linear infinite;
    height: 100%;
  }
  
  .side {
    position: absolute;
    left: 0;
    right: 0;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    white-space: nowrap;
    transform-origin: center;
    width: 100%;
  }
  
  .front {
    transform: rotateY(0deg);
  }
  
  .back {
    transform: rotateY(180deg);
  }
  
  @keyframes spin {
    from {
      transform: rotateY(0deg);
    }
    to {
      transform: rotateY(360deg);
    }
}

#mainContent{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

    > div{
      width: 80%;
    }
}

img{
  border-radius: 10px;
}

.img-p_paragraph{
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 5vw;
  width: 80%;
  margin: 20px 0;

  img{
    width : 30%;
    min-width: 400px;
    max-height: 500px;
  }

  img.wider{
    width : 50%;
  }

  img.narrow{
    width: 20%;
  }

  > div:not(.carousel){
    width: 70%;
  }

  div.justRight *{
    text-align: right;
  }

  div.justRight ul {
    list-style-position: inside;
    direction: rtl;
  }
}

.p-p{
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 5vw;
  width: 80%;
  margin: 20px 0;
  text-align: justify;

  *{
    width: 50%;
  }
}

a{
  color: yellow;
}

.carousel {
  position: relative;
  width: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 10px;
}

.carousel-images {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  border-radius: 10px;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

h1{
   font-size: xx-large;
}

.twoSidedList{
  display: flex;
  flex-direction: column;
  text-align: justify;
  gap: 10px;

  > div{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 25px;

    > b{
      width: 25%;
    }

    > span{
      width: 100%;
    }
    
  }
}

#CV_Holder{
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 10%;

  div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    h1{
      background: linear-gradient(60deg, #999 5%, #fff 10%, #ccc 30%, #ddd 50%, #ccc 70%, #fff 80%, #999 95%);
      padding: 20px;
      border-radius: 10px;
      text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    }
  }
}

@media (max-width: 768px) { 
  .img-p_paragraph {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90%;

    img {
      width: 100%;
      max-width: none;
    }

    > div {
      width: 100%;
      text-align: justify;
    }

    div.justRight *{
      text-align: justify;
    }
    
    > div:not(.carousel){
      width: 100%;
    }
  }

  .twoSidedList {
    > div {
      flex-direction: column;
      align-items: flex-start;

      > b {
        width: 100%;
      }

      > span {
        width: 100%;
      }
    }
  }

  nav a button {
    font-size: x-small;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #CV_Holder {
    flex-direction: column;
    gap: 20px;

    div {
      width: 100%;
    }
  }

  #mainContent > h1, 
  #mainContent > h2 {
    text-align: center;
    width: 90%;
  }
}