@font-face {
  font-family: "custom-font";
  src: url(./fonts/counterFont.ttf) format("truetype");
}
.globalTheme {
  background-color: black;
  color: white;
}

body {
  margin: 0;
  height: 100%;
  background-color: black;
  color: white;
  overflow: hidden;
}

.main {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;

  

}

.container {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: relative;

}

.nav {
  height: 10%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1%;
}
#setting {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  background: transparent;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;

}
#setting:hover{
        transition: transform .2s ease;
        transform: scale(1.2);
}
.close{
    width:100vw;
    height:100vh;
    position:fixed;
    pointer-events:none;
}
  [screen=info] .close,
  [screen=settings] .close,
  [screen=reset] .close{
    pointer-events:auto
    
}
#setting-option{
    width: 100vw;
    height: 100vh;
    position: fixed;
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .3s;
    display: none;
    z-index: 5;

}
#setting-option{
    transition: transform 0.2s;

}
.themes{
    max-width: 200px;
    height: auto;
    padding: 2%;
    border: 2px solid rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    top: 50%;
    left: 40%;
}
.themes-btn{
    height: 50px;
    width: 50px;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
  }
  .themes-btn:hover{
    transform: scale(1.3);
    transition: 0.3;
  }
.theme-black {
  background-color: black;
  color: white;
}

.theme-white {
  background-color: white;
  color: black;
}

.theme-purple {
  background-color: purple;
  color: white;
}

.theme-yellowgreen {
  background-color: yellowgreen;
  color: white;
}

.theme-maroon {
  background-color: maroon;
  color: white;
}

.theme-grey {
  background-color: gray;
  color: white;
}
.themes-title{
    width: fit-content;
    font-size: 30px;
    color: black;
    font-family: custom-font;
    position: absolute;
    top: -37%;
    font-weight: bolder;
}
#close-btn,#close-info{
    width: 50px;
    height: 50px;
    background:transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 5%;
    right: 5%;
    font-size: 2em;
    color: rgb(0, 0, 0);
    border: 2px solid rgb(0, 0, 0);
    border-color: black;
    cursor: pointer;
    z-index: 6;
   display:none ;
}

#close-btn:hover{
    transform: scale(1.3); 
    transition: transform .2s; 

}
#close-info:hover{
  transform: scale(1.3); 
  transition: transform .2s; 

}

#info-option {
  width: 100vw;
  height: 100vh;
  position: fixed;
  background-color: rgb(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform .3s;
  display: none;
  z-index: 5;
}

.info-content {
  height: 100%;
  font-family: custom-font;
  color: rgb(0, 0, 0);
  font-size: 1.6em;
  font-weight: bolder;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5%;
  padding: 2%;
  text-align: center;
}

.discription {
  width: 40%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 2%;
  font-size: 1em;
  word-break: break-word;
  box-sizing: border-box;
}

.htu {
  width: 50%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 1%;
  font-size: 1em;
  word-break: break-word;
  box-sizing: border-box;
}

.htu-title {
  position: absolute;
  top: 50%;
  font-size: 1.1em;
}
.reset {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  background: transparent; 
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
}
.reset:hover{
    transition: transform .2s ease;
    transform: scale(1.2);
}

#info {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;

  background: transparent;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
}
#info:hover{
    transition: transform .2s ease;
    transform: scale(1.2);
}
.center {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 5%;
  justify-content: space-between;
  gap: 30px;
}

.sub,
.add {
  cursor: pointer;
  height: 50px;
  width: 50px;
  font-size: 1.7em;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: transparent;
  background: transparent;
  border: 2px solid rgb(255, 255, 255);
  z-index: 3;
}
.add:hover{
    transform: scale(1.2);
    transition: transform .2s;
}
.sub:hover{
    transform: scale(1.2);
    transition: transform .2s;
}
#result {
  font-size: 22em;
  font-family: custom-font;
  padding: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;

  font-size: 20vw;
  max-width: 90vw;
  text-align: center;
  word-break: break-word;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .center {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 30%;
  }
  .sub,
  .add {
    width: 50px;
    height: 50px;
    font-size: 2em;
    position: relative;
    bottom: 10%;

  }

  #result {
    width: fit-content;
    top: 40%;
    font-size: 22em;
    max-width: 90vw;
    text-align: center;
    word-break: break-word;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .nav {
    display: flex;
    justify-content: end;
    padding-right: 5%;
    box-sizing: border-box;
    gap: 2%;
  }
  #info {
    font-size: 1.5em;
  }
  .setting {
    font-size: 1.5em;
  }
  .reset {
    font-size: 1.5em;
  }
  .close-info{
    font-size: 1.5em;

  }
  .themes {
    width: 90%;
    max-width: 100%;
    padding: 5%;
    top: auto;
    left: auto;
    position: relative;
    top: 30%;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: auto;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
  }
  
  .themes-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 10px;
    cursor: pointer;
  }
  
  .themes-title {
    font-size: 1.2em;
    top: auto;
    margin-bottom: 10px;
    position: static;
    text-align: center;
    width: 100%;
    font-weight: bold;
    color: black;
  }
  .info-content {
    font-size: 1.1em;
    padding: 5%;
    gap: 30px;
    flex-direction: column;
    align-items: center;
    text-align: left;
    line-height: 1.6;
  }
  
  .discription {
    width: 100%;
    padding: 2%;
    font-size: 1em;
    margin-bottom: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    text-align: center;
  }
  
  .htu {
    width: 100%;
    padding: 2%;
    font-size: 1em;
    box-sizing: border-box;
    border-radius: 10px;
    left: 10%;
  }
  
  .htu-title {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: 38%;
  }
  

}
