@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@200;300;400;500&display=swap');
@font-face {
    font-family: 'Heavitas';
    src: url(../fonts/Heavitas.ttf);
}
@font-face {
    font-family: 'Roboto Regular';
    src: url(../fonts/Roboto-Regular.ttf);
}

html{
    background-color: black;
    background-image: url(../images/very_darkened.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    font-family: 'Heavitas', cursive;
    font-size: 1.3rem;
    color: #fff;
    user-select: none;
}

.containerHome{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.containerHome .inputAnswer{
    width: 250px;
    height: 30px;
    padding: 10px;
    text-align: center;
    font-size: 32px;
    font-family: 'Barlow Condensed', sans-serif;
    color: #fff;
    border: 0;
    margin-top: 20px;
    margin-left: 20px;
    background-color: transparent;
    transition: 0.5s;
}

.containerHome .inputAnswer::placeholder{
    color: #dfdfdf;
}

.containerHome h4{
    text-align: center;
    font-family: 'Heavitas', cursive;
    font-weight: 400;
    margin-bottom: 10px;
}

.map-disclaimer{
    max-width: 360px;
    margin: 0 14px 12px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 186, 61, 0.7);
    border-radius: 4px;
    background: rgba(91, 45, 0, 0.72);
    color: #ffd978;
    font-family: 'Roboto Regular', Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    box-sizing: border-box;
}

.logo{
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img{
    width: 500px;
    height: 250px;
    transition: 0.25s;
}

.logo img:hover{
    transform: scale(103%);
}

.map-panel{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 360px;
    max-width: calc(100vw - 28px);
    height: 238px;
    padding: 14px;
    background-color: rgb(26, 26, 26);
    border: 2px solid black;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.map-frame{
    width: 100%;
    height: 182px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    clip-path: inset(0 round 12px);
}

#map-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(5.5);
    transform-origin: 50% 50%;
    transition: transform 0.55s ease;
    display: block;
    border-radius: 12px;
}

.survName{
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
}

#mapRealmHintDiv{
    display: block;
    text-align: center;
    margin-top: 10px;
    min-height: 18px;
}

ul{
    list-style: none;
}

form{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 340px;
    max-width: calc(100vw - 28px);
}

.list{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 100%;
    padding-left: 0;
    margin: 0;
}

.list-items{
    cursor: pointer;
    width: 300px;
    min-height: 42px;
    font-size: 20px;
    font-family: 'Roboto Regular', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-synthesis: none;
    background-color: #2c2c2c;
    color: #fff;
    text-align: left;
    padding: 8px 10px;
    margin: 1px;
    border: 1px solid black;
    border-radius: 5px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.list-items.active,
.list-items:hover{
    background-color: #1a1a1a;
}

.tekst-lista{
    font-size: 21px;
    font-family: 'Roboto Regular', Arial, Helvetica, sans-serif;
    line-height: 1.1;
    width: 100%;
    text-align: center;
}

.submitBtn{
    cursor: pointer;
    display: inline-block;
    background-color: transparent;
    color: #fff;
    border: 0;
    font-size: 32px;
    margin-left: 5px;
    transition: 0.3s;
}

.submitBtn:hover{
    font-size: 36px;
}

#mapLoadDiv{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

#mapLoad{
    width: 100%;
    height: auto;
}

#sve{
    visibility: hidden;
}

#map-count,
#map-count-text {
    font-size: 17px;
    font-family: 'Friz Quadrata Std', 'Mobilo', 'Helvetica', 'Arial', sans-serif;
    display: inline-block;
    margin: 0;
    padding-bottom: 10px;
    vertical-align: middle;
}

#map-count{
    font-size: 16px;
    color: yellow;
}

#history-holder{
    margin: 42px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-result{
    display: none;
    width: 320px;
    max-width: calc(100vw - 28px);
    background-color: rgb(26, 26, 26);
    border: 2px solid black;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.map-result.certo{
    color: #48d96f;
}

.map-title{
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
    font-size: 26px;
    line-height: 1.18;
    margin: 18px 16px 8px;
}

.map-realm{
    font-family: 'Barlow Condensed', sans-serif;
    color: #ddd;
    font-size: 21px;
    line-height: 1.2;
    margin: 0 16px 16px;
}

#map-result-img{
    width: 280px;
    max-width: calc(100% - 32px);
    height: auto;
    display: block;
    margin: 0 auto 18px;
    border-radius: 8px;
}

