@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
:root {
    --bg-color: #fff2bf;
    --ruling-line-color: #f49898;
  }

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

.wrapper {
    height: calc(100vh - 79px);
}

.wrapper-2 {
  height: 120vh;

}

.header {
    background-color: #fff2bf;
    padding: 60px 50px 30px 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 3px solid #ff3131;
}

.footer {
  background-color: #fff2bf;
  padding: 30px 50px 30px 50px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  bottom: 0;
  width: 100%;

}

.footer-nav {
  display: flex;
  flex-direction:row;
  list-style: none;
}

.footer-nav-link{
  margin-right: 30px;
}

.footer-nav a {
  display: flex;
  flex-direction:row;
  text-decoration: none;
  color: black;
  cursor: pointer;
}

.header-sub-page {
    background-color: #fff2bf;
    padding: 30px 30px 30px 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 3px solid #ff3131;
}

.title {
    font-size: 60px;
    margin-left: 30px;
    font-weight: 600;
    align-items: flex-end;
    color: #5271ff;
    text-decoration: none;
}

.title a {
  font-size: 60px;
  margin-left: 30px;
  font-weight: 600;
  align-items: flex-end;
  color: #5271ff;
  text-decoration: none;
}

.nav {
    display: flex;
    flex-direction: row;
    margin-right: 30px;
    width: 45%;
    justify-content: end;
    align-items: flex-end;
}

.nav-items {
    margin-right: 30px;
}

.nav-items a {
    color: black;
    text-decoration: none;
    font-size: 20px;
}

.nav-items-active{
    font-weight: 600;
}

.logout-button {
    border: none;
    font-size: 20px;
    background: none;
    cursor: pointer;
}

.main {
    font-size: 20px;
    background-color: white;
    
    margin-bottom: 30px;
}

.main-index {
    height: 525px;
    font-size: 50px;
    background-color: #fff2bf;
}

.banner-text{
    text-align: center;
    color: #4c526c;
    font-weight: 600;
    font-size: 60px;
    line-height:80px;
}

.ruled-paper{
    background-image: linear-gradient(90deg, transparent 79px, var(--margin-line-color) 79px, var(--margin-line-color) 81px, transparent 81px);
    background-size: 100% 1.2em;
    flex-grow: 1;
    text-align: center;
  }

.ruled-paper .ruled-paper-body {
    background-image: linear-gradient(var(--ruling-line-color) .1em, transparent .1em);
    background-size: 100% 1.5em;
    flex-grow: 8;
    padding-top: .2rem;
    padding-left: 6rem;
    line-height: 1.5;
  }

  .heading-text {
    font-size: 3em;
    width: 90%;
    color: #5271ff;
  }

  .section-1 {
    display: flex;
    flex-direction: column;
    width: 70%;
    align-items: center;
    justify-items: center;
    align-self: center;
    align-content: center;
    justify-content: center;
    justify-self: center;
    margin: 0 auto;
    margin-top: 80px;
  }

  .headline-div {
    display: flex;
    flex-direction: row;
  }

  .notecards-img{
    width: 80%;
  }

  .study-img{
    width: 100%;
  }

  .section-2 {
    display: flex;
    flex-direction: row;
    width: 70%;
    align-items: center;
    justify-items: center;
    align-self: center;
    align-content: center;
    justify-content: center;
    justify-self: center;
    margin: 0 auto;
    justify-content: space-between;
    margin-top: 80px;
    padding-bottom: 100px;
  }

  .journey-div {
    display: flex;
    flex-direction: row;
    margin-top: 60px;
  }

  .journey-div-items {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 2px solid #efc82e;
    margin: 15px;
    height: 220px;
    width: 300px;
    box-shadow: 5px 5px 10px #ddd;
    line-height: 1.5;
  }

  span.box-text {
    margin-top: 20px;
    display: inline-block;
    line-height: 1.5;
  }

  span.box-text-link {
    text-align: center;
    text-decoration: none;
    cursor: pointer;

  }

  .box-link {
    margin: 0 auto;
    
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    color: white;
    background-color: #5271ff;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
  }

  .section-text {
    display: inline-block;
    width: 80%;
    font-size: 1.3em;
    margin-top: 30px;
    line-height: 1.5;
  }

  .section-text-ai {
    display: inline-block;
    width: 80%;
    font-size: 1.3em;
    margin-top: 30px;
    line-height: 1.5;
  }

  .section-text-sub {
    display: inline-block;
    width: 100%;
    font-size: 1.3em;
    margin-top: 30px;
  }

  .start-text {
    font-size: 2.3em;
    color: #5271ff;
  }


  .sign-up-button {
    background: #7ed957; 
    color: white;
    padding: 15px;
    font-size: 1.2em;
    margin-right: 100px;
    border-radius: 10px;
  }

  .sign-up-button a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;

  }


 /* Begin Sub Page Styling for Create */ 
 h1 {
    text-align: center;
    font-size: 50px;
    color: #5271ff;
 }

 .create-card-section {
    display: flex;
    flex-direction: column;
    width: 30%;
    justify-content: center;
    margin: auto;
    margin-top: 60px;
 }

 .create-card-form {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
 }

 .create-card-form label,
 .create-card-form input,
 .create-card-form select {
    margin-bottom: 20px;
    padding-left: 15px;
 }

 .new-subject-container {
    display: flex;
    flex-direction: column;
 }

 .create-card-form input[type="text"],
 .create-card-form select {
    height: 40px;
 }

 .create-card-form textarea {
    height: 120px;
}

