@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url("./font/InterVariable.woff2?v=4.0") format("woff2");
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: rgb(255, 255, 255);
    font-family: 'InterVariable',sans-serif;
    font-feature-settings:'cv05' 1,'cv08' 1,'cv10' 1,'cv11' 1,'liga' 1,'calt' 1;
    color: #000000;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100dvh;
    height: auto;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex:0 0 auto;
    padding: 10px;
    width: 100%;
    /* min-height: 100vh; */
    /* max-height: 850px; */
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
    width: 100%;
    flex-shrink: 0;
    position: relative;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    width: 150px;
}

.game-guess {
    display: flex;
    gap: 5px;
    background-color: #dee63f;
    padding:5px 10px;
}

.top span {
    font-weight: 600;
    letter-spacing: -1px;
    font-size: 1.1rem;
}

.damek {
    color: #333333;
    transition: transform 300ms ease, color 200ms ease;
}

.top .damek:hover {
    cursor: pointer;
    color: #fd2e48;
    transform: scale(1.1);
}

.time-section {
    background-color: #373737;
    color: #fff;
    padding: 14px 20px;
    border-radius: 20px;
    width: 100%;
    flex-shrink: 0;
}

.time-label {
    font-size: 1.15rem;
    font-weight: 700;
}

#clock {
    font-size: 2.5rem;
}

.map {
    width: 100%;
    height: 360px;
    flex-shrink: 0;
    border: 8px solid #1766d3;
    border-radius: 20px; 
    position: relative;
}


#map {
    position: absolute;
    top:0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    outline: none;
}

#guess-btn {
    padding: 12px 24px;
    border: none;
    background-color: #1766d3;
    font-family: 'InterVariable',sans-serif;
    color: #fff;
    font-size: 1.3rem;
    letter-spacing: -1px;
    border-radius: 12px;
    width: 100%;
    transition: ease 200ms;
    flex-shrink: 0;
}

#guess-btn:hover {
    background-color: #1c55a3;
    cursor: pointer;
}

#guess-btn:disabled {
    background-color: #a8abc1;
    cursor: not-allowed;
}

.selected {
    font-size: 1rem;
    letter-spacing: -0.25px;
    z-index: 44444;
    color: #ffffff;
    border-top-right-radius: 16px;
    padding: 10px;
    background-color: #1766d3;
    position: absolute;
    left: -4px;
    bottom: 0%;
    z-index:33333;
    text-align: center;
}

.winlose {
    background-color: #333333;
    padding: 20px;
    color: #ffffff;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    z-index: 10000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.winlose h2 {
    font-size: 36px;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.winlose p {
    font-size: 20px;
}

.logo-winlose {
    margin-bottom: 20px;
}

.info-winlose {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #484848;
    border-radius: 20px;
}

.btns {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 380px;
}

.play-again, .btns> a {
    flex:1 1 100px;
    display: flex;
    text-align: center;
}
.play-again, .learn  {
    padding: 10px 15px;
    font-family: 'InterVariable',sans-serif;
    font-feature-settings: inherit;
    border-radius: 6px;
    font-size: 18px;
    transition: 200ms ease;
    border: none;
    color: #fff;
    letter-spacing: -0.5px;
    width: 100%;
    justify-content: center;
    align-items: center;
}


a {
    text-decoration: none;
    color: #ffffff;
}

.learn {
    background-color: #3080ed;
}

a:has(.learn){
    display: flex;
}

.learn:hover {
    background-color: #1c55a3;
    cursor: pointer;
}




.pupil {
    transform-origin: center;
}

.play-again:hover {
    cursor: pointer;
}

.win {
    border-color: #0bb84a !important;
}

.win .play-again {
    background-color: #0bb84a;
}

.win .play-again:hover {
    background-color: #078937;
}

.lose {
    border-color: #cc281d !important;
}

.lose .play-again {
    background-color: #cc281d;
}

.lose .play-again:hover {
    background-color: #8d1911;
}

.hidden {
    display: none !important;
}

.popup-container {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    width: calc(100% - 50px);
    gap: 8px;
    z-index: 999999999;
}

.popup{
    background-color: #3080ed;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'InterVariable',sans-serif;
    font-size: 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    pointer-events: auto;
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
    transition: all 150ms cubic-bezier(0.39, 0.575, 0.565, 1);
}

.popup.fade{
    opacity: 1;
    transform: scale(1);
}

.popup.hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.95);
}

.guess-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
    margin-top: 5px;
    background-color: #eceeff;
    color: #ffffff;
    padding: 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.guess-history {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 5px;
    align-items: center;
}

.guess-history p{
    font-weight: 400;
    font-style: italic;
    color: #093164;
    font-size: 0.9rem;
}

.guess-history-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3f4451;
    color: #ffffff;
    padding: 10px 20px;
    width: 100%;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}


.separator {
    padding: 0 10px;
    margin-top: 10px;
}


