/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#installBtn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  width: max-content;
  border-radius: 8px;
  margin-left: auto;
}

#installBtn:hover {
  background-color: #0056b3;
}


html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  

  color: #ffffff;
  display: block;
  min-height: 100vh;
background: repeating-linear-gradient(45deg, black, #181818, black 100px);
display: block;

}


.bodycontent {
  margin: 5px;
}

.wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 600px;
  margin: 0 auto;
}

main {
  flex: 1;
  padding: 20px;
}

h1 {
  color: #ff6f61;
  text-align: center;
  margin: 20px;
}

h4 {
  font: small-caption;
}

p {
  text-align: center;
  font-style: italic;
}


.bodycontent {
  min-height: 90vh;
}

a.readerhyperlink {
  background: #5c47ff;
  color: white;
  padding: 5px;
  border-radius: 8px;
  margin-left: 10px;
  display: flow;
  margin-top: 10px;
  margin-bottom: 10px;
  position: relative;
  width: fit-content;
  margin-left: auto;
}

a.About {
  background: #5c47ff;
  color: white;
  padding: 5px;
  border-radius: 8px;
  margin-left: 10px;
  display: flow;
  margin-top: 10px;
  margin-bottom: 10px;
  position: relative;
  width: 50%;
}

button#clearCookiesBtn {
  background: #fa0000;
  color: white;
  padding: 5px;
  border-radius: 8px;
  margin-left: 10px;
  display: flow;
  margin-top: 10px;
  margin-bottom: 10px;
  position: relative;
  width: 50%;
}

label, input, select, button {
  display: block;
  margin: 10px auto;
  max-width: 90%;
  width: 100%;
  box-sizing: border-box;
}

input, select, button {
  padding: 10px;
  border-radius: 5px;
  border: none;
}

input, select {
  background-color: #333;
  color: #fff;
}

button {
  background-color: #ff6f61;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 8px;
}

button:hover {
  background-color: #ff4b47;
}

.field-preview {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #333;
  background-color: #1e1e1e;
  border-radius: 8px;
}

#canvas {
  width: 90%;
  margin: 0 auto;
  display: block;
  border: 1px solid #333;
  background-color: #1e1e1e;
}


div#savedProjectsContainer {
  display: ruby;
}


/* Card styles */
.project-card {
  border: 2px solid #ff6f61;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  background-color: #f3eeee;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 330px;
  margin: 5px;
}
}

.project-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  color: #ff6f61;
}

.project-card pre {
  background-color: #333;
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
  color: #fff;
}

.project-card button {
  margin-top: 10px;
  background-color: #ff6f61;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  border: none;
}

.project-card button:hover {
  background-color: #ff4b47;
}

textarea {
  width: 100%;
  height: 60px;
}



.field-options-container {
  display: flex;
  align-items: center;
  margin-top: 5px;
}



.btn-x {
  background-color: #f40a05;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  margin-left: 10px;
  width: 40px;
  height: 40px;
}

p#generatedLink {
  overflow-wrap: break-word;
  overflow: scroll;
  height: 100px;
  background: gray;
  color: black;
  scroll-behavior: smooth;
}

.btn-x:hover {
  background-color: #ff2b2b;
}


.footer_text {
  display: flex;
}

footer p {
  margin: 0;
  font-size: 14px;
  color: #a5a4a4;
  width: 40%;
}



a.OpenSavedProjectLink {
  background: #f96c5f;
  color: white;
  padding: 10px;
  display: block;
  margin-top: 10px;
  border-radius: 12px;
  text-align: -webkit-center;
  text-decoration: auto;
  font-weight: bold;
  position: unset;
}

.SavedProjectsBtns {
  display: flex;
}


button.DeleteSavedProjectLink {
  margin-left: 25px;
  width: 50px;
}

button.OpenSavedProjectLink {
  width: 230px;
}


















/*


@media (min-width: 768px) {

  .bodycontent {
    max-width: 768px;
    
    background: repeating-linear-gradient(45deg, black, #181818, black 100px);
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  color: #ffffff;
  display: block;
  min-height: 100vh;
  background: gray;
  display: block;
  margin-left: 50VH;
  border: 3px solid black;
}

html {
  max-width: 760px;
  
  height: fit-content;
}


h1 {
  color: #ff6f61;
  text-align: center;
  padding-top: 20px;
}


}



*/










/* Make sure the page is mobile-friendly */
@media (max-width: 768px) {
  body {
    min-height: 100vh;
  }

  h1 {
    font-size: 24px;
  }

  label, input, select, button {
    max-width: 100%;
    margin: 5px auto;
  }

  button {
    padding: 8px 15px;
    font-size: 14px;
  }

  .field-preview, .project-card pre {
    font-size: 14px;
  }

  .project-card button {
    padding: 8px 15px;
    font-size: 14px;
  }

  .field-type {
    flex: 1;
    margin-right: 10px;
  }

  .btn-x {
    background-color: #f40a05;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 10px;
    width: 40px;
    height: 40px;
  }

  p#generatedLink {
    overflow-wrap: break-word;
    overflow: scroll;
    height: 100px;
    background: gray;
    color: black;
    scroll-behavior: smooth;
  }

  .btn-x:hover {
    background-color: #ff2b2b;
  }

  .field-container {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
  }

  .field-options-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
  }

  div#step2 {
    padding-bottom: 100px;
  }

  .add_fields {
    display: flex;
  }

  button.btn\.add {
    width: 18%;
    margin-left: 10px;
  }

  p#generatedLink {
    overflow-wrap: break-word;
    overflow: scroll;
    height: 100px;
    background: gray;
    color: black;
    scroll-behavior: smooth;
    border: 3px solid white;
    padding: 2px;
  }

  .photopageDownload {
    height: 60px;
    font-weight: bolder;
    font-size: large;
  }

  .TakeOrUploadPhoto {
    height: 60px;
    font-weight: bolder;
    font-size: large;
  }
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #413838;
  border-top: 1px solid #e7e7e7;
  position: relative;
  width: 100%;
  bottom: 0;
  left: 0;
  margin-top: auto;
}

footer p {
  margin: 0;
  font-size: 14px;
  color: #a5a4a4;
}

footer a {
  color: #007bff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.buy-coffee-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
}




strong.TitleSavedProjectLink {
  color: black;
}