.create-card-section .create-card-button {
    background-color: #7ed957; 
    width:100%;
    height: 50px;
    text-align: center;
    padding: 10px;
    color: white;
    margin-top: 30px;
    align-self: flex-end;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
 
    cursor: pointer;
}

.answer-input {
    padding: 15px;
}

.edit-card-section .edit-card-button {
    background-color: #7ed957;
    width:150px;
    height: 50px;
    text-align: center;
    padding: 10px;
    color: white;
    border-radius: 10px;
    align-self: flex-end;
    font-size: 40px;
    font-weight: 600;
    line-height: 30px;
}




/* Edit Card Page */

.edit-card-section{
    margin-top: 50px;
    justify-content: center;

 }


 .edit-card-section {
    display: flex;
    flex-direction: column;
    width: 30%;
    justify-content: center;
    margin: auto;
    margin-top: 60px;
 }

 .edit-card-form {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
 }

 .edit-card-form label,
 .edit-card-form input,
 .edit-card-form select {
    margin-bottom: 20px;
 }

 .edit-card-form input[type="text"],
 .edit-card-form select {
    height: 40px;
    padding-left: 15px;
 }

 .edit-card-form textarea {
    height: 120px;
    padding: 15px;
 
 }



 .edit-card-buttons{
    display: flex;
    flex-direction:row;
    justify-content: space-around;
 
 }

.save-card-button {
    background-color: #7ed957;
    width:150px;
    height: 50px;
    text-align: center;
    padding: 10px;
    color: white;
    border-radius: 10px;
    align-self: flex-end;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 30px;
    margin-top: 30px;
    cursor: pointer;
}

.delete-card-button {
    background-color: #e33d0f;
    width:150px;
    height: 50px;
    text-align: center;
    padding: 10px;
    color: white;
    border-radius: 10px;
    align-self: flex-end;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 30px;
    margin-top: 30px;
    cursor: pointer;
}


/* Review Cards Page */

.review-card-section{
    margin-top: 50px;
    justify-content: center;

 }


 .review-card-section {
    display: flex;
    flex-direction: column;
    width: 80%;
    justify-content: center;
    margin: auto;
    margin-top: 60px;
    
 }

 .review-card-div{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 30px;
    justify-content: space-around;
    align-items: center;
 }

 .review-card-question,
 .review-card-answer{
    width:500px;
    height:300px;
    border: solid 3px #ddd;
    border-radius: 10px;
    padding: 15px;
 }



 .select-review-subject {
    display: flex;
    flex-direction: column;
    width: 30%;
    margin: auto;
    margin-top:20px;
    
 }

 .review-subject-select {
    height: 40px;
    margin-top: 20px;
    padding-left: 15px;
 }





 


.review-card-section .review-card-button {
    background-color: #7ed957;
    width:150px;
    height: 50px;
    text-align: center;
    padding: 10px;
    color: white;
    border-radius: 10px;
    align-self: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    margin-top: 30px;
    cursor: pointer;
}

.review-card-button{
  margin-left: 10px;
  margin-right: 10px;
}

.shuffle-button {
  background-color: #efc82e;
  width:150px;
  height: 50px;
  text-align: center;
  padding: 10px;
  color: white;
  border-radius: 10px;
  align-self: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  margin-top: 30px;
  cursor: pointer;
  border: none;
  margin-left: 10px;
  margin-right: 10px;

}

.review-left, .review-right {
    width: 10%;
}

.material-symbols-outlined {
    font-size: 50px;
}

.review-buttons-section {
  display: flex;
  flex-direction: row;
  margin: 0 auto;
}



.hide {
    display:none;
}


/*  Login Form Page   */

