@font-face {
    font-family: 'DryWhiteboardMarker';
    src: url('../fonts/DryWhiteboardMarker-Regular.ttf') format('truetype');
}

header {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.5); 
    border-radius: 0px 0px 8px 8px; 
}

body {
    font-family: 'DryWhiteboardMarker', cursive;
    letter-spacing: -1px; 
    font-size: larger;
    background-color: #79ceff;
    background-image: url('../images/bg.webp');
    background-size: cover; 
    background-position: center; 
    max-width: 1040px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
}

.social-links img{
    max-width: 50px;
}

.split-links {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.home-links {
    width: 45%;
}

h2  {
    font-size: 1.2rem;
    font-variant-caps: small-caps;
}

.modal {
    display: none;
    position: fixed;
    overflow-x: hidden;
    overflow-y:auto;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    outline: 0;
}

.modal-content {
    background-color: white;
    max-width: 55%;
    margin: 10vh auto;
    padding: 20px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
}

.modal-content img{
    max-width: 300px;
    max-height: 250px;
    object-fit: scale-down;
}

.modal-title{
    font-weight:bolder;
    font-size: 1.2rem;
}

.separator {
    border-bottom:1px solid #EBC392;
    margin: 40px;
}

/* Fade-in effet */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
    text-rendering: optimizeLegibility; 
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

#terms-button {
    text-decoration: underline;
    padding: 10px 10px;
    cursor: pointer;
}

/* menu */

.top-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: right;
    padding: 1em 3em 1em 1em;

}

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
.menu > li {
    padding: 0px;
    margin-left: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
}

.menu-link, .cleanlink {
    text-decoration: none;
    color:#231F13
}

li.active {
    color:#231F13;
    border-bottom:#231F13 1px solid;
    padding-bottom: 5px;

}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: right;
    padding: 1em;
}
 
#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #231F13;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: '';
  margin-top: -8px;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

/* Home */

#home{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-content: center;
    text-align: center;
    margin: 10px 10px 0px 10px;
}

.intro-text{
    margin: 0px auto;
    width: 35%;
    background-color: rgba(255, 255, 255, 0.4); 
    padding: 20px;
    border-radius: 8px; 
}

/* Twitter generator */

.tweet-gen{
    width: 35%;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-content: center;
    background-color: rgba(255, 255, 255, 0.4); 
    padding: 20px; 
    margin: 0px auto;
}

#image-container img  {
    width: 90%;
    max-height: 250px;
    object-fit: scale-down;
    border-radius: 8px;
    box-sizing: border-box; /* Ensures padding and border are included in the width */
}

#tweet-output {
    box-sizing: border-box; /* Ensures padding and border are included in the width */

}

#tweet-all-buttons {
    display: flex;
    flex-direction: column;
}

#tweet-two-buttons {
    display: flex;
    flex-direction: row;
}

#tweet-output, button {
    background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid #e1e8ed;
    border-radius: 15px;
    padding: 10px;
    margin: 5px 0px;
    text-align: center;
}

#tweet-output {
    font-size: 16px;
    color: #14171a;
}

button {
    background-color: #78baeb;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    margin: 3px 0; /* Adds a little space between buttons */
    width: 45%;
}

#publish-twitter-button {
    width: 92%;
}

button:hover {
    background-color: #3d9ae3;
}

button:disabled {
    background-color: #acd5f2;
    cursor: default;
}

footer {
    background-color: rgba(255, 255, 255, 0.75);
    text-align: center;
    width: 100%; /* make it full width */
    margin: 0 auto;
    border-radius: 8px 8px 0px 0px;
    position: relative; /* Fixed at the bottom */
    bottom: 0; /* At the bottom */
    left: 0; /* Align to the left */
    box-sizing: border-box; /* Include padding and border in the width */
    z-index: 10; /* Make sure it stacks on top of other content */
}

.copyright{
    margin: 10px auto 0px auto;
    padding: 10px;
}

@media screen and (max-width: 768px) {
    body {
        background-attachment: fixed; /* Ensure the background image stays fixed on mobile */
    }
    .modal-content img{
        max-width: 90%;    
    }

    #home {
        flex-direction: column;
    }

    body {
        font-size: 18px; /* Decrease the font size for better readability on smaller screens */
    }

    .top-nav {
        padding: 0.5em 1em; /* Adjust padding for the navigation menu */
    }

    .menu-button-container {
        display: flex;
      }

    .menu {
        position: absolute;
        top: 0;
        margin-top: 6em;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    #menu-toggle ~ .menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    #menu-toggle:checked ~ .menu li {
        border: 1px solid #FDFCE8;
        height: 1.5em;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    .menu > li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: #231F13;
        background-color: #EBC392;
        align-items: center;
    }
    .menu > li:not(:last-child) {
        border-bottom: 1px solid #444;
    }


    #home {
        flex-direction: column; /* Adjust layout for smaller screens */
    }

    .intro-text {
        text-align: center; /* Center align text */
        margin: auto;
        width: 90%;
    }

    .tweet-gen {
        max-width: 90%; /* Adjust width for better fit on smaller screens */
        margin: 1em auto; /* Add spacing */
        width: 90%;
    }

    #image-container img {
        width: 100%; /* Make images responsive */
        height: auto; /* Maintain aspect ratio */
    }

    #tweet-output {
        width: 100%; /* Make tweet output and buttons full width */
    }

    button {
        font-size: 18px; /* Increase button font size for better readability */
        padding: 12px 20px; /* Adjust button padding */
        margin-bottom: 1em; /* Add spacing between buttons */
    }

.footer-content {
    display: inline-block;
    margin: -10px auto;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
    display: block; /* Afficher le footer lorsque la classe active est ajoutée */
}


    /* Add a wrapper around the main content */
    .content-wrapper {
        overflow-y: auto; /* Add scrollbars when content overflows */
    }
}
