* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 40rem;
    font-family: 'Plus Jakarta Sans';/**font-size: 22px;**/
}

body.og {
    background-image: url("../images/quarter_blue_circle.png");
}

body.hc {
    background-image: url("../images/quarter_orange_circle.png");
}

/******* Elements at the top (logo, navigation bar) ******/
.topContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    margin-top: 1rem;
    margin-left: 1rem;
}

.navBarLink {
    color: #F6F5F5;
    text-decoration: none;
    font-size: 1.5rem;
    margin-right: 2rem;
}

.navBarLink:hover {
    transform: translateY(-2px);
    text-decoration: underline;
}

/** Elements in the middle of the page: text, input and button **/
.midContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    justify-content: center;

    display: flex;
    align-items: center;
    flex-direction: column;
}

.inputAndButton {
    display: flex;
    align-items: stretch;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.textEligible {
    color: #494949;
}

#inputAddr {
    font-size: 1rem;
    width: 400px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;

    border: 1px solid #1F1F1F;
    border-right-width: 0;
    border-bottom-left-radius: 1rem;;
    border-top-left-radius:  1rem;
    
}

#buttonEligible {
    background-color: #FF6E1B;
    font-size: 1rem;
    color: white;
    width: 175px;
    border: 2px solid black;
    border-bottom-right-radius: 1rem;
    border-top-right-radius: 1rem;
    cursor: pointer;
}

#msgWrongAddr {
    color: red;
    font-size: 1.5rem;
    display: none;
    margin-bottom: 10px;
}

#infoAirdrops {
    color: #5CADFF;
    font-size: 1rem;
}


/**************** Elements for the boxes *****************/
.boxAfterCheck {
    z-index: 500;
    width: 37%;
    max-width: 535px;
    aspect-ratio: 31 / 25; /** does not work for older browsers (pre 2021)!**/

    flex-direction: column;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 1rem;
    border: none;

    box-sizing: border-box;
    padding: 32px;

    /* center the box */
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
}

/** **/

.boxAfterCheck::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

#boxEligible {
    background-color: #0081FF;
    display: none;
}

#boxNotEligible {
    background-color: #FF6E1B;
    display: none;
}

.titleBox {
    color: white;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.paragraph {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.10rem;
}

.containerXLogo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.containerXLogo p {
    margin: 0; /** reset maagin to have an aligned SVG!**/
}

/*
 * 1. For mouse users, when they click, remove the outline that Safari adds.
 * The :not(:focus-visible) selector targets focus events that are not
 * triggered by the keyboard.
 */
.svg-link:focus {
    outline: none;
}

/*
 * 2. For keyboard users, add back a custom, accessible outline.
 * This style will only apply when the user tabs to the link.
 */
.svg-link:focus-visible {
    outline: 2px solid royalblue;
    outline-offset: 2px;
    /* Adds a little space between the icon and the outline */
    border-radius: 4px;
    /* Optional: rounds the corners of the outline */
}

#xLogo {
    width: 3rem;
    height: auto;
    margin-top: 0.4rem;
}

.emailAndSub {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 45px;
    margin-top: auto;
    /**margin-bottom: 25px;**/
}

#boxEligible .emailAndSub {
    margin-bottom: 5px;
}

.email {
    font-size: 1rem;
    flex-basis: 68%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;

    border: none;
    border-bottom-left-radius: 0.5rem;;
    border-top-left-radius: 0.5rem;
}

.subscribe {
    flex-basis: 32%;
    font-size: 1rem;
    color: white;
    border: none;
    border-bottom-right-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    cursor: pointer;
}

#subE {
    background-color: #FF6E1B;
}

#subNE {
    background-color: #0081FF;
}

/******* Notification box (once people subscribed) *******/
.notif {
    background-color: #49beb7;
    padding: 15px 20px;
    text-align: center;
    position: fixed; /* Stick to the top */
    top: -100px;     /* Start off-screen */
    left: 0;
    width: 100%;
    z-index: 1000;  
    transition: top 0.5s ease-in-out;
    box-sizing: border-box;
}

.notif.show {
    top: 0; /* Slide into view */
}

.notifMsg {
    margin: 0;
    font-size: 1rem;
    color: white;
}


/**
screen size: 1440 * 900
box: 535 * 429
input: 339 * 45
button: 119 * 45
**/

/**
spaces too big for the resolutions below:
    - 2560 * 1440
    - 1920 * 1080
**/

/** Box-sizing for "square" resolutions**/
/* Example 2: Viewport is NARROWER than  */
@media (max-aspect-ratio: 1.2) and (min-width: 1000px) {
    .boxAfterCheck {
        width: 45%;
        aspect-ratio: 31 / 25;
    }
}


/** Mobile design **/
@media screen and (max-width: 700px) {
    body {
        background-size: 20rem;
    }

    #logo img{
        width: 76px;
        height: auto;
    }

    .navBarLink {
        margin-right: 1rem;
        font-size: 0.8rem;
    }

    .textEligible {
        font-size: 1.2rem;
    }

    .inputAndButton {
        margin-top: 0.8rem;
    }

    #inputAddr {
        width: 200px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        padding-left: 1rem;

        border-bottom-left-radius: 0.5rem;;
        border-top-left-radius: 0.5rem;
    }

    #buttonEligible {
        width: 145px;
        border-bottom-right-radius: 0.5rem;
        border-top-right-radius: 0.5rem;
    }

    /*********************** BOXES ***********************/
    .boxAfterCheck {
        width: 90%;
        aspect-ratio: 0.72;
        padding: 20px; /* 32px */
    }

    .titleBox {
        font-size: 1.8rem;
    }
}