/* styles.css */
body {
    font-family: Arial, sans-serif;
    background: rgb(238,174,202);
    background: radial-gradient(circle, rgba(238,174,202,1) 0%, rgba(148,187,233,1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    margin: 0;
}


.container {
/*     background-color: #2c2c2c; */
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-sizing: border-box;
}

.wrapper {
    padding:10px ;
}

.title-container {
    width: 100%;
    height: auto ;
    display:flex ;
    flex-direction: column ;
    justify-content: center ;
    align-items: center ;
    padding:20px auto ;
    margin-top:40px ;
/*     border: 1px solid #ffffff ; */
/*      background-color: #8aff86; */
}

.container > .title-container > .h1-container {
    width: auto;
    height: 50px ;
    display:flex ;
    flex-direction: column ;
    justify-content: center ;
    align-items: center ;
    padding:10px ;
    border: 1px solid #ffffffb2  ;
    border-radius: 5px ;
}

h1 {
    font-size: 1.5em ;
    margin-bottom: 20px;
    line-height: 1.2em ;
    color:#f13218 ;
}

h2 {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

h3 {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

p.englsh-subtitle {
    color:#ffffff ;
    font-size: 0.6em ;
    letter-spacing: 0.5em ;
    margin-top: -4.5em ;
    margin-bottom: 4.5em ;
    z-index: 100 ;
}

.usage-container {
    width: 100%;
    height: 4em ;
    display:flex ;
    flex-direction: column ;
    justify-content: center ;
    align-items: center ;
    padding:40px auto ;
/*     background-color: #2c2c2c; */
    margin-top: 30px ;
    margin-bottom: 60px ;
}

p.usage-text {
    color:#ffffff ;
    font-size: 0.9em ;
    letter-spacing: 0.2em ;
    text-shadow: 1px 3px 9px rgba(44,44,44,0.64);
}

textarea {
    width: 100%;
    min-height: 100px;
    margin-bottom: 20px;
    padding: 18px;
    box-sizing: border-box;
    border: 3px solid #ffffff;
    border-radius: 5px;
    resize: none;
    background-color: #ffffff80;
    color: #555555;
    font-size:medium ;
    overflow: hidden;
}

textarea#outputText {
    height: auto;
    overflow:auto;
    margin-top: 60px;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

button {
    width: 48%;
    padding: 20px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Zen Kurenaido", sans-serif;
    font-size:1em ;
}

button:hover {
    background-color: #2c2c2c;
}

button > i {
    margin-right: 10px;
    animation: fuwafuwa 3s ease-in-out infinite alternate;
    display: inline-block;
    transition: 3.0s ease-in-out;
}

@keyframes fuwafuwa {
    0% {
      transform:translate(0, 0) rotate(-1deg);
    }
    50% {
      transform:translate(0, -3px) rotate(0deg);
    }
    100% {
      transform:translate(0, 0) rotate(1deg);
    }
  }

#encryptButton {
    background-color: #352323;
    background-image:url("./24218814.png") ;
    background-size:auto ;
    background-repeat: repeat;
    background-blend-mode:darken ;
    color:#ffffff ;
    margin-bottom: 20px;
}

#decryptButton {
    background-color: #352323;
    background-image:url("./24218814.png") ;
    background-size:auto ;
    background-repeat: repeat;
    background-blend-mode:darken ;
    color:#ffffff ;
    margin-bottom: 20px;
}

.extra-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

#copyButton {
    width: 48%;
    padding: 10px;
    background-color: #352323;
    background-image:url("./24218814.png") ;
    background-size:auto ;
    background-repeat: repeat;
    background-blend-mode:darken;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 20px 10px;
}

#copyButton:hover {
    background-color: #2c2c2c;
}

#clearButton {
    width: 48%;
    padding: 10px;
    background-color: #352323;
    background-image:url("./24218814.png") ;
    background-size:auto ;
    background-repeat: repeat;
    background-blend-mode:darken;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 20px 10px;
}