.register-button {
    background-color: #d8af0a;
    color: white;
    width: 300px;
    height: 50px;
    padding: 10px;
    margin: auto;
    margin-top: 30px;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.google-login-button{
    background-color: rgb(70, 61, 240);
    color: white;
    width: 300px;
    height: 50px;
    padding: 10px;
    margin: auto;
    margin-top: 30px;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.log-in-button {
    margin-top: 40px;
    background-color: green;
    color: white;
    width: 300px;
    height: 50px;
    padding: 10px;
    margin: auto;
    margin-top: 30px;
    cursor: pointer;
    border: none;
    font-size: 1em;
}


.login-section {
    display: flex;
    flex-direction: column;
    justify-self: center;
    justify-content: center;
    justify-items: center;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-top: 30px;
    box-shadow: 0px 3px 3px 2px #ddd;
    padding: 60px;
    width: 30%;
    margin-bottom: 60px
    
}

.login-form input {
    height: 50px;
    padding-left: 15px;
}

.login-form label,
.login-form input {
    margin-bottom: 20px;
 
}

.log-in-title {
    margin-top: 30px;
}

.log-in-text{
    font-size: 2em;
}

#forgot-password {
  margin: 0 auto;
  cursor: pointer;
  color: rgb(70, 61, 240);
}



/* Begin Account Page and Subscribe page*/
.manage-account-section {
    display: flex;
    flex-direction: column;
    width: 30%;
    justify-content: center;
    margin: auto;
    margin-top: 60px;
 }

 .account-h1 {
  margin-bottom: 30px;
 }


.subscribe-title{
    margin-bottom: 30px;
}

.product-form{
    display:flex;
    flex-direction: column;
    height: 250px;
    justify-content: space-around;
}

.subscribe-price{
    height: 60px;
    padding-left: 15px;
}

#subscribe-btn{
    background-color: #7ed957; 
    width:30%;
    height: 50px;
    text-align: center;
    padding: 10px;
    color: white;
    margin-top: 30px;
    margin-left: 5px;
    margin-right: 5px;
    align-self: flex-end;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 30px;
    cursor: pointer;
}

.subscribe-page-subscribe-btn{
    background-color: #7ed957; 
    width:100%;
    height: 50px;
    text-align: center;
    padding: 10px;
    color: white;
    margin-top: 30px;
    margin-left: 5px;
    margin-right: 5px;
    align-self: flex-end;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 30px;
    cursor: pointer;
    border: none;
}


#pause-subscription-btn{
    background-color: #d8af0a;
    width:30%;
    height: 50px;
    text-align: center;
    padding: 10px;
    color: white;
    margin-top: 30px;
    margin-left: 5px;
    margin-right: 5px;
    align-self: flex-end;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 30px;
    cursor: pointer;
}

.manage-subscription-btn{
    background-color: #d8af0a;
    border: none;
    width: 100%;
    height: 50px;
    text-align: center;
    padding: 10px;
    color: white;
    margin-top: 30px;
    margin-bottom: 30px;
    align-self: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    
    cursor: pointer;
}

#delete-account-button{
    background-color: #e33d0f; 
    border: none;
    width:100%;
    height: 50px;
    text-align: center;
    padding: 10px;
    color: white;
    margin-top: 30px;
    margin-left: 5px;
    margin-right: 5px;
    align-self: flex-end;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 30px;
    cursor: pointer;
    
}

/* Blog Page */

.blog-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-post {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
}

.blog-post img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-post h3 a {
  font-size: 1.2em;
  margin: 10px 0;
  text-decoration: none;
  color: #5271ff;
}

.blog-post h3 {

  margin: 20px 0;
 
}

.blog-post p {
  font-size: 0.9em;
  color: #555;
}

/* Begin Blog Pages */

.blog-text {
  font-size: 1.3em;
  line-height: 1.5em;
  margin-bottom: 30px;
}

.blog-h1 {
  margin-bottom: 60px;
  color: #4c526c;
}

.blog-h2 {
  margin-bottom: 30px;
  margin-top: 60px;
  color: #5271ff;
  font-size: 2em;
}

.blog-strong{
  padding-left: 60px;
}

.blog-cta {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-items: center;
  align-self: center;
  align-content: center;
  justify-content: center;
  justify-self: center;
  margin: 0 auto;
  justify-content: space-between;
  margin-top: 80px;
  padding-bottom: 100px;
}


/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button */
.dropbtn {
  background-color: transparent; /* Use transparent or a background color */
  border: none;
  cursor: pointer;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9; /* Background color for dropdown */
  min-width: 160px; /* Minimum width of the dropdown */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Box shadow */
  z-index: 1;
  background-color: #eacb4e;
  font-size: 20px;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black; /* Text color */
  padding: 12px 16px; /* Padding */
  text-decoration: none; /* Remove underline */
  display: block; /* Make links block elements */
  background-color: #eacb4e;
  font-size: 20px;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ffe26f; /* Background color on hover */
}