.info-container {
    margin-top: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.info-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.info-text h3 {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 5px;
}

.info-text p {
    font-size: 1.1rem;
    /* color: #555; */
    margin-bottom: 20px;
}

.timezone-map {
    width: 100%;
    height: 300px;
    flex-shrink: 0;
    border-radius: 20px; 
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    position: relative;
}

.timezone-map p {
    position: absolute;
    transform: rotate(90deg);
    font-size:2.5rem;
    font-weight: 600;
    top:35%;
    right: -16.4%;
    color: #1c55a3;
    letter-spacing: -0.8px;    
    z-index: 9999;
}

.timezone-map span {
    color: #555555;
    font-size: 0.85rem;
}
.summary-graphic {
    position: relative;
    margin-top: 20px;
    height: 100%;
}

.summary-img {
    width: 100%;
}

.summary-txt {
    position: absolute;
    transform: rotate(270deg);
    font-size:2.5rem !important;
    font-weight: 600;
    top:40%;
    left: -19.3%;
    color: #1c55a3 !important;
    letter-spacing: -0.8px;    
    z-index: 9999;
}

.info {
    display: flex;
    align-items: center;
    gap: 25px;
    letter-spacing: -0.5px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.info-head {
    font-size: 3rem;
    font-style: italic;  
    font-weight: 800;
}

.info-subhead {
    font-size: 1.4rem;
    line-height: 95%;
    font-weight: 500;
    color: #333333;
}

.info-para {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.day-night-img {
    margin-top: 20px;
}

.day-night {
    margin-bottom: 50px !important;
}

.earth-spin {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
}

.spin-info p {
    color: #000000;
    font-size: 1.1rem;
}

.greens {
    color: #129147;
}

.info-header {
    text-align: left !important;
    color: #484848;
    font-style: italic;
    font-size: 1.3rem !important;
}

.info-soln {
    font-size: 1.1rem !important;
    margin: 0 !important;
}

.info-container a {
    color: #3080ed !important;
    border-bottom: 2px dotted;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.calcn-info{
    font-size: 1.1rem;
    margin-top: 20px;
}

.calcn {
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    gap: 15px;
    font-size: 1.1rem;
}

.ans {
    font-weight: 500;
    font-size: 1.5rem !important;
}

.east-west {
    display: flex;
    align-items: stretch;
    padding: 0 !important;
    font-size: 1rem;
    border-color: #1c55a3 !important;
    background-color: #3080ed !important;
    overflow: hidden;
}

.east-west > * {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px 10px;
    color: #ffffff;
    text-align: center;
}

.utc-txt {
    background-color: #3080ed;
    flex: 0.5;
    font-size: 1.2rem;
    font-weight: 700;
}
.arrow {
    background-color: #3080ed;
    flex: 0.5;
    font-weight: 800;
}

.east, .west {
    flex-direction: column;
    background-color: #1c55a3 !important;
    flex: 3;
}

.east-west p {
    margin: 0 !important;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    margin-top: 20px;
}
.earth-gif {
    width: 200px;
    margin: 25px 0px;
}


#chartdiv {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background-color: #2e7eea;
}

.utc {
    display: flex;
    flex-direction: column;
}

.red-txt {
    color: #fd2e48;
}

.nutshell {
    display: none;
}

.exceptions {
    background: #ffffff;
    border: 4px solid #093164;
    border-radius: 20px;
    margin-bottom: 20px;
    padding: 20px;
}

.exceptions h3 {
    font-size: 1.5rem;
    color: #093164;
}
.exceptions .info-p {
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: normal;
    color: #555555;
}

ul {
    padding-left: 20px;
}

.nutshell-bubble-from {
    display: none;
}

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    margin: 30px 0;
    color: #333333;
    gap: 5px;
}

.footer a{
    color: #3080ed;
    border-bottom: 2px dotted;
    font-weight: 600;
    transition: 300ms ease;
}

.footer a:hover {
    color: #fd2e48
}

.credits {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 10px;
    color: #666666;
}

.credits a {
    border: none;
    color: #666666;
}

@media screen and (max-width: 768px){
    .top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 10px;
        border-bottom: 2px solid #000;
        width: 100%;
    }

    .logo {
        position: static;
        transform: none;
        font-weight: 800;
        letter-spacing: -1px;
        font-size: 2.1rem;
    }

    .game-guess {
        display: flex;
        gap: 5px;
        background-color: #dee63f;
        padding:5px 10px;
    }

    .damek {
        display: none;
    }

    .top span {
        font-weight: 600;
        letter-spacing: -1px;
        font-size: 1.1rem;
    }
    
    .time-section {
        background-color: #373737;
        color: #fff;
        padding: 12px 16px;
        border-radius: 20px;
        width: 100%;
        flex-shrink: 0;
    }

    .time-section span {
        font-size: 1rem;
    }

    .map {
        height: 370px;
    }

    #clock {
        font-size: 2.5rem;
    }

    .timezone-map p {
        display: none;        
    }

    .summary-txt {
        display: none;
    }

    .info {
        display: flex;
        align-items: center;
        gap: 20px;
        letter-spacing: -0.5px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .info-head {
        font-size: 2.5rem;
        font-style: italic;  
        font-weight: 800;
    }

    .ans {
        font-size: 1.2rem !important;
    }

    .info-subhead {
        font-size: 1.2rem;
        line-height: 95%;
        font-weight: 500;
        color: #333333;
    }

    .info-para {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .earth-gif {
        width: 120px;
        margin-right: 20px;
    }

    .day-night-img {
        width: 100%;
    }

    .earth-spin{
        gap: 0;
        margin-top: 0px;
        margin-bottom: 30px;
    } 

    .east-west {
        display: none;
    }
}
