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

body {
    font-family: "roboto-mono", monospace;
font-weight: 400;
font-style: normal;
    overflow-x: auto;
}

/* fonts */
@font-face {
    font-family: "Lantern";
    src: url(LanterFlies&MapleVF.ttf) format("truetype");
}

@font-face {
    font-family: "Tear";
    src: url(CryMeARiverVF.ttf) format("truetype");
}

@font-face {
    font-family: "forecast";
    src: url(ForecastVF.ttf) format("truetype");
}

@font-face {
    font-family: "FROOT";
    src: url(TootiFrooti-Regular.otf) format("opentype");
}

/* Found Fonts cover */
.cover {
    width: 100vw;
    height: 100vh;
    background-color: #bbe774;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.cover-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.cover-text .word {
    display: flex;
    gap: 10px;
}

.cover-text span {
    font-size: 170px;
    line-height: 1;
    color: #19231f;
}

/* F O U N D....F O N T (Not sure why forecast axis is not animating)*/
.letter-lantern {
    font-family: "Lantern";
    animation: fontGrow 4s ease-in-out infinite alternate;
}

.letter-forecast {
    font-family: "forecast";
    animation: fontPosi 4s ease-in-out infinite alternate;
}

.letter-tear {
    font-family: "Tear";
    animation: fontTear 4s ease-in-out infinite alternate;
}

.letter-tear-100 {
    font-family: "Tear";
    animation: fontTear 4s ease-in-out infinite alternate;
}

/* Main grid */
.main-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100vw;
    height: 100vh;
    gap: 0;
}

.nav-btn {
    font-family: "Tear";
    font-variation-settings: "TEAR" 0;
    font-size: 14px;
    color: #19231f;
    text-decoration: none;
    padding: 15px 30px;
    border: 2px solid #19231f;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 1px;
}

.nav-btn:hover {
    background-color: #19231f;
    color: #bbe774;
}

.nav-left {
    position: absolute;
    left: 50px;
}

.nav-right {
    position: absolute;
    right: 50px;
}

/* box style */
.font-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fbfaf7;
    border: 1px solid #bbe774;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    padding: 20px;
    text-align: center;
}

.font-box:hover {
    background-color: #bbe774;
    color: #19231f;
}

.font-box[data-font="beast"] span {
    font-family: "Lantern";
    font-size: 200px;
    animation: fontGrow 4s ease-in-out infinite alternate;
}

.font-box[data-font="river"] span {
    font-family: "Tear";
    font-size: 110px;
    animation: fontTear 4s ease-in-out infinite alternate;
}

.font-box[data-font="forecast"] span {
    font-family: "forecast";
    font-size: 100px;
    animation: fontTear 4s ease-in-out infinite alternate;
}

.font-box[data-font="frooti"] span {
    font-family: "FROOT";
    font-size: 90px;
}

/* Popup style */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    background-color: white;
    border: 2px solid #bbe774;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.popup.active {
    display: block;
}

.popup-content h2 {
      font-family: "berthold-baskerville-pro", serif;
font-weight: 400;
 color: #bbe774;
font-style: italic;
    margin-bottom: 15px;
    font-size: 24px;
}

.popup-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #19231f;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    color: #bbe774;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    opacity: 0.7;
}

/* text display */
.demo-text {
    font-size: 28px;
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #bbe774;
    background-color: #fbfaf7;
    word-wrap: break-word;
}
#demo-beast {
    font-family: "Lantern";
}

#demo-river {
    font-family: "Tear";
}

#demo-forecast {
    font-family: "forecast";
}

#demo-frooti {
    font-family: "FROOT";
}

/* slider */
.slider-container {
    margin: 20px 0;
}

.slider-container label {
   font-family: "roboto-mono", monospace;
font-weight: 400;
letter-spacing: 2px;
font-style: bold;
    display: block;
    margin-bottom: 5px0;
    color: #19231f;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 12px;
    
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #fbfaf7;
    border: 1px solid #bbe774;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #bbe774;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #bbe774;
    cursor: pointer;
    border: none;
}

/* download*/
.download-btn {
    font-family: "roboto-mono", monospace;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    padding: 12px 20px;
    margin-top: 20px;
    background-color: #bbe774;
    color: #19231f;
    border: 2px solid #bbe774;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.download-btn:hover {
    font-family: "roboto-mono", monospace;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: white;
    color: #bbe774;
}

/* animation - fonts */
@keyframes fontGrow {
    from {
        font-variation-settings: "GROW" 0;
    }
    to {
        font-variation-settings: "GROW" 100;
    }
}

@keyframes fontTear {
    from {
        font-variation-settings: "TEAR" 0;
    }
    to {
        font-variation-settings: "TEAR" 100;
    }
}

@keyframes fontPosi {
    from {
        font-variation-settings: "POSI" 0;
    }
    to {
        font-variation-settings: "POSI" 100;
    }

}

/* Responsive*/
@media (max-width: 1024px) {
    .font-box[data-font="beast"] span {
        font-size: 120px;
    }
    
    .font-box[data-font="river"] span {
        font-size: 70px;
    }
    
    .font-box[data-font="forecast"] span {
        font-size: 70px;
    }
    
    .font-box[data-font="frooti"] span {
        font-size: 60px;
    }
    
    .popup {
        width: 90%;
        max-width: 350px;
    }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .font-box[data-font="beast"] span {
        font-size: 80px;
    }
    
    .font-box[data-font="river"] span {
        font-size: 50px;
    }
    
    .font-box[data-font="forecast"] span {
        font-size: 50px;
    }
    
    .font-box[data-font="frooti"] span {
        font-size: 45px;
    }
    
    .popup {
        width: 90%;
        padding: 20px;
    }
    
    .demo-text {
        font-size: 20px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .font-box[data-font="beast"] span {
        font-size: 50px;
    }
    
    .font-box[data-font="river"] span {
        font-size: 35px;
    }
    
    .font-box[data-font="forecast"] span {
        font-size: 40px;
    }
    
    .font-box[data-font="frooti"] span {
        font-size: 35px;
    }
    
    .popup {
        width: 95%;
        padding: 15px;
    }
    
    .popup-content h2 {
        font-size: 18px;
    }
    
    .popup-content p {
        font-size: 12px;
    }
    
    .demo-text {
        font-size: 16px;
    }
}

/* Responsive navigation buttons */
@media (max-width: 1024px) {
    .nav-btn {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    .nav-left {
        left: 30px;
    }
    
    .nav-right {
        right: 30px;
    }
}

@media (max-width: 768px) {
    .cover {
        flex-direction: column;
        padding: 30px 20px;
        justify-content: center;
        gap: 40px;
    }
    
    .nav-btn {
        position: static;
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .nav-left {
        order: -1;
    }
    
    .nav-right {
        order: 1;
    }
    
    .cover-text {
        order: 0;
    }
}

@media (max-width: 480px) {
    .nav-btn {
        font-size: 12px;
        padding: 8px 16px;
        letter-spacing: 0.5px;
    }
    
    .cover {
        gap: 30px;
        padding: 20px 15px;
    }
}
