/*
==========
Fonts
==========
*/
@font-face {
  font-family: Kalameh;
  src: url(./fonts/KalamehFaNum-Regular.ttf);
}

/*
==========
Colors
==========
*/
:root {
  --black: #000;
  --grey-1: #525252;
  --grey-2: #b5b5b5;
  --white: #eee;
  --red: #9e0909;
}

/*
==========
Global
==========
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Kalameh;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

hr {
  margin: 2rem 1rem;
  color: var(--grey-1);
}

.title {
  color: var(--white);
}

.center {
  text-align: center;
}

.txt {
  color: var(--white);
}

.s-7 {
  font-size: 0.7rem;
}

.s-8 {
  font-size: 0.8rem;
}

.s-9 {
  font-size: 0.9rem;
}

.s-1 {
  font-size: 1rem;
}

/*
==========
Body
==========
*/
body {
  margin: auto;
  width: 100%;
  max-width: 1000px;
  background: var(--black);
  position: relative;
}

/*
==========
Nav
==========
*/
nav {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 0 1rem;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:var(--grey-1);
  border-radius: 5rem;
  z-index: 100;
}

nav .nav-logo {
  font-weight: bold;
  font-size: 1rem;
  font-size: 1.5rem;
  line-height: 0;
  color: var(--white);
  margin-right: 0.5rem;
}

nav .menu {
  cursor: pointer;
}

nav .bar1,
nav .bar2,
nav .bar3 {
  width: 2rem;
  height: 0.25rem;
  margin: 0.25rem;
  background: var(--white);
  border-radius: 1rem;
}

nav .items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  display: none;
}

nav .item {
  color: var(--white);
  position: relative;
  cursor: pointer;
  font-size: 1.25rem;
}

nav .item::after {
  width: 0%;
  height: 1px;
  position: absolute;
  right: 0;
  bottom: 0;
  content: '';
  background: var(--white);
  transition: 0.3s ease;
}

nav .item:hover::after {
  width: 100%;
}

nav .search-btn {
  cursor: pointer;
}

nav .search-icon {
  width: 2rem;
  height: 2rem;
  aspect-ratio: cover;
  vertical-align: middle;
}

@media only screen and (min-width: 650px) {
  
  nav {
    padding: 0 2rem;
    height: 5rem;
  }

  nav .nav-logo {
    font-size: 2rem;
  }

  nav .menu {
    display: none;
  }
  
  nav .items {
    display: flex;
  }

  nav .search-icon {
    width: 3rem;
    height: 3rem;
  }
  
}

/*
==========
Header
==========
*/
header {
  margin-top: 7rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

header .img {
  margin: auto;
  width: 60%;
  height: auto;
  border-radius: 1rem;
  transition: 0.3s ease;
}

header .img:hover {
  transform: scale(1.1);
}

header .content {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header .title {
  color: var(--white);
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

header .item {
  color: var(--white);
  font-size: 0.9rem;
}

header .item strong {
  margin-right: 0.25rem;
}

header .preview {
  margin-top: 1rem;
  padding: 0.25rem 0.5rem;
  background: var(--white);
  border: none;
  outline: none;
  border-radius: 0.5rem;
  text-align: center;
  cursor: pointer;
  color: var(--black);
}

header .about {
  padding: 0 1rem;
  width: 100%;
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

header .about .box {
  flex: 50%;
  padding: 0.5rem;
  color: var(--white);
  background: var(--grey-1);
  border-radius: 0.5rem;
  font-size: 0.8rem;
  text-align: center;
  transition: 0.2s ease;
}

header .about .box:hover {
  transform: translateY(-0.25rem);
}

header .stars {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50%;
  left: 1.5rem;
  transform: translateY(-50%);
}

header .star {
  width: 1rem;
  height: 1rem;
}

@media only screen and (min-width: 600px) {
  
  header {
    padding: 2rem;
    margin-top: 10rem;
    flex-direction: row;
    gap: 3rem;
  }

  header .img {
    width: 250px;
    margin: 0;
  }

  header .img:hover {
    transform: none;
  }

  header .content {
    align-items: flex-start;
    justify-content: center;
    width: 100%;
  }

  header .title {
    font-size: 1.5rem;
  }

  header .item {
    font-size: 1rem;
  }

  header .about {
    padding: 0;
    width: 70%;
  }

  header .star {
    width: 2rem;
    height: 2rem;
  }
  
}

/*
==========
About
==========
*/
.about {
  padding: 1rem;
}

.about .title-2 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.about .text {
  color: var(--white);
  font-size: 0.8rem;
  text-align: justify;
}

@media only screen and (min-width: 600px) {
  
  .about .title-2 {
    font-size: 1.25rem;
  }

  .about .text {
    font-size: 1rem;
  }
  
}

/*
==========
Comments
==========
*/
.comments {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.5rem;
}

.comments .comment {
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--white);
  background: var(--grey-1);
  font-size: 0.8rem;
}

.comments .name {
  padding: 0.1rem 0.2rem;
  border-radius: 0.5rem;
  background: var(--red);
  color: var(--white);
  display: inline-block;;
  margin-bottom: 0.5rem;
}

@media only screen and (min-width: 600px) {
  
  .comments {
    grid-template-columns: repeat(2, 1fr);
  }

  .comments .comment {
    padding: 1rem;
    font-size: 1rem;
  }
  
}

/*
==========
AI
==========
*/
.ai-mode {
  width: max-content;
  margin: auto;
  display: block;
  margin-top: 1rem;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(90deg, purple, darkblue);
  color: var(--white);
  border-radius: 0.5rem;
  text-align: center;
  cursor: pointer;
}

/*
==========
Footer
==========
*/
footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--grey-1);
  font-size: 0.8rem;
}

.down-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: var(--white);
  color: var(--black);
  border-radius: 0.5rem;
  cursor: pointer;
}

.down-btn .img {
  width: 1rem;
  vertical-align: middle;
}

@media only screen and (min-width: 600px) {
  
  footer {
    font-size: 1rem;
  }
  
}