#clearButton:hover {
    background-color: #2c2c2c;
}

/* Google Fonts */

/* <uniquifier>: Use a unique and descriptive class name
/* <weight>: Use a value from 300 to 900 */

.red-hat-display-subtitle {
  font-family: "Red Hat Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.silkscreen-regular {
    font-family: "Silkscreen", sans-serif;
    font-weight: 400;
    font-style: normal;
}
  
.silkscreen-bold {
    font-family: "Silkscreen", sans-serif;
    font-weight: 700;
    font-style: normal;
}
  
.dotgothic16-regular {
    font-family: "DotGothic16", sans-serif;
    font-weight: 400;
    font-style: normal;
}
  
.codystar-light {
    font-family: "Codystar", sans-serif;
    font-weight: 300;
    font-style: normal;
}
  
.codystar-regular {
    font-family: "Codystar", sans-serif;
    font-weight: 400;
    font-style: normal;
}
  
.yuji-boku-regular {
    font-family: "Yuji Boku", serif;
    font-weight: 400;
    font-style: normal;
}

.zen-kurenaido-regular {
    font-family: "Zen Kurenaido", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* <weight>: Use a value from 100 to 900 */

.noto-sans-jp {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.red {
    color:#ffe2fe ;
}

.orange {
    color:#ff9e65 ;
}

.yellow {
    color:#ffcc5d ;
}

.blue {
    color:#d4eaff ;
}

/*========= Footer ===============*/

.footer {
    width:auto ;
}

p.footer-text > a > i {
    margin-top:50px ;
    margin-bottom: 50px;
    color:#2c2c2c ;
    font-size: 2em ;
}

.ad-text {
    color:#2c2c2c ;
    font-size: 1em ;
}

.ad-text > a {
    color:#2c2c2c ;
    text-decoration: none;
}

.ad-container {
    width: auto;
    height: auto ;
    display:flex ;
    flex-direction: column ;
    justify-content: center ;
    align-items: center ;
    background-color: #ffffff80;
    border: 3px solid #ffffff ;
    border-radius: 5px;
    padding-bottom: 10px ;
    margin: 20px auto ;
}

@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    textarea {
        width: 100%;
        height: 100px;
    }

    .buttons, .extra-buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
        margin-bottom: 10px;
    }

    #copyButton, #clearButton {
        width: 100%;
    }
}

/* animation */

.fadeIn {
    animation-name: fadeInAnime;
    animation-fill-mode:backwards;
    animation-duration:3s;
    animation-iteration-count:1;
    animation-timing-function:ease;
    animation-delay: 1.5s;
    animation-direction:normal;
    }
    
    
    @keyframes fadeInAnime{
      0% {
        opacity: 0;
      }
    
      100% {
        opacity: 1;
      }
    }

/*========= Appear with glow ===============*/

.glowAnime span{opacity: 0;}

/* Change opacity and text-shadow */
.glowAnime.glow span {
    animation:glow_anime_on 1s ease-out forwards ;
}

@keyframes glow_anime_on{
  0% { opacity:0; text-shadow: 0 0 0 #fff,0 0 0 #fff;}
  50% { opacity:1;text-shadow: 0 0 10px #fff,0 0 15px #fff; }
  100% { opacity:1; text-shadow: 0 0 0 #fff,0 0 0 #fff;}
}

/*========= loading ===============*/
#loadingOverlay {
    position: fixed; /* Fixed to cover the entire screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(54, 54, 54, 0.904); /* Semi-transparent black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Display in the forefront */
    display: none; /* Initially hidden */
}

#loadingOverlay i {
    font-size: 3em; /* Increase icon size */
    color: #ffffff; /* Set to white */
    margin-right: 10px;
}


#loadingOverlay span {
    font-size: 1.5em;
    color: #ffffff;
}

/* spinning icon */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-icon {
    display: inline-block;
    animation: spin 2s linear infinite;
}


/* =================== WINNERS =================== */
/* =================== ABOUT =================== */