#history-holder .history img.map-history-img{
    width: 90px !important;
    height: 50px !important;
    max-width: 90px !important;
    max-height: 50px !important;
    object-fit: cover !important;
    display: block;
    border-radius: 4px !important;
    clip-path: inset(0 round 4px);
    overflow: hidden;
}

#nextgame{
    display: none;
    flex-direction: column;
    align-items: center;
    width: 300px;
    min-height: 220px;
    background-color: rgb(26, 26, 26);
    margin: auto auto;
    padding-bottom: 16px;
    font-family: Arial, Helvetica, sans-serif;
    border-top: 4px solid black;
    color: white;
    box-sizing: border-box;
}

.nextgame{
    border-radius: 15px;
    margin: 1px;
}

#nextgame-ts-text,
#nextgame-timestamp{
    font-size: 20px;
    margin-top: 20px;
}

#timer-separator {
    width: 53%;
    margin: 1rem auto 0;
    border-left: none;
    border-top: none;
    border-right: none;
    border-bottom: 2px solid #fff;
}

#nextgame-text{
    font-size: 25px;
    font-weight: bold;
    margin-top: 7px;
    margin-bottom: 2px;
}

.map-mode-rating{
    display: none;
    width: calc(100% - 28px);
    margin: 13px auto 4px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.24);
    color: #fff;
    box-sizing: border-box;
}

.map-mode-rating-title{
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
}

.map-mode-rating-buttons{
    display: flex;
    justify-content: center;
    gap: 7px;
}

.map-mode-rating-btn{
    width: 34px;
    height: 34px;
    border: 1px solid #777;
    border-radius: 6px;
    background: #303030;
    color: #fff;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.map-mode-rating-btn:hover,
.map-mode-rating-btn:focus{
    background: #fff;
    border-color: #fff;
    color: #202020;
}

.map-mode-rating-btn.selected,
.map-mode-rating-btn:disabled.selected{
    background: #48d96f;
    border-color: #48d96f;
    color: #111;
}

.map-mode-rating-btn:disabled{
    cursor: default;
    opacity: 0.72;
}

.map-mode-rating-status{
    min-height: 16px;
    margin-top: 7px;
    color: #cfcfcf;
    font-size: 12px;
}

.map-mode-rating-status.error{
    color: #ff8585;
}

.map-mode-rating-feedback{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 7px;
}

.map-mode-rating-feedback-label{
    color: #cfcfcf;
    font-size: 13px;
    font-weight: 700;
}

.map-mode-rating-discord{
    margin: 0;
}

#nextgame input {
    background: gray;
    border: 1px solid gray;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.1) 1px 2px 4px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: nunito,roboto,proxima-nova,"proxima nova",sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 16px;
    min-height: 40px;
    padding: 12px 14px;
    margin-top: 13px;
    outline: 0;
    text-align: center;
    text-rendering: geometricprecision;
    text-transform: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
}

#nextgame input:hover,
#nextgame input:active {
    background-color: initial;
    background-position: 0 0;
    color: gray;
}

#nextgame input:active {
    opacity: .5;
}

#reklama{
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%) scale(.6);
    transform-origin: right center;
    width: 300px;
    max-width: none;
    background-color: #000;
    z-index: 20;
    pointer-events: auto;
}

#reklama2{
    position: fixed;
    top: 50%;
    left: 24px;
    transform: translateY(-50%) scale(.6);
    transform-origin: left center;
    width: 300px;
    max-width: none;
    background-color: #000;
    z-index: 20;
    pointer-events: auto;
}

#pp-div{
    margin-top: 10px;
    padding: 10px 0;
}

#pp-tekst,
#pp{
    text-align: center;
    color: white;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}

#pp-tekst{
    font-size: 13px;
}

#pp{
    font-size: 10px;
    padding-top: 3px;
}

#pp-a{
    text-decoration: none;
    color: white;
}

@media(max-width:990px){
    #reklama,
    #reklama2{
        display: none;
    }
}

@media (max-width: 500px){
    .containerHome{
        max-width: 500px;
    }
    .logo img{
        max-width: 375px;
        max-height: 175px;
    }
    .map-panel{
        width: 320px;
        height: 218px;
        padding: 12px;
    }
    .map-frame{
        height: 166px;
    }
    .list-items{
        width: 280px;
    }
}