/* Show the dropdown content on hover */
.dropdown:hover .dropdown-content {
  display: block; /* Show the dropdown when hovering over the dropdown */
  background-color: #eacb4e;
}


/* Media Queries for smaller screens */
@media only screen and (max-width: 768px) {

    .header {
      flex-direction: column;
      padding: 20px;
      text-align: center;
    }
  
    .nav {
      flex-direction: column;
      width: 100%;
      margin-right: 0;
      justify-content: center;
      align-items: center;
    }
  
    .nav-items {
      margin: 10px 0;
    }
  
    .title {
      font-size: 40px;
      margin: 10px 0;
    }
  
    .main-index {
      font-size: 30px;
      height: auto;
    }

    .ruled-paper .ruled-paper-body {
        padding-left: 0px;
    }
  
    .banner-text {
      font-size: 40px;
      line-height: 40px;
      text-align:center;
      margin: 0 auto;
      width: 100vw;
      padding-left:0px;
      margin-left: 0 px;
      justify-content: center;
    }
  
    .section-1, .section-2 {
      width: 90%;
      margin-top: 40px;
    }
  
    .section-2 {
      flex-direction: column;
      padding-bottom: 50px;
    }
  
    .notecards-img {
      width: 100%;
    }

    .study-img{
      width: 100%;
    }
  
    .journey-div {
      flex-direction: column;
      width: 90vw;
      margin-top: 30px;
    }
  
    .journey-div-items {
      width: 100%;
      height: auto;
      padding: 15px;
      margin-left:0px;
    }
  
    .heading-text {
      font-size: 2em;
    }
  
    .section-text, .section-text-sub {
      width: 100%;
      font-size: 1.1em;
    }

    .section-text {
        width: 140%;
    }

    .section-text-ai {
      width: 100%;
      font-size: 1.1em;
    }
  
    .start-text {
      font-size: 1.8em;
    }
  
    .sign-up-button {
    
      margin-right: 0;
      padding: 10x;
      margin-top: 30px;
    }
  
    /* Create Card and Edit Card pages */
    .create-card-section, .edit-card-section {
      width: 90%;
    }
  
    .create-card-button, .save-card-button, .delete-card-button {
      width: 100%;
    }

    .save-card-button {
      margin-top: 30px;
      order: 1;
    }

    .delete-card-button {
      order: 2;
      margin-top: 0px;
    }
  
    .edit-card-buttons {
      flex-direction: column;
      align-items: center;
    }
  
    /* Review Cards page */
    .review-card-section {
      width: 90%;
    }
  
    .review-card-div {
      flex-direction: row;
    }
  
    .review-card-question, .review-card-answer {
      width: 100%;
    }

    .select-review-subject {
      width: 90vw;
      margin-top: 50px;
    }
  
    /* Login Form */
    .login-form {
      width: 90%;
      padding: 30px;
    }
  
    .register-button, .google-login-button, .log-in-button {
      width: 100%;
    }
  
    /* Account and Subscription pages */
    .manage-account-section {
      width: 90%;
    }
  
    .manage-subscription-btn, 
    #subscribe-btn, 
    #pause-subscription-btn, 
    #delete-account-button {
      width: 100%;
    }

    /* Blog Page */
    .blog-container {
      grid-template-columns: 1fr; /* One column for mobile */
    }
  
  }

  .or-text {
    margin-top: 30px;
  }


  



  /* Default styles for hamburger menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    align-self: center;
}

.hamburger-menu span {
    height: 4px;
    width: 100%;
    background-color: black;
    border-radius: 10px;
    transition: 0.3s ease;
}

/* Hide navigation by default on small screens */
@media (max-width: 1025px) {
    .header {
        flex-direction: row;
    }

    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100px;
        right: 0;
        width: 100%;
        background-color: var(--bg-color);
        border-top: 3px solid #ff3131;
    }
    
    /* Show hamburger menu on small screens */
    .hamburger-menu {
        display: flex;
        margin-right: 30px;
    }

    .nav.open {
        background-color: #f6df83;
        padding-top:10px;
        padding-bottom:10px;
        width: 50%;
       left: 50%;
       border: none;
        
    }

    .nav-items {
        margin: 10px 0;
        text-align: center;
    }
    
    /* Toggle menu visibility */
    .nav.open {
        display: flex;
    }
}

  

#loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
}