.subtitle-container {
    width: 100%;
    height: 4em ;
    display:flex ;
    flex-direction: column ;
    justify-content: center ;
    align-items: center ;
    padding:40px auto ;
/*     background-color: #2c2c2c; */
    margin-top: 30px ;
    margin-bottom: 30px ;
}

p.usage-text {
    color:#ffffff ;
    font-size: 0.9em ;
    letter-spacing: 0.2em ;
    text-shadow: 1px 3px 9px rgba(44,44,44,0.64);
}

.winner-container,
.about-container {
    background-color: #ffffff77;
    border:#ffffff solid 3px ;
    border-radius: 5px;
    padding-top:40px ;
    padding-bottom:20px ;
    padding-left:10px ;
    padding-right:10px ;
    margin-bottom:40px ;
}

span.winner-date-title,
span.winner-answer-title,
span.winner-prize-title,
span.winner-user-title {
    display:block ;
    padding:10px ;
    color:#ffffff ;
    background-color: #352323;
    background-image:url("./24218814.png") ;
    background-size:auto ;
    background-repeat: repeat;
    background-blend-mode:darken;
    border-radius: 5px;
    font-family: "Zen Kurenaido", sans-serif;
    font-weight: 400;
    font-style: normal;
}

span.winner-date,
span.winner-answer,
span.winner-prize,
span.winner-user {
    display:block ;
    margin:15px auto 20px ;
    font-size:large;
    color:#2c2c2c ;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

span.winner-user a {
    display:inline-block;
    font-size:x-large;
    color:#2c2c2c ;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.winner-guide,
.about-guide {
    background-color: #1c122e;
    border:#ffffff solid 3px ;
    border-radius: 5px;
    padding:20px;

}

.winner-guide h2,
.about-guide h2 {
    color:#ffffff ;
    line-height: 0.8em;
    font-family: "Zen Kurenaido", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.winner-guide p, li,
.about-guide p, li,
.about-guide dl {
    text-align: left;
    font-size:0.9em ;
    color:#ffffff ;
    font-family: "Zen Kurenaido", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.winner-guide ol,
.about-guide ol,
.about-guide ul,
.about-guide dl {
    padding:20px ;
}

.winner-guide li,
.about-guide li {
    margin-bottom:25px ;
    line-height: 2em;
}

.about-guide li {
    margin-left:15px ;
}

.marker-wide-stripe-pink {
    background: repeating-linear-gradient(-45deg, 
        transparent 0 2px, 
        #f13218 2px 4px
    );
    font-weight: bold;
    line-height: 0.5em;
  }
  [class^=marker-wide-stripe-] {
    background-size: 60% .3em;
    padding-bottom: .1em;
    background-position: center center;
    background-repeat: no-repeat;
}

.about-guide h3 {
    margin-top:40px ;
    text-align: left ;
    font-size:1.2em ;
    color:#ffffff ;
    font-family: "Zen Kurenaido", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.about-guide dl dt {
    padding:0px ;
    margin:15px 0 ;
}

.about-guide dl dd {
    margin:15px 0 40px ;
}


/* =================== hamburger menu =================== */

.hamburger-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-icon span {
    width: 30px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s linear;
}

.hamburger-icon:active,
.hamburger-icon:hover {
    background:transparent ;
}

.menu-items {
    position: fixed;
    z-index: 999;
    top: 0;
    right: -400px;
    width: 300px;
    height: 100%;
    background-color: #352323;
    background-image:url("./24218814.png") ;
    background-size:auto ;
    background-repeat: repeat;
    background-blend-mode:darken;
    padding: 50px 20px;
    transition: right 0.3s ease-in-out;
}

.menu-items.active {
    right: 0;
}

.menu-items ul {
    list-style-type: none;
    padding: 0;
}

.menu-items ul li {
    margin-bottom: 10px;
}

.menu-items ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.8em;
    font-family: "Noto Sans JP", sans-serif;
}