@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


html, body {
  height: 100%;
  margin: 0;
}

body{
  background-color: #0c0c0d;
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat";
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.header {
  text-align: center;
  margin-bottom: 20px;
  min-width: 40vw;
}
h1{
    color: white;
    font-size: 60px;
}
h2{
    color: white;
    font-size: 55px;
}
p{
    color: white;
    font-size: 40px;
}
h3{
    color: white;
    font-size: 20px;
}

bold{
  font-weight: 600;
}

a{
    text-decoration: none;
  }
  a:link {
    color: white;
  }
  /* visited link */
  a:visited {
    color: white;
  }
  /* mouse over link */
  a:hover {
    color: gray;
  }
  /* selected link */
  a:active {
    color: gray;
  }

  footer {
    margin-top: auto;
    display: flex;
    color: white;
    text-align: center;
    font-family: "Montserrat";
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background-color: #0c0c0d;
    padding: 10px 0;
  }
  footer p {
    font-size: 16px;
  }

  .login {
    display: none;
}

.logincheck {
  display: none;
}

  .button-container {
    text-align: center;
  }
  
  .button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    background-color: #232323;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Montserrat", monospace, sans-serif;
  }
  
  .button:hover {
    background-color: #1a1a1a;
  }

.test{
  display: none;
}

.center-box {
  background-color: #111113;
  border: 1px solid #1a1a1a;
  padding: 20px;
  border-radius: 8px; 
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  user-select: none;
  justify-content: center;
}

#logout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

 #logout-container .button-box img {
    max-width: 40%;
    margin-top: 5px;
    pointer-events: none;
  }

.button-box {
  background-color: #1f1f1f;
  border: 1px solid #101010;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  padding: 15px;
  width: 200px;
  transition: transform 0.2s, background-color 0.2s;
  font-size: 12px;
  text-align: center;
  overflow: hidden;
  z-index: 10;
}

.button-box:hover {
  transform: scale(1.05);
  background-color: #191919;
  cursor: pointer;
}
#unpurchased{
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.363);
    border: 1px solid rgba(0, 0, 0, 0.363);
    filter: brightness(50%);
}

#unpurchased p, #unpurchased img{
  filter: brightness(50%);
  color: gray;
}

#unpurchased:hover{
    display: block;
    background: rgba(0, 0, 0, 0.5);
    transform: scale(0.995);
  }

br{
  user-select: none;
}

.button-box p {
  margin: 0;
  font-size: 18px;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
}

.button-box img {
  max-width: 50%;
  margin-top: 5px;
  pointer-events: none;
}


.pagination-controls {
  text-align: center;
  margin-top: 20px;
}

.pagination-controls button {
  margin: 0 10px;
}

.center-box {
    background-color: rgb(16,16,18);
    padding: 20px;
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .info-box {
    background-color: rgb(16,16,18);
    color: white;
    padding: 10px;
    border: 1px solid rgb(16,16,18);
    border-radius: 5px;
    margin-bottom: 10px;
}

.message {
  margin-top: 20px;
  font-size: 14px;
}

.error {
  color: red;
}

.success {
  color: green;
}

.logbutton {
  background-color: #6e0000;
  color: white;
}

.logbutton:hover{
  background-color: #550000;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-box {
  background-color: #161616;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 80%;
  overflow-y: auto;
  --animate__faster: 1000ms;
  z-index: 100;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  background-color: #ccc;
}

.modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.modal-title{
  font-size: 24px;
  color: red;
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 16px;
  color: white;
  line-height: 1.5;
}

.profile-box{
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
  
}

.account-details {
  display: none;
  text-align: center;
  margin-bottom: 20px;
  color: white;
}

.account-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-pic-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  object-fit: cover;
}

#upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

#profile-pic-input {
  padding: 8px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(44, 44, 44, 255);
  color: white;
}

#profile-pic-input::file-selector-button {
  background-color: rgba(57, 55, 55, 255);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

#profile-pic-input::file-selector-button:hover {
  background-color: rgba(40, 40, 40, 255);
}

#upload-status, #message {
  font-size: 14px;
  color: white;
}

.message {
  font-size: 14px;
  margin-top: 10px;
}

.message.error {
  color: red;
}

.message.success {
  color: green;
}

.note {
  font-size: 14px;
}

@media (max-width: 768px) {
  #button-container{
    flex-direction:column;
    align-items: center;
    text-align: center;
  }
  #logout-container{
    flex-direction:column;
    align-items: center;
    text-align: center;
  }
  .container{
    height: auto;
  }
  footer{
    gap: 8px;
    flex-direction: column;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    min-height: 48px;
  }
  footer p {
    font-size: 13px;
    margin: 2px 0;
  }
}

.sidebar {
  width: 120px;
  background-color: #1a1a1a;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  justify-content: center;
  z-index: 100;
}

.sidebar img {
  width: 60px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  margin: 20px 0;
  font-size: 24px;
  position: relative;
}

.sidebar a i {
  font-size: 36px;
}

.sidebar a:hover::after {
  content: attr(data-title);
  position: absolute;
  left: 100%;
  margin-left: 10px;
  background-color: rgba(44, 44, 44, 255);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar a:hover {
  color: gray;
}

.main-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dashboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.dashboard-section {
  text-align: center;
}

.dashboard-section, .settings-section {
  margin-bottom: 30px;
}

.dashboard-section h2, .settings-section h2 {
  color: white;
  font-size: 24px;
  margin-bottom: 10px;
}

.settings-section {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  width: 80%;
  max-width: 600px;
  text-align: center;
}

.settings-section h2 {
  font-size: 28px;
  color: white;
  margin-bottom: 15px;
}

#profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

#profile-pic-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}

.add-btn {
  background-color: rgba(120, 0, 0, 255);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.add-btn:hover {
  background-color: rgba(100, 0, 0, 255);
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    bottom: 0;
    top: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px 0;
    font-size: 14px;
  }

  .sidebar a {
    font-size: 16px;
  }

  .sidebar a i {
    font-size: 26px;
  }

  .sidebar img {
    width: 40px;
    margin-bottom: 10px;
  }

  .main-content {
    margin-left: 0;
    padding: 10px;
  }

  .settings-section {
    width: 90%;
  }

  #profile-pic-preview {
    width: 100px;
    height: 100px;
  }

  .button-box {
    padding: 10px;
  }

  .button-box p {
    font-size: 16px;
  }
}