*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box; 
}

body{
    background: #100e0e;  /* background color */
    color: #ffffff; /* text color */
}

#header{
    width: 100%;
    height: 800px;
    background-size: cover;
    background-position: center;
}

.container{
    padding: 10px 10%;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

figure{
    align-items: center;
}

figcaption{
    align-items: center;
}

.logo{
    width: 100px;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;   /* This makes the links for Home, About, CAD Design horizontal*/
}

nav ul li a{    /* This is for the link fonts and color */
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
  }

nav ul li a:hover::after{
    width: 100%;
}

.header-text{
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span{
    color: #ff004f;
}

/* About Section */
#about{
    padding: 150px 0;
    color: #e32b2b
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}
.about-col-1 img{
    width: 100%;
    border-radius: 50%;   /* make the image round or use 15px to just make the edges round */
}
.about-col-2{
    flex-basis: 60%; /* using 35+60% flex space we can get a 5% space in between them */
}

.About{
    font-size: 20px;
    color: #fff;
}

.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #ffffff;
}

/* My CAD Designs */
#CAD-Designs{
    padding: 50px 0;
}

#code-projects{
    padding: 50px 0;
}


.CAD-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.CAD-list div{
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s
}

.CAD-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.CAD-list div a {
    text-decoration: none;
    color: rgb(6, 189, 235);
    font-size: 12px;
    margin-top: 20px;
    display: inline-block
}

.CAD-list div:hover{
    background: #ff004f;
    transform: translateY(-10px);

}

.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

nav ul li a{    /* This is for the link fonts and color */
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
  }

nav ul li a:hover::after{
    width: 100%;
}

/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

/* Hide the images by default */
.mySlides1, .myslides2 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
} 

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
    color: #bc2121;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    margin: auto;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #000;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

#code-projects{
    padding: 150px 0;
}

.container{
    padding: 10px 10%;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo{
    width: 300px;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;   /* This makes the links for Home, About, CAD Design horizontal*/
}

nav ul li a{    /* This is for the link fonts and color */
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
  }

nav ul li a:hover::after{
    width: 100%;
}

.header-text{
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span{
    color: #ff004f;
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
    background-color: #ff004f;
    color: #000000;
    cursor: pointer;
    padding: 18px;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
  }
  
  /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
  
  /* Style the accordion panel. Note: hidden by default */
  .panel {
    padding: 0 18px;
    background-color: #000000;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }

  #Contact {
    padding: 30px 0;
  }

  .contact-list {
    display: grid;
    color: #000;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
  }

  .contact-list div {
    background: #ff004f;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-right: 10px;
  }

  .contact-list div hs{
    font-size: 30px;
    font-weight: 500;
    border-right: 15px;
    margin-top: 20px;
    display: inline-block
  }

  .contact-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block
  }

  .center{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    padding: 50px;
  }