*{
    box-sizing: border-box;
}

html, body, h1, h2, h3, h4, h5, h6{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

h1, h2, h3, h4, h5, h6{
    color: white;
}

@font-face {
    font-family: space_font;
    src: url('../fonts/SPACE.ttf');
}
  
h1 {
    font-family: space_font;
    font-size: 3.5em;
}

h2{
    font-family: space_font;
    font-size: 2em;
}

.space {
    font-family: space_font !important;
}

body{
    min-height: 100vh;

    background-image: url('../img/background3.jpg');
    background-size:cover;
    background-repeat: no-repeat;
    background-position: center;

    background-blend-mode: darken;
    background-color: rgba(0, 0, 0, 0.5);
}

input{
    margin: 5px 0;
    width: 200px;
    height: 40px;
    background-color: orange;
    color: black;
    font-size: 1.1em;
    font-weight: bold;;
    border-radius: 20px;
    border: 2px solid black;
    min-width:fit-content;

}

select{
    margin: 5px 0;
    width: 190px;
    height: 40px;
    background-color: white;
    color: black;
    font-size: 1.1em;
    font-weight: bold;;
    border-radius: 1px;
    border: 2px solid black;
}

.button-blue{
    background-color: #00f;
    color: #fff;
}

.button-red{
    background-color: #f00;
    color: #fff;
}

.border-blue{
    border: 6px solid #00f;
    border-radius: 100px;
}

.border-red{
    border: 6px solid #f00;
    border-radius: 100px;
}

.delivering-form{
    display: grid;
    grid-template-columns: auto 50px 50px 35px;
    grid-template-rows: 1fr;
}

.delivering-form .form-text{
    border: 0;
    background-color: transparent;
    display: inline;
    color: white;
    font-size: 1.1em;
    display: inline;
}

input.tinybutton{
    display: inline !important;
    width: 45px !important;
}

/* Main Page */
.main-page{
    display: grid;
    grid-template-columns: calc((100vw - 100vh)) 100vh;
    grid-template-rows: 100vh;
}

.mainLeft{
    width: calc((100vw - 100vh) - 100px) ;
    color: #fff;
    display: inline;
}

.main-header{
    display: grid;
    grid-template-columns: 170px auto;
    grid-template-rows: 250px;
    margin: 10% 0 30px 10%;
    border-bottom: 1px solid #fff;
}

.main-header .post-logo{
    line-height: 380px;
}

.main-header .post-logo img{
    width: 92%;
    border-radius: 50%;
}

.team-scoring{
    margin-top: 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-left: 10%;
}

.team-scoring div{
    text-align: center;
    width: 150px;
    height: 150px;
    margin: auto;
}

.teamship-box-scoring{
    font-size: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.teamship-box-scoring img{
    position: relative;
    max-height: 150px;
}

.scoring-overview{
    margin-top: 2%;
    width: 90%;
    margin-left: 10%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.scoring-overview .icon-box{
    border: 4px solid #fff;
    border-radius: 10px;
}

.scoring-overview .icon-box img{
    position: relative;
    width: 100%;
}

.scoring-overview .icon-box-score{
    background-color:rgba(255, 255, 0, 0.6);
    margin-top: 10px;
    text-align: center;
}

.final-post-score-container{
    margin-top: 20px;
    display: grid;
    grid-template-columns: auto 190px;
    width: 90%;
    gap: 20px;
    margin-left: 10%;
}

.final-post-score-container div{
    background-color:rgba(255, 255, 0, 0.6);
    
    color: #fff;
    padding: 5px 10px;
    margin: 0;
    height: 100px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.planet-counter-dict{
    font-size: 2.5em;
    color: #fff;
    padding: 0;
    margin: 0;
}

.final-score{
    font-size: 4em;
    padding:0;
    margin:0;
}

.mainCenter{
    margin-top: 1vh;
    display: grid;
    grid-template-columns: calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) ;
    grid-template-rows: calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) calc(95vh / 20) ;
    
    width: calc(95vh + 15pt);
    height: calc(95vh + 15pt);
    border: 10px solid rgb(255, 204, 0, 0.3);
}

.grid-field{
    border: 1px solid rgb(255, 204, 0, 0.3);
    font-size: 0.8em;
}

.grid-field-planet{ /*when debug mode activated*/
    background-color: green;
}

.grid-field-obstacle{ /*when debug mode activated*/
    background-color: yellow;
}

.grid-field-enemyship{ /*when debug mode activated*/
    background-color: purple;
}

.grid-field-home-base{
    background-color: azure;
}

.grid-field img{
    position: absolute;
    width: calc(98vh / 21);
    z-index: -2;
}

.grid-field .ship{
    position: relative;
    width: 70%;
    left: 9px;
    top: -17px;
    z-index: 1;
    filter: drop-shadow(0px 0px 10px rgba(107, 0, 121, 1.0));
}

.tiny-container-two-column{
    position: absolute;
    top: calc((100vh - 50%) / 2);
    left: calc((100vw - 920px) / 2);

    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 10px;
    border: 3px solid orange;
    text-align: center;
    width: 900px;
    gap: 100px;
    margin: 0 auto;
    padding: 10px;
}

.tiny-container{
    position: absolute;
    top: calc((100vh - 100px) / 2);
    left: calc((100vw - 400px) / 2);
    height: auto;
    width: 400px;
    border-radius: 10px;
    border: 2px solid orange;
    text-align: center;
    padding: 10px;
}

@media screen and (max-width: 1780px) {
    .scoring-overview{
        margin-top: 10%;
        width: 90%;
        grid-template-columns: 1fr 1fr;
    }

    h2{
        font-size: 1.5em;
    }
}

@media screen and (max-width: 992px) {
    .tiny-container-two-column{
        position: relative;
        grid-template-columns: 1fr;
        padding: 10px;
        width: 90%;
        top:0;
        left:0;
        margin: 0 5%;
    }

    .tiny-container{
        left: 10%;
        width: 80%;
    }

    input{
        width: 90%;
        height: 50px;
        font-size: 1.2em;  
    }
}